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
11 # Uncomment this to turn on verbose mode.
14 # This is the debhelper compatability version to use.
20 umask
022; $(MAKE
) all
34 $(RM
) -r debian
/$(package
)
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
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)
73 install -m644 debian
/copyright \
74 debian
/$(package
)/usr
/share
/doc
/$(package
)/copyright
76 # Set permissions on our helper scripts
77 chmod
755 debian
/$(package
)/usr
/share
/$(package
)/*
81 sed
'/:/s/, *$$//' debian
/$(package
)/DEBIAN
/control \
82 >debian
/$(package
)/DEBIAN
/control.new
83 mv debian
/$(package
)/DEBIAN
/control.new debian
/$(package
)/DEBIAN
/control
88 # Below here is fairly generic really
90 binary
: binary-indep binary-arch
93 @echo
>&2 'source and diff are obsolete - use dpkg-source -b'; false
95 .PHONY
: binary-arch binary-indep
clean