control: tags -1 +patch

The attached patch reverts the change of /etc/ocsinventory/ocsinventory.conf 
from configuation file to conffile and copies the file in only on fresh 
installs of 
the package.

cheers
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/         stu...@debian.org
GPG fingerprint    BE65 FD1E F4EA 08F3 23D4 3C6D 9FE8 B8CD 71C5 D1A8
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
diff -u ocsinventory-server-2.0.5/debian/ocsinventory-server.install ocsinventory-server-2.0.5/debian/ocsinventory-server.install
--- ocsinventory-server-2.0.5/debian/ocsinventory-server.install
+++ ocsinventory-server-2.0.5/debian/ocsinventory-server.install
@@ -1 +1 @@
-debian/conf/ocsinventory.conf             etc/ocsinventory/
+debian/conf/ocsinventory.conf             usr/share/ocsinventory-server/files/
diff -u ocsinventory-server-2.0.5/debian/changelog ocsinventory-server-2.0.5/debian/changelog
--- ocsinventory-server-2.0.5/debian/changelog
+++ ocsinventory-server-2.0.5/debian/changelog
@@ -1,3 +1,11 @@
+ocsinventory-server (2.0.5-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Revert change of ocsinventory-server.conf to a conffile and only install
+    if on new installs (Closes: #656090).
+
+ -- Stuart Prescott <stu...@debian.org>  Tue, 29 Jan 2013 00:52:18 +0000
+
 ocsinventory-server (2.0.5-1) unstable; urgency=low
 
   * Imported Upstream version 2.0.5
diff -u ocsinventory-server-2.0.5/debian/ocsinventory-server.postinst ocsinventory-server-2.0.5/debian/ocsinventory-server.postinst
--- ocsinventory-server-2.0.5/debian/ocsinventory-server.postinst
+++ ocsinventory-server-2.0.5/debian/ocsinventory-server.postinst
@@ -12,6 +12,12 @@
 chmod -R g+w $log
 
 
+if [ "$1" = "configure" -a "$#" -eq 2 ]; then
+  if [ ! -f $confpath/$conffile ]; then
+    cp /usr/share/ocsinventory-server/files/$conffile $confpath/$conffile
+  fi
+fi
+
 if [ "$1" = "configure" ]; then
 
   # enable required apache modules

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to