File: rules

package info (click to toggle)
rpcbind 1.2.5-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 996 kB
  • sloc: ansic: 5,607; sh: 1,350; makefile: 72
file content (33 lines) | stat: -rwxr-xr-x 891 bytes parent folder | download
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 $(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