File: rules

package info (click to toggle)
orphan-sysvinit-scripts 0.21%2Bdeb13u2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 228 kB
  • sloc: sh: 1,568; makefile: 5
file content (16 lines) | stat: -rwxr-xr-x 608 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
# See debhelper(7)
#Uncomment to output every command that modifies files on the build system.
#export DH_VERBOSE = 1

%:
	dh $@

# We generate the triggers from the unit mapping. When doing so, we also
# mitigate DEP-17 P6 via M20 by duplicating each trigger for / and /usr. The
# duplication can be removed after forky is released and only the /usr interest
# should remain.
debian/orphan-sysvinit-scripts.triggers:lib/mapping
	sed '/^#/d;s,^\(\S*\) .*,interest-noawait /lib/systemd/system/\1,;p;s, , /usr,' <$< >$@

execute_before_dh_installdeb: debian/orphan-sysvinit-scripts.triggers