[Debian BSP, September 29/30th] Hello,
Here is a correct patch to verify if userdel is installed during postrm. Regards, -- Gregory Colpart <[EMAIL PROTECTED]> GnuPG:1024D/C1027A0E Evolix - Informatique et Logiciels Libres http://www.evolix.fr/
diff -u ldapdns-2.06/debian/rules ldapdns-2.06/debian/rules --- ldapdns-2.06/debian/rules +++ ldapdns-2.06/debian/rules @@ -1,6 +1,6 @@ #!/usr/bin/make -f # Generated automatically from debian/packages -# by yada v0.52, of Fri, 8 Dec 2006 +# by yada v0.53, of Fri, 4 May 2007 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null) DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null) diff -u ldapdns-2.06/debian/changelog ldapdns-2.06/debian/changelog --- ldapdns-2.06/debian/changelog +++ ldapdns-2.06/debian/changelog @@ -1,3 +1,10 @@ +ldapdns (2.06-3.2) unstable; urgency=low + + * Non-maintainer upload during BSP. + * Fix unconditional use of userdel in postrm (Closes: #431584). + + -- Gregory Colpart (evolix) <[EMAIL PROTECTED]> Sun, 30 Sep 2007 17:14:06 +0200 + ldapdns (2.06-3.1) unstable; urgency=high * Non-maintainer upload. diff -u ldapdns-2.06/debian/control ldapdns-2.06/debian/control --- ldapdns-2.06/debian/control +++ ldapdns-2.06/debian/control @@ -3,7 +3,7 @@ Section: net Priority: optional Standards-Version: 3.6.1 -Build-Depends: libldap2-dev, yada (>= 0.52) +Build-Depends: libldap2-dev, yada (>= 0.53) Package: ldapdns Architecture: any diff -u ldapdns-2.06/debian/packages ldapdns-2.06/debian/packages --- ldapdns-2.06/debian/packages +++ ldapdns-2.06/debian/packages @@ -89,9 +89,13 @@ fi Postrm: sh if [ "$1" = "purge" ]; then + if [ -x "$(command -v userdel)" ]; then if id -u ldapdns >/dev/null 2>/dev/null; then userdel ldapdns fi + else + echo >&2 "not removing ldapdns system account because userdel command was not found" + fi rm -rf /var/lib/ldapdns || true rm -f /etc/ldapdns.conf || true fi