Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions net/frr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=frr
PKG_VERSION:=10.6.1
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/FRRouting/frr/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
Expand Down Expand Up @@ -80,7 +80,8 @@ endef
define Package/frr
$(call Package/frr/Default)
DEPENDS:=+librt +libatomic +libcap +libncurses +libjson-c +libreadline \
+libyang +libprotobuf-c +FRR_OPENSSL:libopenssl +FRR_SNMP:libnetsnmp +more
+libyang +libprotobuf-c +FRR_OPENSSL:libopenssl +FRR_SNMP:libnetsnmp +more \
+USE_GLIBC:libcrypt-compat
TITLE:=The FRRouting (FRR) Software Routing Suite
MENU:=1
endef
Expand Down Expand Up @@ -216,7 +217,7 @@ endef
define Package/frr-zebra/install
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zebra $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libmlag_pb.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmlag_pb.so* $(1)/usr/lib/
endef

define Package/frr-pythontools/install
Expand Down
21 changes: 21 additions & 0 deletions net/frr/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

# shellcheck shell=busybox

case "$1" in
frr)
vtysh --version | grep -F "$2" || exit 1
mgmtd --version | grep -F "$2"
;;
frr-pythontools)
# Python scripts only, no version information provided
exit 0
;;
frr-*)
"/usr/sbin/${1#frr-}" --version | grep -F "$2"
;;
*)
echo "Untested package: $1" >&2
exit 1
;;
esac
Loading