summaryrefslogtreecommitdiff
path: root/keyexchange/isakmpd-20041012/debian/rules
blob: d15e56a7f9f0797a4a636310fff46d3fa64c74a3 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/make -f

export DH_COMPAT := 5

b := $(CURDIR)/debian/isakmpd

arrange: arrange-stamp
arrange-stamp: install
	dh_testdir
	touch arrange-stamp

binary: binary-stamp
binary-stamp: binary-indep binary-arch
	dh_testdir
	touch binary-stamp

binary-arch: binary-arch-stamp
binary-arch-stamp: arrange
	dh_testdir
	dh_testroot
	dh_installdocs -n DESIGN-NOTES QUESTIONS README README.PKI TO-DO $(CURDIR)/debian/README.Debian x509v3.cnf
	cp $(CURDIR)/samples/*.conf $(b)/usr/share/doc/isakmpd/samples/
	cp $(CURDIR)/samples/VPN-east.conf $(b)/etc/isakmpd/isakmpd.conf
	cp $(CURDIR)/samples/policy $(b)/etc/isakmpd/isakmpd.policy
	cp $(CURDIR)/isakmpd $(b)/usr/sbin/
	cp $(CURDIR)/apps/certpatch/certpatch $(b)/usr/bin
	cp $(CURDIR)/debian/isakmpd.lintian $(b)/usr/share/lintian/overrides/isakmpd
	dh_installman isakmpd.8 isakmpd.conf.5 isakmpd.policy.5 apps/certpatch/certpatch.8
	dh_installinit
	dh_installchangelogs $(CURDIR)/debian/ChangeLog upstream
	dh_compress
	dh_fixperms
	find $(b)/etc/isakmpd -type d | xargs chmod 0700
	find $(b)/etc/isakmpd -type f | xargs chmod 0600
	dh_strip
	dh_installdeb
	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb
	touch binary-arch-stamp

binary-indep: binary-indep-stamp
binary-indep-stamp: arrange
	dh_testdir
	touch binary-indep-stamp

build: build-stamp
build-stamp: config
	dh_testdir
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	$(MAKE) clean
	dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp 
	find $(CURDIR) -type f -name ".depend" | xargs rm -f

config: config-stamp
config-stamp:
	dh_testdir
	touch config-stamp

install: install-stamp
install-stamp: build
	dh_testdir
	dh_installdirs
	touch install-stamp

.PHONY: arrange binary binary-arch binary-indep build clean config install