Make ceoquery non-SUID
[mspang/pyceo.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PYTHON := python2.4
4
5 build: build-stamp
6
7 build-stamp:
8         mkdir build
9         $(CC) -DFULL_PATH='"/usr/lib/csc/ceo"' -o build/ceo misc/setuid-prog.c
10         $(CC) -DFULL_PATH='"/usr/lib/csc/addhomedir"' -o build/addhomedir misc/setuid-prog.c
11         $(CC) -DFULL_PATH='"/usr/lib/csc/csc-chfn"' -o build/csc-chfn misc/setuid-prog.c
12         $(CC) -DFULL_PATH='"/usr/lib/csc/csc-chsh"' -o build/csc-chsh misc/setuid-prog.c
13         touch build-stamp
14
15 clean:
16         dh_testdir
17         dh_testroot
18         dh_clean
19         rm -f build-stamp
20         rm -rf build/
21         find pylib/ -name "*.pyc" -print0 | xargs -0 rm -f
22
23 install: build
24         dh_testdir
25         dh_testroot
26
27         dh_installdirs etc/csc usr/lib/$(PYTHON)/site-packages usr/share/csc \
28                        usr/lib/csc usr/bin etc/ldap/schema
29         dh_install pylib/* usr/lib/$(PYTHON)/site-packages/
30         dh_install etc/* etc/csc/
31
32         dh_install bin/ceo bin/addhomedir bin/csc-chsh bin/csc-chfn usr/lib/csc/
33         dh_install build/ceo build/addhomedir bin/ceoquery build/csc-chsh build/csc-chfn usr/bin/
34         dh_install misc/csc.schema etc/ldap/schema/
35         
36 binary-arch: build install
37         dh_testdir
38         dh_testroot
39         dh_installchangelogs 
40         dh_installdocs docs/*
41         dh_installexamples
42         dh_install
43 #       dh_installlogrotate
44 #       dh_installcron
45         dh_installman
46         dh_link
47         dh_strip
48         dh_compress
49         dh_fixperms
50 #       dh_perl
51 #       dh_python
52 #       dh_makeshlibs
53         dh_installdeb
54         dh_shlibdeps
55         dh_gencontrol
56         dh_md5sums
57         dh_builddeb
58
59 binary-indep:
60
61 binary: binary-indep binary-arch
62
63 .PHONY: build clean binary-indep binary-arch binary install