[UNSTABLE][PATCH 1/3] UBUNTU: [Packaging] build canonical-revoked-certs.pem from branch/arch certs
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Tue Jun 15 15:40:02 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1932029
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
debian/rules | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 1628610d3a40..737da1063598 100755
--- a/debian/rules
+++ b/debian/rules
@@ -129,7 +129,7 @@ binary: binary-indep binary-arch
build: build-arch build-indep
-clean: debian/control debian/canonical-certs.pem
+clean: debian/control debian/canonical-certs.pem debian/canonical-revoked-certs.pem
dh_testdir
dh_testroot
dh_clean
@@ -246,3 +246,15 @@ debian/canonical-certs.pem: $(wildcard $(DROOT)/certs/*-all.pem) $(wildcard $(DR
fi; \
done; \
done >"$@"
+
+debian/canonical-revoked-certs.pem: $(wildcard $(DROOT)/revoked-certs/*-all.pem) $(wildcard $(DROOT)/revoked-certs/*-$(arch).pem) $(wildcard $(DEBIAN)/revoked-certs/*-all.pem) $(wildcard $(DEBIAN)/revoked-certs/*-$(arch).pem)
+ for cert in $(sort $(notdir $^)); \
+ do \
+ for dir in $(DEBIAN) $(DROOT); \
+ do \
+ if [ -f "$$dir/revoked-certs/$$cert" ]; then \
+ cat "$$dir/revoked-certs/$$cert"; \
+ break; \
+ fi; \
+ done; \
+ done >"$@"
--
2.27.0
More information about the kernel-team
mailing list