summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-07-23 09:19:59 (GMT)
committerMartin Pitt <martin.pitt@ubuntu.com>2016-07-23 12:34:40 (GMT)
commit6ac609340af19a8d021c5ab8fea50c65241d1d0b (patch)
treea061f1cadac46b16074740584ab839fff0da4162
parent016e8a4e682954253d4e83960710278efc5de08f (diff)
When building for Ubuntu, skip all binaries except for sysvinit-utils
With this the package can be synced again in Ubuntu.
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules10
2 files changed, 15 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 1b4d1b9..e4188ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sysvinit (2.88dsf-59.9) UNRELEASED; urgency=medium
+
+ * When building for Ubuntu, skip all binaries except for sysvinit-utils.
+
+ -- Martin Pitt <mpitt@debian.org> Sat, 23 Jul 2016 11:19:23 +0200
+
sysvinit (2.88dsf-59.8) unstable; urgency=medium
* Non-maintainer upload.
diff --git a/debian/rules b/debian/rules
index 6a9a9fb..e3e076c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-INSTALL_DATA = install -o root -g root -m 644
+INSTALL_DATA = install -o root -g root -m 644 -D
INSTALL = install -o root -g root -m 755
# Handle cross builds
@@ -33,6 +33,10 @@ endif
DH_OPTIONS =
+ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
+ DH_OPTIONS = -Nsysvinit-core -Nsysv-rc -Ninitscripts -Nbootlogd
+endif
+
# Use debhelper's dh
%:
dh $@ $(DH_OPTIONS)
@@ -78,6 +82,7 @@ install-arch: build-arch
override_dh_installchangelogs-arch:
dh_installchangelogs -psysvinit-core doc/Changelog
+ifneq ($(shell dpkg-vendor --query vendor),Ubuntu)
dh_installchangelogs -psysvinit-utils doc/Changelog
sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
$(utiltmp)$(doc)/sysvinit-utils/changelog.Debian
@@ -89,11 +94,14 @@ override_dh_installchangelogs-arch:
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)
sed -i -ne '/sysvinit (2.86.ds1-47)/q' -e p \
$(rctmp)$(doc)/sysv-rc/changelog.Debian
+endif
override_dh_fixperms:
dh_fixperms -X/etc/init.d/skeleton -X/etc/init.d/README