root/alternc-webalizer/trunk/debian/rules

Revision 2028, 3.5 kB (checked in by anarcat, 1 year ago)

run debconf-updatepo on clean, as recommended by http://lintian.debian.org/reports/Tnewer-debconf-templates.html

  • 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 ########################################
12 ## TODO
13 ## Virer les lignes # inutiles ou historiques (marquées ##)
14
15
16 # This has to be exported to make some magic below work.
17 export DH_OPTIONS
18
19 build: build-stamp
20 build-stamp:
21         dh_testdir
22
23 # compilation et installation des binaires
24 # pushd src; make; popd
25
26         touch build-stamp
27
28 clean:
29         debconf-updatepo
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp
33
34 # Add here commands to clean up after the build process.
35 #-$(MAKE) clean
36 #-$(MAKE) distclean
37 # pushd src; make clean; popd
38
39         dh_clean
40
41 install: DH_OPTIONS=
42 install: build
43         dh_testdir
44         dh_testroot
45         dh_clean -k
46         dh_installdirs
47
48
49 # Add here commands to install the package into debian/alternc-webalizer.
50 #$(MAKE) prefix=`pwd`/debian/alternc-webalizer/usr install
51
52 # Copy the desk files
53         cp -r bureau debian/alternc-webalizer/var/alternc/
54         chmod -R 644 debian/alternc-webalizer/var/alternc/bureau
55         chmod -R a+X debian/alternc-webalizer/var/alternc/bureau
56
57         find debian/alternc-webalizer/var/alternc/bureau/locales -maxdepth 1 -type f -exec rm -rf {} \;
58
59         install -m 0755 -g www-data -o www-data alternc-webalizer debian/alternc-webalizer/usr/lib/alternc/
60         install -m 0755 -g www-data -o www-data webalizer.cache.php debian/alternc-webalizer/usr/lib/alternc/
61         install -m 0644 webalizer.sql debian/alternc-webalizer/usr/share/alternc/
62 #       install -m 0644 webalizer.0.9.1.upgrade.sql debian/alternc-webalizer/usr/share/alternc/
63         install -m 0644 -g www-data -o www-data webalizer.template.conf debian/alternc-webalizer/etc/alternc/
64         install -m 0444 debian/lintian-override debian/alternc-webalizer/usr/share/lintian/overrides/alternc-webalizer
65         chown www-data.www-data debian/alternc-webalizer/var/cache/alternc-webalizer
66 #       dh_install --prefix=install/alternc
67
68 # This single target is used to build all the packages, all at once, or
69 # one at a time. So keep in mind: any options passed to commands here will
70 # affect _all_ packages. Anything you want to only affect one package
71 # should be put in another target, such as the install target.
72
73 binary-common: build install
74         dh_testdir
75         dh_testroot
76         dh_installchangelogs
77         dh_installdocs
78 #       dh_installexamples
79 #       dh_installmenu
80         dh_installdebconf
81 #       dh_installlogrotate
82 #       dh_installemacsen
83 #       dh_installpam
84 #       dh_installmime
85 #       dh_installinit
86 #       dh_installman
87         dh_installcron
88 #       dh_installinfo
89 #       dh_undocumented
90 #       dh_installman
91 #       dh_strip
92         dh_link
93         dh_compress
94         dh_fixperms
95
96
97 #       dh_makeshlibs
98         dh_installdeb
99         dh_perl
100 #       dh_shlibdeps
101         dh_gencontrol -- -cdebian/control
102         dh_md5sums
103         dh_builddeb
104
105 # Build architecture independant packages using the common target.
106 binary-indep: build install binary-common
107 # (Uncomment this next line if you have such packages.)
108 #        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
109
110 # Build architecture dependant packages using the common target.
111 binary-arch: build install binary-common
112 #       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
113
114 # Any other binary targets build just one binary package at a time.
115 # binary-%: build install
116 #       make -f debian/rules binary-common DH_OPTIONS=-p$*
117
118 # binary: binary-indep binary-arch
119 # .PHONY: build clean binary-indep binary-arch binary install
120
121 binary: binary-common
122
123 .PHONY: build clean binary install
Note: See TracBrowser for help on using the browser.