Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4 include /usr/share/dpkg/pkg-info.mk
5 include /usr/share/debhelper/dh_package_notes/package-notes.mk
6
7 CONFOPTS=-Dsplit-usr=false -Dwtmpdbd=disabled
8
9 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
10
11 %:
12 dh $@
13
14 override_dh_auto_configure:
15 dh_auto_configure -- $(CONFOPTS)
16
17 # Notes:
18 # 1. Do not add a boot entry on installation because most likely we are
19 # either not running in the target system or we have migrated the wtmp
20 # boot entry and in all cases we did not just boot up.
21 # 2. Do not install the rotation service because log rotation is handled
22 # by logrotate(8) and the competing (half) solution would be especially
23 # harmful if boith methods were enabled by misconfiguration.
24 override_dh_installsystemd:
25 dh_installsystemd -pwtmpdb --no-start --no-stop-on-upgrade wtmpdb-update-boot.service
26 dh_installsystemd -Nwtmpdb
27
28 override_dh_installinit:
29 dh_installinit --name=wtmpdb-update-boot --no-start --no-stop-on-upgrade
30
31 override_dh_installlogrotate:
32 dh_installlogrotate --name=wtmpdb