summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 8eeedb6405d0a4c22c8931cc406c45b4f6e285ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

ZNC_VERSION=$(shell dpkg-query -f '$${source:Version}' -W znc-dev)

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_gencontrol:
	dh_gencontrol -- "-Vznc:Version=$(ZNC_VERSION)"