File: rules

package info (click to toggle)
vpnc 0.5.3%2Bgit20241220-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: ansic: 8,645; makefile: 174; perl: 168; sh: 23
file content (31 lines) | stat: -rwxr-xr-x 810 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
ifneq ($(filter cross,$(DEB_BUILD_PROFILES)),)
export VPNC = /usr/sbin/vpnc
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- SCRIPT_PATH=/usr/share/vpnc-scripts/vpnc-script VERSION=$(DEB_VERSION)

override_dh_auto_install:
	touch install-doc
	dh_auto_install -- PREFIX=/usr
	rm -rf ./debian/vpnc/usr/share/licenses
	# Remove the systemd service directory and file. Dh_installsystemd installs
	# it automatically from the link in debian/ to the correct location
	# (/lib or /usr/lib).
	rm -rf ./debian/vpnc/usr/lib

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