Hi.

I wrote a patch.

I added dependency on adduser and delete account.
also added delete account to postrm file.

Cheers,
-- 
/*
 * Masami Ichikawa
 * mailto: [EMAIL PROTECTED]
 *       : [EMAIL PROTECTED]
 */
diff -u onak-0.3.2/debian/postrm onak-0.3.2/debian/postrm
--- onak-0.3.2/debian/postrm
+++ onak-0.3.2/debian/postrm
@@ -3,6 +3,14 @@
 set -e
 
 if [ "$1" = "purge" ]; then
+    
+    if [ -x /usr/sbin/deluser ]; then
+	deluser --system --quiet onak
+    else
+      echo 'deluser command not found. not removing user "onak".' >&2 
+    fi
+
+
     if dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* >/dev/null; then
         for i in $(dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* | cut -d " " -f 4); do
             dpkg-statoverride --remove $i
diff -u onak-0.3.2/debian/control onak-0.3.2/debian/control
--- onak-0.3.2/debian/control
+++ onak-0.3.2/debian/control
@@ -8,7 +8,7 @@
 
 Package: onak
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
 Recommends: apache | httpd
 Description: OpenPGP Key Server
  onak is an OpenPGP compatible keyserver which supports multiple subkeys,

Reply via email to