update debian/rules

This commit is contained in:
luoyaoming 2022-06-07 05:34:48 +00:00 committed by cckylin-cibot
parent fe97171149
commit 201a41603f
2 changed files with 9 additions and 3 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
cryptsetup (2:2.2.2-ok3) yangtze; urgency=medium
* update debian/rules.
-- Luoyaoming <luoyaoming@kylinos.cn> Tue, 07 Jun 2022 11:44:04 +0800
cryptsetup (2:2.2.2-ok2) yangtze; urgency=medium
* debian/rules:

6
debian/rules vendored
View File

@ -60,9 +60,9 @@ ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
$(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
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