Skip to content

Commit

Permalink
debian: Add option to build pkg with grpc support
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
  • Loading branch information
mwinter-osr committed May 27, 2024
1 parent f771251 commit 196f7be
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
16 changes: 15 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ Build-Depends: bison,
python3-sphinx:native,
texinfo (>= 4.7),
lua5.3 <pkg.frr.lua>,
liblua5.3-dev <pkg.frr.lua>
liblua5.3-dev <pkg.frr.lua>,
libgrpc-dev (>=1.16.1) <pkg.frr.grpc>,
libgrpc++-dev (>=1.16.1) <pkg.frr.grpc>,
protobuf-compiler (>=3.6.1) <pkg.frr.grpc>,
protobuf-compiler-grpc (>=1.16.1) <pkg.frr.grpc>
Standards-Version: 4.5.0.3
Homepage: https://www.frrouting.org/
Vcs-Browser: https://github.com/FRRouting/frr/tree/debian/master
Expand Down Expand Up @@ -136,3 +140,13 @@ Description: FRRouting suite - Python tools
.
Without this package installed, "reload" (as a systemd or init script
invocation) will not work for the FRR daemons.

Package: frr-grpc
Architecture: all
Depends: frr (<< ${source:Upstream-Version}.0-~),
frr (>= ${source:Version}~),
${misc:Depends}
Description: FRRouting suite - GRPC interface
This provides the GRPC interface to the daemons.
Build-Profiles: <pkg.frr.grpc>

2 changes: 2 additions & 0 deletions debian/frr-grpc.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/*/frr/libfrrgrpc_pb.*
usr/lib/*/frr/modules/grpc.so
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ else
CONF_PIM6=--disable-pim6d
endif

ifeq ($(filter pkg.frr.grpc,$(DEB_BUILD_PROFILES)),)
CONF_GRPC=--disable-grpc
else
CONF_GRPC=--enable-grpc
endif

export PYTHON=python3

%:
Expand All @@ -51,6 +57,7 @@ override_dh_auto_configure:
$(CONF_RPKI) \
$(CONF_LUA) \
$(CONF_PIM6) \
$(CONF_GRPC) \
--with-libpam \
--enable-doc \
--enable-doc-html \
Expand Down
2 changes: 2 additions & 0 deletions doc/developer/packaging-debian.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ buster.)
+----------------+-------------------+-----------------------------------------+
| pkg.frr.pim6d | pkg.frr.nopim6d | builds pim6d (default enabled) |
+----------------+-------------------+-----------------------------------------+
| pkg.frr.grpc | pkg.frr.nogrpc | builds with grpc support (default: no) |
+----------------+-------------------+-----------------------------------------+

* the ``-uc -us`` options to disable signing the packages with your GPG key

Expand Down

0 comments on commit 196f7be

Please sign in to comment.