source: debian/rules @ 405

Revision 405, 3.6 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2004-10-23 22:29:11 by anonymous]
on vire les fichiers inutiles de locales

Original author: anonymous
Date: 2004-10-23 22:29:11

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
11ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
12        CFLAGS += -g
13endif
14ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
15        INSTALL_PROGRAM += -s
16endif
17
18# This has to be exported to make some magic below work.
19export DH_OPTIONS
20
21build: build-stamp
22build-stamp:
23        dh_testdir
24
25# compilation et installation des binaires
26        pushd src/ && $(MAKE) && popd
27
28        touch build-stamp
29
30clean:
31        dh_testdir
32        dh_testroot
33        rm -f build-stamp
34
35        -pushd src/ && $(MAKE) clean && popd
36
37        dh_clean
38
39install: DH_OPTIONS=
40install: build
41        dh_testdir
42        dh_testroot
43        dh_clean -k
44        dh_installdirs
45
46# default perms that should be used
47# usr/lib/alternc/* root.www-data 750
48# etc/alternc/* root.root 750
49
50        # Add here commands to install the package into debian/tmp.
51        # conffiles
52        install -o root -g www-data -m0750 -d debian/alternc/etc/alternc
53        install -o root -g www-data -m0750 \
54                install/etc/alternc/alternc.conf debian/alternc/etc/alternc/
55        # les scripts d'install
56# TODO laisser les scripts dans /usr/share et faire des liens
57# symboliques (ou pas)
58        cp install/scripts/alternc.install debian/alternc/usr/sbin
59        cp -r install/scripts/* debian/alternc/usr/share/alternc/install
60        cp -r bureau debian/alternc/var/alternc/
61# On vire les fichiers à la racine de locale (README, updatelang ...)
62        find debian/alternc/var/alternc/bureau/locales/ -maxdepth 1 -type f -exec rm -f {} \;
63# installation des binaires
64        pushd src/ && $(MAKE) install DESTDIR=$(CURDIR)/debian/alternc && popd
65
66        cp -r dns/bind2 debian/alternc/usr/lib/alternc/system/
67
68# On efface les dossiers CVS
69        /usr/bin/find debian/alternc -depth -type d -name CVS -exec rm {} -rf \;
70
71        pushd debian/alternc/usr/share/alternc/install ; \
72        chmod a+x alternc.install initrep.sh mysql.sh newone.php ; \
73        popd
74
75        install -m 0644 debian/lintian-override debian/alternc/usr/share/lintian/overrides/alternc
76
77#       dh_install --prefix=install/alternc
78
79# This single target is used to build all the packages, all at once, or
80# one at a time. So keep in mind: any options passed to commands here will
81# affect _all_ packages. Anything you want to only affect one package
82# should be put in another target, such as the install target.
83
84binary-common: build install
85        dh_testdir
86        dh_testroot
87        dh_installchangelogs
88        dh_installdocs
89#       dh_installexamples
90#       dh_installmenu
91        dh_installdebconf
92        dh_installlogrotate
93#       dh_installemacsen
94#       dh_installpam
95#       dh_installmime
96#       dh_installinit
97#       dh_installman
98        dh_installcron
99#       dh_installinfo
100#       dh_undocumented
101#       dh_installman
102        dh_strip
103        dh_link
104        dh_compress
105#we handle our own perms
106#       dh_fixperms
107
108
109#       dh_makeshlibs
110        dh_installdeb
111        dh_perl
112#       dh_shlibdeps
113        dh_gencontrol -- -cdebian/control
114        dh_md5sums
115        dh_builddeb
116
117# Build architecture independant packages using the common target.
118binary-indep: build install binary-common
119# (Uncomment this next line if you have such packages.)
120#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
121
122# Build architecture dependant packages using the common target.
123binary-arch: build install binary-common
124#       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
125
126# Any other binary targets build just one binary package at a time.
127# binary-%: build install
128#       make -f debian/rules binary-common DH_OPTIONS=-p$*
129
130# binary: binary-indep binary-arch
131# .PHONY: build clean binary-indep binary-arch binary install
132
133binary: binary-common
134
135.PHONY: build clean binary install
Note: See TracBrowser for help on using the repository browser.