Use dh_prep instead of dh_clean -k
[mirror/userdir-ldap.git] / debian / rules
index b92d586..629ef00 100755 (executable)
@@ -5,20 +5,24 @@
 
 build:
        dh_testdir
-       touch build
        $(MAKE) -C doc
+       # feel free to put dc=debian,dc=org and debian.org into some config file so that this is easier on others who
+       # also use userdir-ldap.
+       sed -e 's/@@DN@@/dc=debian,dc=org/g; s/@@DOMAIN@@/debian.org/g' < userdir-ldap-slapd.conf.in > userdir-ldap-slapd.conf
+       touch build
 
 clean:
        dh_testdir
        rm -f build
        find . -name '*.py[co]' -print0 | xargs -0 --no-run-if-empty rm -f
        $(MAKE) -C doc clean
+       rm -f userdir-ldap-slapd.conf
        dh_clean
 
 binary-indep: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_prep
        dh_installdirs
        dh_install
        dh_installcron --name=ud-replicate
@@ -27,8 +31,8 @@ binary-indep: build
        dh_installman
        dh_fixperms
        dh_compress
+       dh_python2
        dh_installdeb
-       dh_pysupport
        dh_gencontrol
        dh_md5sums
        dh_builddeb