File: rules

package info (click to toggle)
runit 2.1.2-9.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,660 kB
  • ctags: 1,087
  • sloc: ansic: 5,701; sh: 664; makefile: 361
file content (33 lines) | stat: -rwxr-xr-x 939 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
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
export DEB_BUILD_OPTIONS = hardening=+all

%:
	dh $@ --sourcedirectory=runit-$(DEB_VERSION_UPSTREAM)/src \
	      --with bash_completion,systemd,runit,buildinfo --parallel

override_dh_systemd_enable:
	dh_systemd_enable --name runit

override_dh_runit: runscripts/getty
	dh_runit

debian/runscripts/getty-%/run: debian/runscripts/getty.run.x
	mkdir -p $(@D)
	$< $* > $@
debian/runscripts/getty-%/finish: debian/runscripts/getty.finish.x
	mkdir -p $(@D)
	$< $* > $@

runscripts/getty: $(foreach n, 1 2 3 4 5 6, debian/runscripts/getty-tty$n/run)
runscripts/getty: $(foreach n, 1 2 3 4 5 6, debian/runscripts/getty-tty$n/finish)

override_dh_clean:
	rm -fr $(foreach n, 1 2 3 4 5 6, debian/runscripts/getty-tty$n)
	dh_clean
override_dh_installchangelogs:
	dh_installchangelogs
	dh_installchangelogs -p runit \
	    runit-$(DEB_VERSION_UPSTREAM)/package/CHANGES

.PHONY: runscripts/getty