Code

78cd0aaf6851e0a3788e2a1035f1e7ac6b5f8d48
[gosa.git] / contrib / daemon / 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 ltsp-goto 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 `ls | grep -v debian`; do \
36                 cp -R $$i debian/tmp ; \
37         done
38         -find debian/tmp -name '*.svn' -type d -exec rm -rf {} \; 2> /dev/null
40         touch install-stamp
42 patch: patch-stamp
43 patch-stamp:
44         dpatch apply-all
45         dpatch cat-all >patch-stamp
47 binary-indep: install
48         dh_testdir
49         dh_testroot
50         
51         dh_install
52         dh_installdocs 
53         dh_installcron
54         dh_installexamples
55         dh_installchangelogs
56         #dh_installdebconf
57         #dh_installcron -p goto-agents-printmanager
58         dh_link
59         dh_strip
60         dh_compress
61         dh_fixperms 
62         dh_perl
63         dh_installdeb
64         dh_shlibdeps
65         
66         dh_gencontrol
67         dh_md5sums
68         dh_builddeb
70 source diff:                                                                  
71         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
73 binary: binary-indep 
74 .PHONY: build install clean binary-indep binary
76 binary-arch: