[Oval-commits] r281 - trunk/oval-agent/debian

Pavel Vinogradov blaze-guest at alioth.debian.org
Tue Oct 30 17:13:46 UTC 2007


Author: blaze-guest
Date: 2007-10-30 17:13:46 +0000 (Tue, 30 Oct 2007)
New Revision: 281

Added:
   trunk/oval-agent/debian/postinst
Removed:
   trunk/oval-agent/debian/oval-agent.postinst
Log:
Clean build process

Deleted: trunk/oval-agent/debian/oval-agent.postinst
===================================================================
--- trunk/oval-agent/debian/oval-agent.postinst	2007-10-30 17:11:22 UTC (rev 280)
+++ trunk/oval-agent/debian/oval-agent.postinst	2007-10-30 17:13:46 UTC (rev 281)
@@ -1,57 +0,0 @@
-#!/bin/sh
-# postinst script for oval-agent
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    configure)
-        # (jfs) BUG: Should be improved (see Debian security manual)
-	if ! getent passwd oval >/dev/null; then
-		adduser --quiet --system --no-create-home \
-			--home /var/cache/oval-agent --disabled-password \
-			--disabled-login --shell /bin/false --group oval
-	fi
-
-        # (jfs) BUG: Directories should not need to be created here
-        # but be part of the package
-	mkdir -p /var/cache/oval-agent
-	mkdir -p /var/cache/oval-agent/definitions
-	mkdir -p /var/cache/oval-agent/results
-	chown -R root:oval /var/log/oval
-	chown -R root:oval /var/cache/oval-agent 
-	chmod -R 775 /var/log/oval
-	chmod -R 775 /var/cache/oval-agent
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-

Added: trunk/oval-agent/debian/postinst
===================================================================
--- trunk/oval-agent/debian/postinst	                        (rev 0)
+++ trunk/oval-agent/debian/postinst	2007-10-30 17:13:46 UTC (rev 281)
@@ -0,0 +1,58 @@
+#!/bin/sh
+# postinst script for oval-agent
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+        # (jfs) BUG: Should be improved (see Debian security manual)
+	if ! getent passwd oval-agent >/dev/null; then
+		adduser --quiet --system --no-create-home \
+			--home /var/cache/oval-agent --disabled-password \
+			--disabled-login --shell /bin/false --ingroup oval \
+			oval-agent
+	fi
+
+        # (jfs) BUG: Directories should not need to be created here
+        # but be part of the package
+	mkdir -p /var/cache/oval-agent
+	mkdir -p /var/cache/oval-agent/definitions
+	mkdir -p /var/cache/oval-agent/results
+	chown -R root:oval /var/log/oval
+	chown -R root:oval /var/cache/oval-agent 
+	chmod -R 775 /var/log/oval
+	chmod -R 775 /var/cache/oval-agent
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+




More information about the Oval-commits mailing list