File: rules

package info (click to toggle)
iprutils 2.4.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,556 kB
  • ctags: 3,479
  • sloc: ansic: 26,320; sh: 11,463; makefile: 74; python: 10
file content (23 lines) | stat: -rwxr-xr-x 598 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
#! /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 -- \
		--sbindir=/sbin --libdir=/lib \
		--with-systemd=/lib/systemd/system \
		--with-initscripts=/etc/init.d \
		--enable-iprdumpfmt --enable-sosreport \
		am_cv_python_pythondir=\$${prefix}/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 --name=$$script; \
	done