File: rules

package info (click to toggle)
iprutils 2.4.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,564 kB
  • sloc: ansic: 26,363; sh: 11,495; makefile: 79; python: 10
file content (25 lines) | stat: -rwxr-xr-x 649 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
#! /usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS)

%:
	dh $@ --with=autoreconf,systemd

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/ --mandir=/usr/share/man \
		--with-initscripts=/etc/init.d \
		--enable-iprdumpfmt --enable-sosreport \
		am_cv_python_pythondir=/usr/share/sosreport

override_dh_install:
	dh_install
	chmod +x debian/iprutils/etc/ha.d/resource.d/iprha

override_dh_installinit:
	set -e; for script in iprinit iprdump iprupdate; do \
		dh_installinit --no-start --name=$$script; \
	done

override_dh_systemd_start:
	dh_systemd_start --restart-after-upgrade --no-start