Build without systemd support on Ubuntu 12.04 LTS

This commit is contained in:
Ondřej Surý 2016-12-31 14:55:00 +01:00
parent 88692cd9b8
commit 1a05888ac8
2 changed files with 17 additions and 2 deletions

3
debian/control.in vendored
View file

@ -5,7 +5,8 @@ Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Uploaders: Ondřej Surý <ondrej@debian.org>,
Lior Kaplan <kaplan@debian.org>
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

16
debian/rules vendored
View file

@ -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:
: