summaryrefslogtreecommitdiffstats
path: root/debian/signing-template/rules
blob: b2483427d1df5fd98a26eb165bb48210cf12177b (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${TEMPLATE_EFI_ARCH}.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}