root/alternc-webalizer/tags/nightly_sarge/debian/rules

Revision 1500, 3.6 kB (checked in by anarcat, 3 years ago)

fix perms of bureau files to silence lintian

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