1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/make -f
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Ensure that we link against all needed libraries (cf. Policy 10.2)
export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --with systemd
override_dh_auto_install:
dh_auto_install -- LIBNUM=/lib/$(DEB_HOST_MULTIARCH)
DEFDIR=debian/dlm-controld/etc/default
SDDIR= debian/dlm-controld/lib/systemd/system
override_dh_install:
dh_install --fail-missing
mkdir -p "$(DEFDIR)" "$(SDDIR)"
cp init/dlm.sysconfig "$(DEFDIR)"/dlm
cp init/dlm.service "$(SDDIR)"
|