Add a dequeue image.
[adorno.git] / debian / rules
blobad54517252233f2ed4459122ebdb31a8ed181a73
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # debian/rules file - for whereami
4 # Copyright 1999-2001 by Andrew McMillan
5 # Based on the pcmcia package by Brian Mays
6 # Patterned after the hello package by Ian Jackson.
8 # The package we are dealing with
9 package=whereami
11 # Uncomment this to turn on verbose mode.
12 export DH_VERBOSE=1
14 # This is the debhelper compatability version to use.
15 export DH_COMPAT=3
18 build-stamp:
19 dh_testdir
20 umask 022; $(MAKE) all
21 touch build-stamp
23 clean:
24 dh_testdir
25 dh_testroot
26 rm -f build-stamp
27 -$(MAKE) clean
28 dh_clean
30 binary: build-stamp
31 dh_testdir
32 dh_testroot
33 dh_clean -k
34 $(RM) -r debian/$(package)
35 dh_installdebconf
36 # Install directories
37 dh_installdirs DEBIAN etc etc/init.d etc/$(package) \
38 etc/$(package)/tests etc/apm etc/apm/event.d \
39 usr usr/sbin usr/share usr/share/doc \
40 usr/share/$(package) \
41 usr/share/$(package)/tests \
42 usr/share/doc/$(package) \
43 usr/share/doc/$(package)/html/ \
44 usr/share/doc/$(package)/html/images \
45 usr/share/doc/$(package)/patches/ \
46 usr/share/doc/$(package)/examples/ \
47 usr/share/man usr/share/man/man8
49 # Install files
50 install bin/$(package).sh debian/$(package)/usr/sbin/.
51 install bin/$(package).pl debian/$(package)/usr/sbin/.
52 dh_installinit --no-restart-on-upgrade --update-rcd-params="defaults 35 65"
53 install bin/whereami.apm debian/$(package)/etc/apm/event.d/10$(package)
54 install -m644 whereami.conf mail-relay.conf apm.conf detect.conf debian/$(package)/etc/$(package)/.
55 install -m644 debian/*.patch debian/$(package)/usr/share/doc/$(package)/patches/.
56 install -m644 `find samples -maxdepth 1 -type f` debian/$(package)/usr/share/doc/$(package)/examples/.
57 install -m644 html/*.html debian/$(package)/usr/share/doc/$(package)/html/.
58 install -m644 `find html/images -maxdepth 1 -type f` debian/$(package)/usr/share/doc/$(package)/html/images/.
59 install -m755 `find scripts -maxdepth 1 -type f ` debian/$(package)/usr/share/$(package)/.
60 install -m755 `find scripts/tests -maxdepth 1 -type f ` debian/$(package)/usr/share/$(package)/tests/.
61 # Find configuration files
62 find debian/$(package)/etc/$(package) -name "*.conf" -not -type d | \
63 sed 's%debian/$(package)%%' > debian/$(package)/DEBIAN/conffiles
64 echo "/etc/init.d/$(package)" >>debian/$(package)/DEBIAN/conffiles
65 echo "/etc/apm/event.d/10$(package)" >>debian/$(package)/DEBIAN/conffiles
66 # Install documentation
67 install -m644 AUTHORS README CONFIGURE VERSION TODO \
68 debian/$(package)/usr/share/doc/$(package)/.
69 dh_installman man/whereami.8 man/detect.conf.5 man/whereami.conf.5
70 (cd debian/$(package)/usr/share/man/man8; ln -s whereami.8 whereami.pl.8; ln -s whereami.8 whereami.sh.8)
71 dh_installchangelogs
72 dh_compress
73 install -m644 debian/copyright \
74 debian/$(package)/usr/share/doc/$(package)/copyright
75 dh_fixperms
76 # Set permissions on our helper scripts
77 chmod 755 debian/$(package)/usr/share/$(package)/*
78 dh_installdeb
79 dh_perl
80 dh_gencontrol
81 sed '/:/s/, *$$//' debian/$(package)/DEBIAN/control \
82 >debian/$(package)/DEBIAN/control.new
83 mv debian/$(package)/DEBIAN/control.new debian/$(package)/DEBIAN/control
84 dh_md5sums
85 dh_builddeb
88 # Below here is fairly generic really
90 binary: binary-indep binary-arch
92 source diff:
93 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
95 .PHONY: binary-arch binary-indep clean