File: rules

package info (click to toggle)
isakmpd 20041012-8
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,020 kB
  • sloc: ansic: 34,371; sh: 427; makefile: 372; perl: 67
file content (30 lines) | stat: -rwxr-xr-x 1,121 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

UPSTREAM_VERSION ?=20041012
b := $(CURDIR)/debian/isakmpd

%:
	dh $@

.PHONY: override_dh_auto_install
override_dh_auto_install:
	dh_auto_install
	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

.PHONY: override_dh_fixperms
override_dh_fixperms:
	dh_fixperms
	find $(b)/etc/isakmpd -type d | xargs chmod 0700
	find $(b)/etc/isakmpd -type f | xargs chmod 0600

.PHONY: get-orig-source
get-orig-source:
	@cd /tmp; cvs -d ":pserver:anoncvs@anoncvs.jp.openbsd.org:/cvs" co -D ${UPSTREAM_VERSION} src/sbin/isakmpd
	@cd /tmp/src/sbin; mv isakmpd isakmpd-${UPSTREAM_VERSION}; tar czf /tmp/isakmpd_${UPSTREAM_VERSION}.orig.tar.gz --exclude CVS isakmpd-${UPSTREAM_VERSION}
	@rm -rf /tmp/src