Added "ceoquery", a utility to retrieve lists of members and users.
[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/ceoquery"' -o build/ceoquery misc/setuid-prog.c
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_testroot
17         dh_clean
18         rm -f build-stamp
19         rm -rf build/
20         find pylib/ -name "*.pyc" -print0 | xargs -0 rm -f
21
22 install: build
23         dh_testdir
24         dh_testroot
25
26         dh_installdirs etc/csc usr/lib/$(PYTHON)/site-packages usr/share/csc \
27                        usr/lib/csc usr/bin
28         dh_install pylib/* usr/lib/$(PYTHON)/site-packages/
29         dh_install etc/* etc/csc/
30         dh_install sql/* usr/share/csc/
31         
32         dh_install bin/ceo bin/addhomedir bin/ceoquery usr/lib/csc/
33         dh_install build/ceo build/addhomedir build/ceoquery usr/bin/
34         
35 binary-arch: build install
36         dh_testdir
37         dh_testroot
38         dh_installchangelogs 
39         dh_installdocs docs/*
40         dh_installexamples
41         dh_install
42 #       dh_installlogrotate
43 #       dh_installcron
44         dh_installman
45         dh_link
46         dh_strip
47         dh_compress
48         dh_fixperms
49 #       dh_perl
50 #       dh_python
51 #       dh_makeshlibs
52         dh_installdeb
53         dh_shlibdeps
54         dh_gencontrol
55         dh_md5sums
56         dh_builddeb
57
58 binary-indep:
59
60 binary: binary-indep binary-arch
61
62 .PHONY: build clean binary-indep binary-arch binary install