summaryrefslogtreecommitdiffstats
path: root/debian/signing-template/rules.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/signing-template/rules.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/signing-template/rules.in b/debian/signing-template/rules.in
new file mode 100755
index 0000000..fec6ca5
--- /dev/null
+++ b/debian/signing-template/rules.in
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+SIG_DIR := debian/signatures/@pkg_unsigned@
+
+%:
+ dh $@
+
+override_dh_auto_install:
+ set -e ; \
+ find "$(SIG_DIR)" -name '*.sig' -printf '%P\n' | \
+ while read sig; do \
+ dst="debian/tmp/$${sig%/monolithic/*}-signed/$${sig##*/}ned" ; \
+ install -m 0755 -d "$${dst%/*}" ; \
+ install -m 0644 "/$${sig%.sig}" "$$dst" ; \
+ sbattach --attach "$(SIG_DIR)/$$sig" "$$dst" ; \
+ done
+
+override_dh_install:
+ dh_install --sourcedir=debian/tmp .