#!/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