/[echolot]/trunk/debian/rules
ViewVC logotype

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 712 - (show annotations) (download)
Mon Dec 10 09:34:38 2007 UTC (5 years, 5 months ago) by weasel
File size: 1652 byte(s)
Move DH_COMPAT from the rules file into debian/compat.
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 version=`grep 'VERSION =' pingd | sed -e "s/.* '//" -e "s/'.*//"`
9 REMAILERS=`tr '\n' ' ' < debian/remailers`
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 build: build-stamp
19 build-stamp:
20 touch build-stamp
21
22 clean:
23 dh_testdir
24 dh_testroot
25
26 rm -f build-stamp
27
28 dh_clean
29
30 install: build
31 dh_testdir
32 dh_testroot
33 dh_clean -k
34 dh_installdirs
35
36 tar c Echolot | tar xv -C $(CURDIR)/debian/echolot/usr/share/perl5/
37 tar c --exclude LICENSE templates | tar xv -C $(CURDIR)/debian/echolot/etc/echolot
38 install -m 755 pingd $(CURDIR)/debian/echolot/usr/bin/
39 install -m 644 debian/pingd.conf $(CURDIR)/debian/echolot/etc/echolot
40 install -m 644 debian/echolot.default $(CURDIR)/debian/echolot/etc/default/echolot
41
42
43 binary-indep: build install
44 dh_testdir
45 dh_testroot
46 dh_installdebconf
47 dh_installdocs
48 dh_installmenu
49 dh_installlogrotate
50 dh_installman
51 dh_installchangelogs NEWS
52 dh_installinit
53 dh_link
54 dh_strip
55 dh_compress
56 dh_fixperms
57 dh_installdeb
58 dh_shlibdeps
59 dh_gencontrol
60 dh_md5sums
61 dh_builddeb
62
63 binary-arch:
64 # We have nothing to do by default.
65
66 binary: binary-indep binary-arch
67
68 update-remailers:
69 dh_testdir
70 wget -O - http://stats.melontraffickers.com/mlist2.txt | grep '@' | sed -e 's/.*<//' -e 's/>.*//' > debian/remailers
71
72 debian/remailers: update-remailers
73
74 .PHONY: build clean binary-indep binary-arch binary install configure remailers

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5