25ca05b8e08ee41fdf6e486dcfe0ce5bf97b5415
[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 *.cgi $(i)/var/www/userdir-ldap/
31         install -m 644 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
37         dh_installchangelogs
38         dh_installmanpages
39         dh_fixperms --exclude=web-cookies
40         dh_compress
41         dh_installdeb
42         dh_gencontrol
43 #       dh_makeshlibs
44         dh_md5sums
45         dh_builddeb
46
47 binary-arch: build
48         dh_testdir
49 # There are no architecture-dependent files to be uploaded
50 # generated by this package.  If there were any they would be
51 # made here.
52
53
54 # Below here is fairly generic really
55
56 binary: binary-indep binary-arch
57
58 .PHONY: binary binary-arch binary-indep clean