3 # Made with the aid of debmake, by Christoph Lameter,
4 # based on the sample debian/rules file for GNU hello by Ian Jackson.
6 package:=userdir-ldap-cgi
17 -rm -rf $(i) debian/files* core debian/substvars debian/debhelper.log html/*.html
20 var/www/userdir-ldap \
21 var/www/userdir-ldap/Pics \
22 var/cache/userdir-ldap/web-cookies \
23 var/cache/userdir-ldap/hosts \
24 usr/share/doc/$(package) \
25 usr/lib/userdir-ldap-cgi
31 dh_installdirs $(instdirs)
34 install -m 755 *.cgi $(i)/var/www/userdir-ldap/
35 install -m 644 Util.pm $(i)/var/www/userdir-ldap/
36 #install -m 644 html/index.html $(i)/var/www/
37 install -m 644 html/Pics/*.png $(i)/var/www/userdir-ldap/Pics/
38 install -m 644 html/*.css $(i)/var/www/userdir-ldap/
39 install -m 644 html/doc-direct.html $(i)/var/www/userdir-ldap/
40 install -m 644 html/doc-general.html $(i)/var/www/userdir-ldap/
41 install -m 644 html/doc-hosts.html $(i)/var/www/userdir-ldap/
42 install -m 644 html/doc-mail.html $(i)/var/www/userdir-ldap/
43 install -m 644 html/doc-mail-handling.html $(i)/var/www/userdir-ldap/
44 install -m 644 html/forward.html $(i)/var/www/userdir-ldap/
45 install -m 644 html/hostinfo.html $(i)/var/www/userdir-ldap/
46 install -m 644 html/login.html $(i)/var/www/userdir-ldap/
47 install -m 644 html/password.html $(i)/var/www/userdir-ldap/
48 install -m 644 html/searchform.html $(i)/var/www/userdir-ldap/
49 install -m 644 html/searchhelp.html $(i)/var/www/userdir-ldap/
50 install -m 644 html/searchresults.html $(i)/var/www/userdir-ldap/
51 install -m 644 html/update.html $(i)/var/www/userdir-ldap/
52 chown www-data:www-data $(i)/var/cache/userdir-ldap/web-cookies/
53 chmod u=rwx,g=,o= $(i)/var/cache/userdir-ldap/web-cookies/
55 install -m 755 password-qualify-check $(i)/usr/lib/userdir-ldap-cgi
57 install -m 644 apache-config.txt $(i)/usr/share/doc/$(package)
63 dh_fixperms --exclude=web-cookies
72 # Below here is fairly generic really
74 binary: binary-indep binary-arch
76 .PHONY: binary binary-arch binary-indep clean