debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | PACKAGE_NAME := fwupd-unsigned |
| 5 | SIG_PKG_NAME := fwupd-amd64-signed |
| 6 | SIGNATURE_DIR := debian/signatures/$(PACKAGE_NAME) |
| 7 | BINARY := $(shell find /usr/libexec/fwupd/efi -name '*.efi' | xargs basename) |
| 8 | |
| 9 | %: |
| 10 | dh $@ |
| 11 | |
| 12 | override_dh_auto_build: |
| 13 | cp /usr/libexec/fwupd/efi/$(BINARY) . |
| 14 | sbattach --attach $(SIGNATURE_DIR)/usr/libexec/fwupd/efi/$(BINARY).sig $(BINARY) |
| 15 | mv $(BINARY) $(BINARY).signed |