File: rules

package info (click to toggle)
vpnc 0.5.3r512-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 836 kB
  • sloc: ansic: 8,043; sh: 618; perl: 168; makefile: 121
file content (26 lines) | stat: -rwxr-xr-x 691 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
#!/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

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

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