File: rules

package info (click to toggle)
shim-helpers-amd64-signed 1%2B15.8%2B1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 48 kB
  • sloc: sh: 113; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

SIG_DIR := debian/signatures/shim-unsigned

%:
	dh $@

override_dh_auto_install:
	set -e ; \
	find "$(SIG_DIR)" -name '*.sig' -printf '%P\n' | \
	while read sig; do \
		install -o 0 -g 0 -m 0755 -d "debian/tmp/$${sig%/*}" ; \
		install -o 0 -g 0 -m 0644 "/$${sig%.sig}" "debian/tmp/$${sig}ned" ; \
		sbattach --attach "$(SIG_DIR)/$$sig" "debian/tmp/$${sig}ned" ; \
	done

override_dh_install:
	dh_install --sourcedir=debian/tmp .