File: rules

package info (click to toggle)
openvpn3-client 26%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,584 kB
  • sloc: cpp: 235,612; python: 8,263; ansic: 1,866; sh: 1,414; java: 402; lisp: 81; makefile: 18; javascript: 4; xml: 1
file content (30 lines) | stat: -rwxr-xr-x 866 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_BUILD_OPTIONS+=nocheck

%:
	dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- \
    -Dbash-completion=enabled \
    -Dopenvpn_username=_openvpn \
    -Dopenvpn_group=_openvpn \
    -Dasio_path=/usr/ \
    -Dunit_tests=disabled \
		-Daddon-deviceposture=enabled

# dh_ needs to be called in the arch independent build. It is only part
# of the default sequence from compat level 14
override_dh_auto_install:
	dh_installsysusers
	dh_auto_install
	# delete the installed header file, this is not a library
	$(RM) -r $(CURDIR)/debian/openvpn3-client/usr/include
	# allow the directory to be created with tmpfiles.d with the
	# correct owner/permissions
	$(RM) -r $(CURDIR)/debian/openvpn3-client/var/lib/openvpn3/configs