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 31 32 33
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifeq (linux,$(DEB_HOST_ARCH_OS))
CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=/lib/systemd/system
else
CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=no
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --sbindir=/sbin --enable-warmstarts --enable-libwrap --with-statedir=/run/rpcbind --with-rpcuser=_rpc --enable-debug $(CONFIGURE_EXTRA_FLAGS)
override_dh_installinit:
dh_installinit
install -d debian/rpcbind/etc/insserv.conf.d
cp debian/insserv.conf debian/rpcbind/etc/insserv.conf.d/rpcbind
override_dh_installsystemd:
dh_installsystemd --no-restart-after-upgrade
ifeq (linux,$(DEB_HOST_ARCH_OS))
override_dh_link:
dh_link lib/systemd/system/rpcbind.service lib/systemd/system/portmap.service
dh_link
endif
|