debian/rules: fix openkylin vendor

This commit is contained in:
luoyaoming 2022-06-03 06:33:23 +00:00 committed by cckylin-cibot
parent e905a00924
commit fe97171149
2 changed files with 12 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
cryptsetup (2:2.2.2-ok2) yangtze; urgency=medium
* debian/rules:
fix openkylin vendor
-- Luoyaoming <luoyaoming@kylinos.cn> Fri, 03 Jun 2022 14:31:18 +0800
cryptsetup (2:2.2.2-ok1) yangtze; urgency=medium
* Build for openKylin.

5
debian/rules vendored
View File

@ -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 <<EOF\n"; cat debian/initramfs/conf-hook; printf "EOF\n)\""; fi ; done <$(CURDIR)/debian/cryptsetup-initramfs.preinst~ >$(CURDIR)/debian/cryptsetup-initramfs.preinst