From da3099cc92a279aa59ef8087bf7ac41df518bb26 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 2 Mar 2014 23:49:14 +0100 Subject: Make more checksums, and sign them. --- Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3