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 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifeq (linux,$(DEB_HOST_ARCH_OS))
# Setting no would also disable support in the rpcbind executable.
CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=/unused
else
CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=no
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --enable-warmstarts --enable-libwrap --with-statedir=/run/rpcbind --with-rpcuser=_rpc --enable-debug $(CONFIGURE_EXTRA_FLAGS)
execute_after_dh_auto_install:
rm -Rf debian/rpcbind/unused
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))
execute_before_dh_link:
dh_link $$(test -d debian/rpcbind/usr/lib/systemd && echo usr/)lib/systemd/system/rpcbind.service $$(test -d debian/rpcbind/usr/lib/systemd && echo usr/)lib/systemd/system/portmap.service
endif
|