File: rules

package info (click to toggle)
wtmpdb 0.75.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 692 kB
  • sloc: ansic: 4,222; xml: 715; sh: 81; makefile: 16
file content (32 lines) | stat: -rwxr-xr-x 1,074 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
include /usr/share/debhelper/dh_package_notes/package-notes.mk

CONFOPTS=-Dsplit-usr=false -Dwtmpdbd=disabled

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFOPTS)

# Notes:
#  1. Do not add a boot entry on installation because most likely we are
#     either not running in the target system or we have migrated the wtmp
#     boot entry and in all cases we did not just boot up.
#  2. Do not install the rotation service because log rotation is handled
#     by logrotate(8) and the competing (half) solution would be especially
#     harmful if boith methods were enabled by misconfiguration.
override_dh_installsystemd:
	dh_installsystemd -pwtmpdb --no-start --no-stop-on-upgrade wtmpdb-update-boot.service
	dh_installsystemd -Nwtmpdb

override_dh_installinit:
	dh_installinit --name=wtmpdb-update-boot --no-start --no-stop-on-upgrade

override_dh_installlogrotate:
	dh_installlogrotate --name=wtmpdb