~gandelman-a/ubuntu/oneiric/openbsd-inetd/merge

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-08-20 15:51:39 UTC
  • Revision ID: james.westby@ubuntu.com-20020820155139-y1shmgf3ts6hcxrd
Tags: 0.20020802-1
* New package.
* Pre/postinstall scripts borrowed from aj's netkit-inetd package.
* This package fixes many bugs in netkit-inetd, among them:
  #10813, #32579, #55052, #66752, #143539, #143815, #143816, #125181,
  #45907, #82241, #96544, #110673.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Make the shell exit with an error if an untested command fails.
 
4
SHELL+= -e
 
5
 
 
6
export DH_COMPAT=4
 
7
#export DH_VERBOSE=1
 
8
 
 
9
build:
 
10
        dh_testdir
 
11
        $(MAKE) -f Makefile.debian
 
12
        touch build
 
13
 
 
14
clean:
 
15
        dh_testdir
 
16
        -rm -f build
 
17
        $(MAKE) -f Makefile.debian clean
 
18
        -cd debian && rm -rf openbsd-inetd files* substvars *debhelper
 
19
 
 
20
binary-arch: checkroot build
 
21
        dh_testdir
 
22
        dh_clean -k
 
23
        dh_installdirs usr/sbin/ usr/share/man/man5
 
24
        dh_installdocs
 
25
        dh_installman inetd.8
 
26
        dh_installchangelogs ChangeLog
 
27
        dh_link usr/share/man/man8/inetd.8.gz \
 
28
                        usr/share/man/man5/inetd.conf.5.gz
 
29
        install --mode=755 inetd debian/openbsd-inetd/usr/sbin/
 
30
# XXX I do not want to jump the hoops needed to make every program happy, so
 
31
# until we can dump netkit-inetd this package will use its init script
 
32
#       dh_installinit --init-script=inetd --update-rcd-params="defaults 20"
 
33
        dh_strip
 
34
        dh_compress
 
35
        dh_fixperms
 
36
        dh_shlibdeps
 
37
        dh_gencontrol
 
38
        dh_installdeb
 
39
        dh_builddeb
 
40
        
 
41
binary: binary-arch
 
42
 
 
43
checkroot:
 
44
        test root = "`whoami`"
 
45
 
 
46
.PHONY: binary binary-arch binary-indep build clean checkroot