#! /usr/bin/make -f # -*- make -*- # Made with the aid of debmake, by Christoph Lameter, # based on the sample debian/rules file for GNU hello by Ian Jackson. package:=userdir-ldap-cgi i:=./debian/tmp build: dh_testdir touch build clean: dh_testdir -rm -f build -rm -rf $(i) debian/files* core debian/substvars instdirs = \ var/www/userdir-ldap \ var/cache/userdir-ldap/web-cookies \ var/cache/userdir-ldap/hosts \ usr/share/doc/$(package) binary-indep: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(instdirs) install -m 755 *.cgi $(i)/var/www/userdir-ldap/ install -m 644 Util.pm $(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 apache-config.txt $(i)/usr/share/doc/$(package) dh_installchangelogs dh_installmanpages dh_fixperms --exclude=web-cookies dh_compress dh_installdeb dh_gencontrol # dh_makeshlibs dh_md5sums dh_builddeb binary-arch: build dh_testdir # There are no architecture-dependent files to be uploaded # generated by this package. If there were any they would be # made here. # Below here is fairly generic really binary: binary-indep binary-arch .PHONY: binary binary-arch binary-indep clean