File: rules

package info (click to toggle)
openbsd-inetd 0.20050402-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 188 kB
  • ctags: 156
  • sloc: ansic: 1,938; sh: 107; makefile: 38
file content (44 lines) | stat: -rwxr-xr-x 783 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
SHELL+= -e

D := $(CURDIR)/debian/openbsd-inetd

build:
	dh_testdir
	$(MAKE) -f Makefile.debian
	touch $@

clean:
	dh_testdir
	-rm -f build
	$(MAKE) -f Makefile.debian clean
	dh_clean

binary-arch: checkroot build
	dh_testdir
	dh_clean

	dh_installdirs usr/sbin/ usr/share/man/man5
	dh_installdocs
	dh_installman inetd.8
	dh_installchangelogs ChangeLog
	dh_link usr/share/man/man8/inetd.8.gz \
			usr/share/man/man5/inetd.conf.5.gz
	install --mode=755 inetd $D/usr/sbin/
	dh_installinit --update-rcd-params="defaults 20" #--name=inetd
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_installdeb
	dh_gencontrol
	dh_builddeb
	
binary:	binary-arch

binary-indep:

checkroot:
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep build clean checkroot