From: Vincent Bernat Date: Tue, 16 Apr 2013 07:08:14 +0000 (+0200) Subject: debian: on Debian, don't ship upstart script X-Git-Tag: 0.7.2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5e9611c1cc903410f42a8272898b31404559c6f;p=thirdparty%2Flldpd.git debian: on Debian, don't ship upstart script --- diff --git a/debian/rules b/debian/rules index 941649e3..acf532cd 100755 --- a/debian/rules +++ b/debian/rules @@ -5,3 +5,16 @@ include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml + +ifeq ($(shell ( [ ! -x /usr/bin/dpkg-vendor ] || dpkg-vendor --is Debian ) && echo yes),yes) +# Don't install upstart script on Debian. Older versions of +# dh_installinit don't ship the SysV script if an upstart +# script is provided and force a dependency on upstart. +# See: http://bugs.debian.org/577040 +pre-build:: + [ ! -f debian/lldpd.upstart ] || \ + mv debian/lldpd.upstart debian/lldpd.upstart.disabled +clean:: + [ ! -f debian/lldpd.upstart.disabled ] || \ + mv debian/lldpd.upstart.disabled debian/lldpd.upstart +endif