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
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
WIREGUARD_ARGS = WIREGUARD_TOOLS_VERSION=$(DEB_VERSION_UPSTREAM) WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes WITH_SYSTEMDUNITS=yes V=1
%:
dh $@
override_dh_auto_build-arch:
dh_auto_build --sourcedirectory=src -- $(WIREGUARD_ARGS)
override_dh_auto_install-arch:
$(MAKE) -C src DESTDIR=../debian/wireguard-tools $(WIREGUARD_ARGS) install
override_dh_fixperms:
dh_fixperms -Xetc/wireguard
override_dh_installexamples:
dh_installexamples -Xexternal-tests
override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
debian/build-time-test.sh
endif
|