- dh_clean -k
- dh_installdirs $(instdirs)
-
- echo "userdir_ldap" > $(i)/$(pysite)/userdir_ldap.pth
- echo "userdir_gpg" >> $(i)/$(pysite)/userdir_ldap.pth
- install -m 644 userdir_ldap.py userdir_gpg.py \
- $(i)/$(pysite)/userdir_ldap/
- install -m 755 {ud-forwardlist,ud-gpgimport,ud-info,ud-ldapshow,ud-userimport,ud-mailgate,ud-generate,ud-passchk,ud-useradd,ud-replicate,ud-xearth,ud-fingerserv} $(i)/usr/bin/
- install -m 755 web/*.* $(i)/var/www/userdir-ldap/
- chown www-data.www-data $(i)/var/cache/userdir-ldap/web-cookies/
- chmod u=rwx,g=,o= $(i)/var/cache/userdir-ldap/web-cookies/
-
- install -m 644 doc/{apache-config.txt,slapd-config.txt} $(i)/usr/doc/$(package)
- install -m 644 doc/samples/ud-* $(i)/usr/doc/$(package)/samples
- gzip -9 $(i)/usr/doc/$(package)/*.txt
- install -m 644 userdir-ldap.conf $(i)/etc/userdir-ldap/
- echo "# See /usr/doc/userdir-ldap" > $(i)/etc/userdir-ldap/generate.conf
- chmod 644 $(i)/etc/userdir-ldap/generate.conf
- install -m 644 templates/*-* $(i)/etc/userdir-ldap/templates/
-
- dh_installmanpages
- dh_fixperms --exclude=web-cookies