From fe97171149df3874791743a6b6f080e629659c27 Mon Sep 17 00:00:00 2001 From: luoyaoming Date: Fri, 3 Jun 2022 06:33:23 +0000 Subject: [PATCH] debian/rules: fix openkylin vendor --- debian/changelog | 7 +++++++ debian/rules | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index df60e06..3b195ae 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +cryptsetup (2:2.2.2-ok2) yangtze; urgency=medium + + * debian/rules: + fix openkylin vendor + + -- Luoyaoming Fri, 03 Jun 2022 14:31:18 +0800 + cryptsetup (2:2.2.2-ok1) yangtze; urgency=medium * Build for openKylin. diff --git a/debian/rules b/debian/rules index 95b79ee..4de9d07 100755 --- a/debian/rules +++ b/debian/rules @@ -58,6 +58,11 @@ ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes) mkdir -p $(CURDIR)/debian/cryptsetup/usr/share/apport/package-hooks install -m 0644 debian/cryptsetup.apport \ $(CURDIR)/debian/cryptsetup/usr/share/apport/package-hooks/cryptsetup.py +endif +ifeq ($(shell dpkg-vendor --is openKylin && echo yes),yes) + mkdir -p $(CURDIR)/debian/cryptsetup/usr/share/apport/package-hooks + install -m 0644 debian/cryptsetup.apport \ + $(CURDIR)/debian/cryptsetup/usr/share/apport/package-hooks/cryptsetup.py endif mv -f $(CURDIR)/debian/cryptsetup-initramfs.preinst $(CURDIR)/debian/cryptsetup-initramfs.preinst~ while IFS= read -r x; do if [ "$${x#CONF_HOOK_CONTENTS=}" = "$$x" ]; then printf "%s\n" "$$x"; else printf "CONF_HOOK_CONTENTS=\"\$$(cat <$(CURDIR)/debian/cryptsetup-initramfs.preinst