summaryrefslogtreecommitdiff
path: root/debianpkg/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debianpkg/rules')
-rwxr-xr-xdebianpkg/rules57
1 files changed, 13 insertions, 44 deletions
diff --git a/debianpkg/rules b/debianpkg/rules
index 811d45bc0b..894cd7f198 100755
--- a/debianpkg/rules
+++ b/debianpkg/rules
@@ -7,15 +7,15 @@
# The following are the defaults. They can be overridden by setting a
# env variable to a different value
-WANT_LDP ?= 1
-WANT_PIM ?= 1
+# -Werror - don't enable this unless you're doing a dev package build
+WANT_WERROR ?= 0
+
WANT_OSPFAPI ?= 1
WANT_BGP_VNC ?= 1
WANT_CUMULUS_MODE ?= 0
WANT_MULTIPATH ?= 1
WANT_SNMP ?= 0
WANT_RPKI ?= 0
-WANT_BFD ?= 1
# NOTES:
#
@@ -39,6 +39,7 @@ WANT_FRR_USER ?= frr
WANT_FRR_VTY_GROUP ?= frrvty
# Don't build PDF docs by default
+# add build deps: texlive-latex-base, texlive-generic-recommended
GENERATE_PDF ?= 0
#
@@ -56,18 +57,6 @@ else
$(warning "DEBIAN: SNMP disabled, see README.Debian")
endif
-ifeq ($(WANT_LDP), 1)
- USE_LDP=--enable-ldpd
-else
- USE_LDP=--disable-ldpd
-endif
-
-ifeq ($(WANT_PIM), 1)
- USE_PIM=--enable-pimd
-else
- USE_PIM=--disable-pimd
-endif
-
ifeq ($(WANT_OSPFAPI), 1)
USE_OSPFAPI=--enable-ospfapi=yes
else
@@ -102,10 +91,10 @@ else
USE_RPKI=--disable-rpki
endif
-ifeq ($(WANT_BFD), 1)
- USE_BFD=--enable-bfdd
+ifeq ($(WANT_WERROR), 1)
+ USE_WERROR=--enable-werror
else
- USE_BFD=--disable-bfdd
+ USE_WERROR=--disable-werror
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
@@ -127,14 +116,6 @@ else
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
- # IPCTL_FORWARDING is an undefined symbol which is not very helpful.
- @if ! [ -d /proc/1 ]; then \
- echo "./configure needs a mounted /proc"; \
- exit 1; \
- fi
-
if ! [ -e config.status ]; then \
dh_auto_configure -- \
--enable-exampledir=/usr/share/doc/frr/examples/ \
@@ -144,32 +125,23 @@ override_dh_auto_configure:
$(USE_SNMP) \
$(USE_OSPFAPI) \
$(USE_MULTIPATH) \
- $(USE_LDP) \
--enable-fpm \
$(USE_FRR_USER) $(USE_FRR_GROUP) \
$(USE_FRR_VTY_GROUP) \
--enable-configfile-mask=0640 \
--enable-logfile-mask=0640 \
- --enable-werror \
+ $(USE_WERROR) \
--with-libpam \
--enable-systemd=yes \
- --enable-poll=yes \
$(USE_CUMULUS) \
- $(USE_PIM) \
- --enable-dependency-tracking \
+ --disable-dependency-tracking \
$(USE_BGP_VNC) \
$(USE_RPKI) \
- $(USE_BFD) \
$(shell dpkg-buildflags --export=configure); \
fi
override_dh_auto_build:
- # doc/ is a bit crazy
-ifeq ($(GENERATE_PDF), 1)
- dh_auto_build -- -C doc pdf
-endif
- rm -vf doc/user/_build/texinfo/frr.info
- dh_auto_build -- -C doc info
+ dh_auto_build
override_dh_auto_test:
@@ -186,12 +158,9 @@ override_dh_auto_install:
mkdir -p debian/tmp/etc/frr/
perl -pi -e 's#^!log file #!log file /var/log/frr/#' debian/tmp/usr/share/doc/frr/examples/*sample*
- # leftover from previously shipping SMUX client OID MIB
- mkdir -p debian/tmp/usr/share/snmp/mibs/
-
- # cleaning .la files
- sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/*.la
- sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/frr/modules/*.la
+ # we don't need .la files
+ rm debian/tmp/usr/lib/*.la
+ rm debian/tmp/usr/lib/frr/modules/*.la
override_dh_systemd_start:
dh_systemd_start frr.service