diff --git a/debian/control.in b/debian/control.in index 0a85aa2..4062f55 100644 --- a/debian/control.in +++ b/debian/control.in @@ -5,7 +5,8 @@ Maintainer: Debian PHP Maintainers Uploaders: Ondřej Surý , Lior Kaplan Standards-Version: 3.9.8 -Build-Depends: debhelper (>= 9) +Build-Depends: debhelper (>= 9), + dh-systemd (>= 1.3) [linux-any] | base-files (<< 7.2ubuntu5~) [linux-any] Vcs-Browser: https://anonscm.debian.org/cgit/pkg-php/php-defaults.git Vcs-Git: git://anonscm.debian.org/pkg-php/php-defaults.git diff --git a/debian/rules b/debian/rules index 9131d68..c2fdeb3 100755 --- a/debian/rules +++ b/debian/rules @@ -24,8 +24,22 @@ SED=sed export DH_OPTIONS +DH_SYSTEMD := --with systemd + +# Disable systemd on non-Linux buildds +ifneq (linux,$(DEB_HOST_ARCH_OS)) + DH_SYSTEMD := +endif + +# Disable systemd on Ubuntu 12.04 LTS +ifeq (Ubuntu,$(DEB_VENDOR)) + ifeq (precise,$(DEB_DISTRIBUTION)) + DH_SYSTEMD := + endif +endif + %: - dh $@ --with systemd + dh $@ $(DH_SYSTEMD) override_dh_auto_configure: :