Code

- Debian Packaging fixes
[gosa.git] / gosa-si / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
7 build: patch 
8         #********************************************************
9         #*  Building gosa-si into a Debian/GNU Linux Package    *
10         #*                    please stand by                   *
11         #********************************************************
13 clean: clean-patched unpatch
14 clean-patched:
15         dh_testdir
16         rm -f install-stamp 
17         -rm -f debian/files
18         -rm -rf debian/tmp
19         -rm -f debian/substvars
20         dh_clean
22 unpatch:
23         dpatch deapply-all
24         rm -rf patch-stamp debian/patched
26 install: install-stamp
27 install-stamp: 
28         dh_testdir
29         dh_testroot
30         dh_clean -k
31         dh_installdirs
33         # Create a copy, remove svn stuff
34         -mkdir debian/tmp
35         -for i in *; do \
36                 cp -R $$i debian/tmp ; \
37         done
39         touch install-stamp
41 patch: patch-stamp
42 patch-stamp:
43         dpatch apply-all
44         dpatch cat-all >patch-stamp
46 binary-indep: install
47         dh_testdir
48         dh_testroot
49         
50         dh_install --sourcedir=debian/tmp
51         
52         dh_installdocs 
53         dh_installcron
54         dh_installexamples
55         dh_installchangelogs
56         dh_installman
57         dh_installlogrotate
58         dh_installinit --init-script=gosa-si -- start 00 2 3 4 5 . stop 29 1 .
60         chmod 640 debian/gosa-si-server/etc/gosa-si/server.conf debian/gosa-si-client/etc/gosa-si/client.conf
62         dh_link
63         dh_strip
64         dh_compress
65         dh_fixperms 
66         dh_perl
67         dh_installdeb
68         dh_shlibdeps
69         
70         dh_gencontrol
71         dh_md5sums
72         dh_builddeb
74 source diff:                                                                  
75         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
77 binary: binary-indep 
78 .PHONY: build install clean binary-indep binary
80 binary-arch: