summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-03-02 23:49:14 +0100
committerJonas Smedegaard <dr@jones.dk>2014-03-02 23:49:14 +0100
commitda3099cc92a279aa59ef8087bf7ac41df518bb26 (patch)
tree4f4f2d37313c78114d233411698a661c8eb3b8d9
parent0727675c322ea4e29ec876be78dcea202c7758de (diff)
Make more checksums, and sign them.
-rw-r--r--Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bace426..813f019 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,13 @@ basefiles = $(patsubst %,content/%/base/preseed.cfg,$(profiles))
topicfiles = $(patsubst %,content/desktop/%/preseed.cfg,$(desktoptopics))
mainfiles = $(patsubst %,content/%/preseed.cfg,$(profiles))
allfiles = $(basefiles) $(topicfiles) $(mainfiles)
+mdfiles = content/MD5SUMS
+shafiles = $(patsubst %,content/SHA%SUMS,1 256 512)
+checksumfiles = $(mdfiles) $(shafiles)
+signfiles = $(patsubst %,%.sign,$(checksumfiles))
-all: $(allfiles)
+all: $(checksumfiles)
+sign: $(signfiles)
$(basefiles): content/%/base/preseed.cfg : profiles/% profiles/%-z
bin/pkglist2preseed skel/preseed.cfg.in $@ $^
@@ -16,3 +21,15 @@ $(topicfiles): content/desktop/%/preseed.cfg : profiles/desktop profiles/desktop
$(mainfiles): content/%/preseed.cfg : profiles/% profiles/%-email $(desktoptopiclists) profiles/%-z
bin/pkglist2preseed skel/preseed.cfg.in $@ $^
+
+$(mdfiles): content/MD%SUMS: $(allfiles)
+ cd content && md$*sum $(allfiles:content/%=%) > MD$*SUMS~
+ mv -f $@~ $@
+
+$(shafiles): content/SHA%SUMS: $(allfiles)
+ cd content && sha$*sum $(allfiles:content/%=%) > SHA$*SUMS~
+ mv -f $@~ $@
+
+$(signfiles): %.sign: %
+ rm -f $@
+ gpg --detach-sign -a -o $@ $<