forked from Mirror/frr
Convert the package to dh compat level 10
There are couple of related changes: * Bump the debhelper dependency to the version at least in Debian Jessie * Drop the dh-autoreconf, autotools-dev dependency, this is automatically included. * Drop the --parallel, --with=systemd and --with=autoreconf, this is automatically enabled in dh compat level 10, add a --without=systemd when requested via build profile.
This commit is contained in:
parent
a32cd91a25
commit
47ebc83368
2
debian/compat
vendored
2
debian/compat
vendored
|
@ -1 +1 @@
|
||||||
9
|
10
|
||||||
|
|
5
debian/control
vendored
5
debian/control
vendored
|
@ -5,12 +5,9 @@ Maintainer: David Lamparter <equinox-debian@diac24.net>
|
||||||
Uploaders: FRRouting-dev <dev@lists.frrouting.org>,
|
Uploaders: FRRouting-dev <dev@lists.frrouting.org>,
|
||||||
Ondřej Surý <ondrej@debian.org>
|
Ondřej Surý <ondrej@debian.org>
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
autotools-dev,
|
|
||||||
bison,
|
bison,
|
||||||
chrpath,
|
chrpath,
|
||||||
debhelper (>= 9),
|
debhelper (>= 9.20150101),
|
||||||
debhelper (>= 9.20160709) <!pkg.frr.nosystemd> | dh-systemd <!pkg.frr.nosystemd>,
|
|
||||||
dh-autoreconf,
|
|
||||||
flex,
|
flex,
|
||||||
gawk,
|
gawk,
|
||||||
install-info,
|
install-info,
|
||||||
|
|
6
debian/rules
vendored
6
debian/rules
vendored
|
@ -22,17 +22,17 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(filter pkg.frr.nosystemd,$(DEB_BUILD_PROFILES)),)
|
ifeq ($(filter pkg.frr.nosystemd,$(DEB_BUILD_PROFILES)),)
|
||||||
DH_WITH_SYSTEMD=systemd,
|
DH_WITHOUT_SYSTEMD=
|
||||||
CONF_SYSTEMD=--enable-systemd=yes
|
CONF_SYSTEMD=--enable-systemd=yes
|
||||||
else
|
else
|
||||||
DH_WITH_SYSTEMD=
|
DH_WITHOUT_SYSTEMD=--without=systemd
|
||||||
CONF_SYSTEMD=--enable-systemd=no
|
CONF_SYSTEMD=--enable-systemd=no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export PYTHON=python3
|
export PYTHON=python3
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with=$(DH_WITH_SYSTEMD)autoreconf --parallel
|
dh $@ $(DH_WITHOUT_SYSTEMD)
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
$(shell dpkg-buildflags --export=sh); \
|
$(shell dpkg-buildflags --export=sh); \
|
||||||
|
|
Loading…
Reference in a new issue