root/alternc-slavedns/tags/debian_version_0_9_3_1/debian/rules

Revision 1320, 2.7 kB (checked in by benjamin, 4 years ago)

Passage de alternc-slavedns en po-debconf pour voir comment ca marche ...
Normalisation debian-policy de ce package.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
4 #
5 # This version is for a multibinary package. It also allows you to build any
6 # of the binary packages independantly, via binary-<package> targets.
7
8 # Uncomment this to turn on verbose mode.
9 export DH_VERBOSE=1
10
11 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
12         CFLAGS += -g
13 endif
14 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
15         INSTALL_PROGRAM += -s
16 endif
17
18 # This has to be exported to make some magic below work.
19 export DH_OPTIONS
20
21 build: build-stamp
22 build-stamp:
23         dh_testdir
24
25 # compilation et installation des binaires
26
27         touch build-stamp
28
29 clean:
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp
33         debconf-updatepo
34         dh_clean
35
36 install: DH_OPTIONS=
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42
43 # default perms that should be used
44 # usr/lib/alternc/* root.www-data 750
45 # etc/alternc/* root.root 750
46
47 # Add here commands to install the package into debian/tmp.
48 # conffiles
49         install -o root -g root -m0755 slavedns debian/alternc-slavedns/usr/sbin/
50         install -o root -g root -m0644 slavedns.conf debian/alternc-slavedns/etc/slavedns/
51         chown root.root debian/alternc-slavedns/var/cache/slavedns
52         chown root.root debian/alternc-slavedns/etc/bind/slavedns
53
54 #       dh_install --prefix=install/alternc
55
56 # This single target is used to build all the packages, all at once, or
57 # one at a time. So keep in mind: any options passed to commands here will
58 # affect _all_ packages. Anything you want to only affect one package
59 # should be put in another target, such as the install target.
60
61 binary-common: build install
62         dh_testdir
63         dh_testroot
64         dh_installchangelogs
65         dh_installdocs
66 #       dh_installexamples
67 #       dh_installmenu
68         dh_installdebconf
69         dh_installlogrotate
70 #       dh_installemacsen
71 #       dh_installpam
72 #       dh_installmime
73 #       dh_installinit
74 #       dh_installman
75         dh_installcron
76 #       dh_installinfo
77 #       dh_installman
78         dh_strip
79         dh_link
80         dh_compress
81 #we handle our own perms
82 #       dh_fixperms
83
84
85 #       dh_makeshlibs
86         dh_installdeb
87         dh_perl
88 #       dh_shlibdeps
89         dh_gencontrol -- -cdebian/control
90         dh_md5sums
91         dh_builddeb
92
93 # Build architecture independant packages using the common target.
94 binary-indep: build install binary-common
95 # (Uncomment this next line if you have such packages.)
96 #        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
97
98 # Build architecture dependant packages using the common target.
99 binary-arch: build install binary-common
100 #       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
101
102 # Any other binary targets build just one binary package at a time.
103 # binary-%: build install
104 #       make -f debian/rules binary-common DH_OPTIONS=-p$*
105
106 # binary: binary-indep binary-arch
107 # .PHONY: build clean binary-indep binary-arch binary install
108
109 binary: binary-common
110
111 .PHONY: build clean binary install
Note: See TracBrowser for help on using the browser.