]> andersk Git - nss_nonlocal.git/commitdiff
Create nss-local-users and nss-nonlocal-users at installation.
authorTim Abbott <tabbott@mit.edu>
Wed, 30 Jan 2008 03:11:37 +0000 (22:11 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Sun, 27 Jul 2008 13:20:52 +0000 (09:20 -0400)
Signed-off-by: Tim Abbott <tabbott@mit.edu>
debian/libnss-nonlocal.postrm [new file with mode: 0644]
debian/libnss-nonlocal.preinst [new file with mode: 0644]

diff --git a/debian/libnss-nonlocal.postrm b/debian/libnss-nonlocal.postrm
new file mode 100644 (file)
index 0000000..72967e1
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/sh
+# postrm script for libnss-nonlocal
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+       if getent group nss-local-users >/dev/null; then
+           delgroup --system nss-local-users || :
+       fi
+       if getent group nss-nonlocal-users >/dev/null; then
+           delgroup --system nss-nonlocal-users || :
+       fi
+       ;;
+
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+       ;;
+
+    *)
+        echo "postrm 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
+
+
diff --git a/debian/libnss-nonlocal.preinst b/debian/libnss-nonlocal.preinst
new file mode 100644 (file)
index 0000000..2d91251
--- /dev/null
@@ -0,0 +1,45 @@
+#!/bin/sh
+# preinst script for debathena-liblocker
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+       if ! getent group nss-local-users >/dev/null; then
+           addgroup --system nss-local-users
+       fi
+       if ! getent group nss-nonlocal-users >/dev/null; then
+           addgroup --system nss-nonlocal-users
+       fi
+       ;;
+
+    abort-upgrade)
+       ;;
+
+    *)
+        echo "preinst 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
+
+
+
+
This page took 0.042764 seconds and 5 git commands to generate.