~ubuntu-branches/ubuntu/oneiric/openbsd-inetd/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2005-01-02 02:40:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050102024043-e58kyd2n8kdrslea
Tags: 0.20040915-1
* New CVS snapshot.
  + Fixes gcc 4.0 FTBFS. (Closes: #287860)
* Made the init script source /etc/default/openbsd-inetd, if present.
  (Closes: #251224)
* Documented in inetd(8) that switching between binding to INADDR_ANY and
  to a specific address requires restarting the daemon. (Closes: #242392)
* Added code to create the requested type of IPv6 socket using
  setsockopt(IPPROTO_IPV6). This requires a modern 2.4 or 2.6 kernel.
* Added Conflicts+Replaces+Provides: netkit-inetd to fully replace it.
  prerm will unlink netkit-inetd's conffiles and the init script is
  named openbsd-inetd to allow purging netkit-inetd.
  Alternative solutions to both issues are welcome.
* Changed the default inetd.conf to satisfy people who think that every
  listening socket is a security hole: no internal services are enabled
  by default. This means that the daemon will not even be started by the
  init script until some service is enabled in inetd.conf.
* Removed from the default inetd.conf the already-commented examples
  of the internal services which are actually dangerous to run.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
# Make the shell exit with an error if an untested command fails.
4
2
SHELL+= -e
5
3
 
6
 
export DH_COMPAT=4
7
 
#export DH_VERBOSE=1
 
4
D := $(shell pwd)/debian/openbsd-inetd
8
5
 
9
6
build:
10
7
        dh_testdir
11
8
        $(MAKE) -f Makefile.debian
12
 
        touch build
 
9
        touch $@
13
10
 
14
11
clean:
15
12
        dh_testdir
16
13
        -rm -f build
17
14
        $(MAKE) -f Makefile.debian clean
18
 
        -cd debian && rm -rf openbsd-inetd files* substvars *debhelper
 
15
        dh_clean
19
16
 
20
17
binary-arch: checkroot build
21
18
        dh_testdir
22
 
        dh_clean -k
 
19
        dh_clean
 
20
 
23
21
        dh_installdirs usr/sbin/ usr/share/man/man5
24
22
        dh_installdocs
25
23
        dh_installman inetd.8
26
24
        dh_installchangelogs ChangeLog
27
25
        dh_link usr/share/man/man8/inetd.8.gz \
28
26
                        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"
 
27
        install --mode=755 inetd $D/usr/sbin/
 
28
        dh_installinit --update-rcd-params="defaults 20" #--name=inetd
33
29
        dh_strip
34
30
        dh_compress
35
31
        dh_fixperms
36
32
        dh_shlibdeps
 
33
        dh_installdeb
37
34
        dh_gencontrol
38
 
        dh_installdeb
39
35
        dh_builddeb
40
36
        
41
37
binary: binary-arch