debian/rules: fix openkylin vendor

This commit is contained in:
luoyaoming 2022-06-07 14:06:49 +08:00
parent 00d1263f3a
commit 9e4c8bd87a
2 changed files with 27 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
sysvinit (2.96-ok2) yangtze; urgency=medium
* debian/rules: fix openkylin vendor
-- Luoyaoming <luoyaoming@kylinos.cn> Fri, 03 Jun 2022 17:05:10 +0800
sysvinit (2.96-ok1) yangtze; urgency=low
* Build for openKylin.

21
debian/rules vendored
View File

@ -34,6 +34,9 @@ DH_OPTIONS =
ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
DH_OPTIONS = -Nsysvinit-core -Nsysv-rc -Ninitscripts -Nbootlogd
endif
ifeq ($(shell dpkg-vendor --query vendor),openKylin)
DH_OPTIONS = -Nsysvinit-core -Nsysv-rc -Ninitscripts -Nbootlogd
endif
# Use debhelper's dh
%:
@ -90,6 +93,16 @@ ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
$(bootlogdtmp)$(doc)/bootlogd/changelog.Debian
endif
ifneq ($(shell dpkg-vendor --query vendor),openKylin)
dh_installchangelogs -psysvinit-utils doc/Changelog
sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
$(utiltmp)$(doc)/sysvinit-utils/changelog.Debian
dh_installchangelogs -pbootlogd
sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
$(bootlogdtmp)$(doc)/bootlogd/changelog.Debian
endif
override_dh_installchangelogs-indep:
dh_installchangelogs
ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
@ -100,6 +113,14 @@ ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
$(inittmp)$(doc)/initscripts/changelog.Debian
endif
ifneq ($(shell dpkg-vendor --query vendor),openKylin)
sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
$(rctmp)$(doc)/sysv-rc/changelog.Debian
dh_installchangelogs -pinitscripts
sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
$(inittmp)$(doc)/initscripts/changelog.Debian
endif
override_dh_installdeb:
dh_installdeb