4e1cc04825e1813345ab919a59c631098bffa2b8
[mirror/userdir-ldap-cgi.git] / debian / rules
1 #! /usr/bin/make -f
2 # -*- make -*-
3 # Made with the aid of debmake, by Christoph Lameter,
4 # based on the sample debian/rules file for GNU hello by Ian Jackson.
5
6 package:=userdir-ldap-cgi
7 i:=./debian/tmp
8
9 build:
10         dh_testdir
11         touch build
12
13 clean:
14         dh_testdir
15         -rm -f build
16         -rm -rf $(i) debian/files* core debian/substvars
17
18 instdirs = \
19         var/www/userdir-ldap \
20         var/cache/userdir-ldap/web-cookies \
21         var/cache/userdir-ldap/hosts \
22         usr/share/doc/$(package)
23
24 binary-indep: build
25         dh_testdir
26         dh_testroot
27         dh_clean -k
28         dh_installdirs $(instdirs)
29
30         install -m 755 web/*.cgi $(i)/var/www/userdir-ldap/
31         install -m 644 web/Util.pm $(i)/var/www/userdir-ldap/
32         chown www-data.www-data $(i)/var/cache/userdir-ldap/web-cookies/
33         chmod u=rwx,g=,o= $(i)/var/cache/userdir-ldap/web-cookies/
34
35         install -m 644 apache-config.txt $(i)/usr/share/doc/$(package)
36         install -m 644 doc/samples/ud-* $(i)/usr/share/doc/$(package)/samples
37
38         dh_installchangelogs
39         dh_installmanpages
40         dh_fixperms --exclude=web-cookies
41         dh_compress
42         dh_installdeb
43         dh_gencontrol
44 #       dh_makeshlibs
45         dh_md5sums
46         dh_builddeb
47
48 binary-arch: build
49         dh_testdir
50 # There are no architecture-dependent files to be uploaded
51 # generated by this package.  If there were any they would be
52 # made here.
53
54
55 # Below here is fairly generic really
56
57 binary: binary-indep binary-arch
58
59 .PHONY: binary binary-arch binary-indep clean