Add userdir-ldap-slapd.conf, a snipped to be included in slapd.conf to the package.
[mirror/userdir-ldap.git] / debian / rules
index b92d586..c868dfc 100755 (executable)
@@ -5,14 +5,18 @@
 
 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
@@ -27,8 +31,8 @@ binary-indep: build
        dh_installman
        dh_fixperms
        dh_compress
-       dh_installdeb
        dh_pysupport
+       dh_installdeb
        dh_gencontrol
        dh_md5sums
        dh_builddeb