File: rules

package info (click to toggle)
ocserv 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,924 kB
  • sloc: ansic: 46,747; sh: 12,630; makefile: 412; xml: 29
file content (27 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Used by autogen to substitute the source package date into man pages
export MAN_PAGE_DATE = $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" +%Y-%m-%d)

#ifeq ($(DEB_BUILD_ARCH_OS),linux)
	OTHER_CONF_OPTS = --enable-systemd
#endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-rpath --disable-silent-rules \
	    --enable-latency-stats \
	    --without-nuttcp-tests --without-docker-tests \
	    $(OTHER_CONF_OPTS)

override_dh_installsystemd:
	dh_installsystemd --no-stop-on-upgrade --no-enable --no-start ocserv.service

override_dh_auto_test:
	# Most of them need root, actually test them in debci instead
	-dh_auto_test