source: trunk/debian/rules @ 1070

Revision 1070, 3.9 KB checked in by anarcat, 9 years ago (diff)

try to make this installable, by fixing the following error:

chown: cannot access `/var/cache/awstats': No such file or directory

  • 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.
9export 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.
17export DH_OPTIONS
18
19build: build-stamp
20build-stamp:
21        dh_testdir
22
23# compilation et installation des binaires
24# pushd src; make; popd
25
26        touch build-stamp
27
28clean:
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
40install: DH_OPTIONS=
41install: 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-awstats.
49#$(MAKE) prefix=`pwd`/debian/alternc-awstats/usr install
50
51# Copy the desk files
52        cp -r bureau debian/alternc-awstats/var/alternc/
53        rm debian/alternc-awstats/var/alternc/bureau/locales/README
54        rm debian/alternc-awstats/var/alternc/bureau/locales/updatelang.sh
55
56# Remove CVS entries.
57        find debian/alternc-awstats/ -depth -name CVS -type d -exec rm -rf {} \;
58
59        install -m 0755 -g www-data -o www-data alternc-awstats.conf debian/alternc-awstats/etc/apache/
60        install -m 0755 -g www-data -o www-data awstats_alternc.png debian/alternc-awstats/usr/share/awstats/icon/other/
61        install -m 0755 -g www-data -o www-data alternc-awstats debian/alternc-awstats/usr/lib/alternc/
62        install -m 0755 -g www-data -o www-data awstats.cache.php debian/alternc-awstats/usr/lib/alternc/
63        install -m 0644 awstats.sql debian/alternc-awstats/usr/share/alternc/
64        install -m 0644 -g www-data -o www-data awstats.template.conf debian/alternc-awstats/etc/alternc/
65        install -m 0444 debian/lintian-override debian/alternc-awstats/usr/share/lintian/overrides/alternc-awstats
66        mkdir -p debian/alternc-awstats/var/cache/awstats
67
68        touch debian/alternc-awstats/var/cache/awstats/.placeholder
69        chown www-data:www-data debian/alternc-awstats/var/cache/awstats
70        touch debian/alternc-awstats/etc/alternc/awstats.htpasswd
71# that's not very nice, but we need it
72        chown 33 debian/alternc-awstats/etc/alternc/awstats.htpasswd
73        chmod 777 debian/alternc-awstats/etc/alternc/awstats.htpasswd
74
75#       dh_install --prefix=install/alternc
76
77# This single target is used to build all the packages, all at once, or
78# one at a time. So keep in mind: any options passed to commands here will
79# affect _all_ packages. Anything you want to only affect one package
80# should be put in another target, such as the install target.
81
82binary-common: build install
83        dh_testdir
84        dh_testroot
85        dh_installchangelogs
86        dh_installdocs
87#       dh_installexamples
88#       dh_installmenu
89        dh_installdebconf
90#       dh_installlogrotate
91#       dh_installemacsen
92#       dh_installpam
93#       dh_installmime
94#       dh_installinit
95#       dh_installman
96        dh_installcron
97#       dh_installinfo
98#       dh_undocumented
99#       dh_installman
100#       dh_strip
101        dh_link
102        dh_compress
103        dh_fixperms
104
105
106#       dh_makeshlibs
107        dh_installdeb
108        dh_perl
109#       dh_shlibdeps
110        dh_gencontrol -- -cdebian/control
111        dh_md5sums
112        dh_builddeb
113
114# Build architecture independant packages using the common target.
115binary-indep: build install binary-common
116# (Uncomment this next line if you have such packages.)
117#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
118
119# Build architecture dependant packages using the common target.
120binary-arch: build install binary-common
121#       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
122
123# Any other binary targets build just one binary package at a time.
124# binary-%: build install
125#       make -f debian/rules binary-common DH_OPTIONS=-p$*
126
127# binary: binary-indep binary-arch
128# .PHONY: build clean binary-indep binary-arch binary install
129
130binary: binary-common
131
132.PHONY: build clean binary install
Note: See TracBrowser for help on using the repository browser.