File: rules

package info (click to toggle)
vpnc 0.5.3r550-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 752 kB
  • ctags: 1,229
  • sloc: ansic: 8,189; sh: 662; perl: 169; makefile: 163
file content (29 lines) | stat: -rwxr-xr-x 779 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
#!/usr/bin/make -f

VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
SVN_REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*r([^-]+).*,\1,p')
SVN_URL=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
ORIGDIR=vpnc-$(VERSION)
TARNAME=vpnc_$(VERSION).orig.tar.gz

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

get-orig-source:
	rm -rf $(ORIGDIR)
	git svn clone -r $(SVN_REV) $(SVN_URL) $(ORIGDIR)
	rm -rf $(ORIGDIR)/.git
	tar czf ../$(TARNAME) $(ORIGDIR)
	rm -rf $(ORIGDIR)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr install
	rm ./debian/vpnc/usr/share/doc/vpnc/COPYING
	rm ./debian/vpnc/etc/vpnc/vpnc-script

override_dh_fixperms:
	dh_fixperms
	chmod 700 ./debian/vpnc/etc/vpnc
	chmod 600 ./debian/vpnc/etc/vpnc/default.conf