File: rules

package info (click to toggle)
acpid 1%3A2.0.34-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,152 kB
  • sloc: sh: 4,602; ansic: 4,382; perl: 283; makefile: 37
file content (25 lines) | stat: -rwxr-xr-x 1,042 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_CFLAGS_MAINT_PREPEND = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE
export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing

%:
	dh ${@} --with runit

# acpid.service will still be started by dh_installinit on installation, but
# the systemd service is socket-activated, thus does not have to be started
override_dh_installsystemd:
	dh_installsystemd -pacpid --no-enable --no-start acpid.service
	dh_installsystemd -pacpid acpid.socket
	dh_installsystemd -pacpid acpid.path
	dh_installsystemd --remaining-packages

override_dh_missing:
	dh_missing --exclude usr/bin/acpi_listen --exclude usr/sbin/acpid \
	 --exclude usr/sbin/kacpimon --exclude usr/share/doc/acpid/COPYING \
	 --exclude usr/share/doc/acpid/Changelog --exclude usr/share/doc/acpid/README \
	 --exclude usr/share/doc/acpid/TESTPLAN --exclude usr/share/doc/acpid/TODO \
	 --exclude usr/share/man/man8/acpid.8 --exclude usr/share/man/man8/kacpimon.8 \
     --exclude usr/share/man/man8/acpi_listen.8