diff options
| author | Martin Winter <mwinter@opensourcerouting.org> | 2018-03-06 07:14:03 -0800 |
|---|---|---|
| committer | Martin Winter <mwinter@opensourcerouting.org> | 2018-03-17 10:15:51 -0700 |
| commit | 100c355e510ee35407db53ff2987165932b51dac (patch) | |
| tree | ec0eb563db38264e36d17812fb0f36f6f827816a /debianpkg/rules | |
| parent | c8cd451cab8e009c826b9cf02be90ecf9f98c598 (diff) | |
debianpkg: Add option to build with RPKI
No RPKI support for Ubuntu 12.04
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'debianpkg/rules')
| -rwxr-xr-x | debianpkg/rules | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/debianpkg/rules b/debianpkg/rules index 82a5148039..c0fca96d79 100755 --- a/debianpkg/rules +++ b/debianpkg/rules @@ -15,9 +15,20 @@ WANT_BGP_VNC ?= 1 WANT_CUMULUS_MODE ?= 0 WANT_MULTIPATH ?= 1 WANT_SNMP ?= 0 +WANT_RPKI ?= 0 +# NOTES: +# +# If you use WANT_RPKI, then there is a new dependency for librtr0 package +# and a build dependency of the librtr-dev package. +# While the librtr0 is added to the depenencies automatically, the build +# dependency can't be changed dynamically and building will fail if the +# librtr-dev isn't installed during package build +# Tested versions of both packages can be found at +# https://ci1.netdef.org/browse/RPKI-RTRLIB/latestSuccessful/artifact +# # If multipath is enabled (WANT_MULTIPATH=1), then set number of multipaths here -# Please be aware that 0 is NOT disabled, but treated as unlimited +# Please be aware that 0 is NOT disabled, but treated as unlimited MULTIPATH ?= 256 @@ -91,6 +102,12 @@ else USE_CUMULUS=--enable-cumulus=no endif +ifeq ($(WANT_RPKI), 1) + USE_RPKI=--enable-rpki +else + USE_RPKI=--disable-rpki +endif + ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) DEBIAN_JOBS := $(subst parallel=,,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) endif @@ -102,6 +119,11 @@ endif %: dh $@ --with=systemd,autoreconf --parallel --dbg-package=frr-dbg --list-missing +override_dh_gencontrol: +ifeq ($(WANT_RPKI), 1) + dh_gencontrol -- -Vdist:Depends="librtr0 (>= 0.5)" +endif + override_dh_auto_configure: # Frr needs /proc to check some BSD vs Linux specific stuff. # Else it fails with an obscure error message pointing out that @@ -135,6 +157,7 @@ override_dh_auto_configure: $(USE_PIM) \ --enable-dependency-tracking \ $(USE_BGP_VNC) \ + $(USE_RPKI) \ $(shell dpkg-buildflags --export=configure); \ fi |
