summaryrefslogtreecommitdiffstats
path: root/debian/signing-template/rules
blob: 0887e3ebc5c3c16707211851bb91fd9a6a33bb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

BINARY = systemd-boot${DEB_HOST_ARCH_EFI}.efi
INSTALLED = usr/lib/systemd/boot/efi/$(BINARY)
SIGNATURE = debian/signatures/systemd-boot-efi/$(INSTALLED).sig

%:
	dh $@

override_dh_auto_build:
	cp /$(INSTALLED) $(BINARY)
	sbattach --attach $(SIGNATURE) $(BINARY)
	mv $(BINARY) $(BINARY).signed

override_dh_gencontrol:
	dh_gencontrol -- -v${DEB_VERSION}