add sdbm creation for postfix using systems
authorrmurray <>
Sat, 30 Aug 2003 22:09:56 +0000 (22:09 +0000)
committerrmurray <>
Sat, 30 Aug 2003 22:09:56 +0000 (22:09 +0000)
add depends on rsync

debian/changelog
debian/control
ud-replicate

index 2c35f86..ed4e766 100644 (file)
@@ -1,3 +1,10 @@
+userdir-ldap (0.3.5) unstable; urgency=low
+
+  * Add depends on rsync
+  * Generate sdbm of debian.org on postfix systems
+
+ -- Ryan Murray <rmurray@gluck.debian.org>  Sat, 30 Aug 2003 18:02:01 -0600
+
 userdir-ldap (0.3.4) unstable; urgency=low
 
   * Use the right python version in the maintainer scripts
index 7f666fa..b194676 100644 (file)
@@ -7,7 +7,7 @@ Standards-Version: 3.5.8.0
 
 Package: userdir-ldap
 Architecture: all
-Depends: ${python:Depends}, python-ldap, perl5, procmail
+Depends: ${python:Depends}, python-ldap, perl5, procmail, rsync
 Suggests: libnet-ldap-perl, libcrypt-blowfish-perl, gnupg (>= 1.0.3), python-net, python-gdbm, libdate-manip-perl, liburi-perl
 Description: Login User Directory in LDAP support scripts
  These scripts simplifiy the creation and management of a LDAP based user
index 2df3980..42934c4 100755 (executable)
@@ -34,8 +34,12 @@ mv -f group.db.t group.db
 #fi
 ln -sf "$HOST/ssh-rsa-shadow" .
 ln -sf "$HOST/ssh_known_hosts" .
-if [ -e "$HOST/bsmtp" ]; then
+if [ -d "/etc/exim" -a -e "$HOST/bsmtp" ]; then
        if perl -e 'exit !((stat "/etc/exim/bsmtp")[9] < time()-3600)'; then
                cp "$HOST/bsmtp" /etc/exim/bsmtp
        fi
 fi
+if [ -d "/etc/postfix" -a -f "$HOST/forward-alias" ]; then
+       sed -e 's/:/@debian.org/' $HOST/forward-alias > /etc/postfix/debian
+       postmap sdbm:/etc/postfix/debian < /etc/postfix/debian &> /dev/null || true
+fi