updated librtr

This commit is contained in:
2022-09-23 15:40:37 +02:00
parent 8d34dea792
commit 60652dee48
42 changed files with 1067 additions and 0 deletions

21
_oldver/librtr06/Makefile Normal file
View File

@@ -0,0 +1,21 @@
# $FreeBSD: head/net-mgmt/rtrlib/Makefile 506661 2019-07-15 13:01:49Z mat $
PORTNAME= librtr
DISTNAME= rtrlib
DISTVERSION= 0.6.3
DISTVERSIONPREFIX= v
CATEGORIES= net sysutils
MAINTAINER= freebsd@bodems.net
COMMENT= Open-source C implementation of the RPKI/Router Protocol client
LIB_DEPENDS= libssh.so:net/libssh
USES= cmake gmake
USE_GITHUB= yes
GH_PROJECT= rtrlib
GH_ACCOUNT= rtrlib
USE_LDCONFIG= yes
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1561621614
SHA256 (rtrlib-rtrlib-v0.6.3_GH0.tar.gz) = 5591c900761dfce126e8cac17e2cc87dd2285dc49ab2ae1ac7491e513044c77a
SIZE (rtrlib-rtrlib-v0.6.3_GH0.tar.gz) = 235094

View File

@@ -0,0 +1,11 @@
--- ./CMakeLists.txt.orig 2018-12-09 14:13:50.000000000 +0200
+++ ./CMakeLists.txt 2019-09-28 10:05:34.694754000 +0200
@@ -97,7 +97,7 @@
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/rtrlib/rtrlib.h.cmake ${CMAKE_SOURCE_DIR}/rtrlib/rtrlib.h)
set(LIBRARY_VERSION ${RTRLIB_VERSION_MAJOR}.${RTRLIB_VERSION_MINOR}.${RTRLIB_VERSION_PATCH})
set(LIBRARY_SOVERSION ${RTRLIB_VERSION_MAJOR})
-set_target_properties(rtrlib PROPERTIES SOVERSION ${LIBRARY_SOVERSION} VERSION ${LIBRARY_VERSION} OUTPUT_NAME rtr)
+set_target_properties(rtrlib PROPERTIES SOVERSION ${LIBRARY_SOVERSION} VERSION ${LIBRARY_SOVERSION} OUTPUT_NAME rtr)
install(TARGETS rtrlib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/)

View File

@@ -0,0 +1,4 @@
The RTRlib implements the client-side of the RPKI-RTR protocol (RFC 6810) and
BGP Prefix Origin Validation (RFC 6811).
WWW: http://rtrlib.realmv6.org/

View File

@@ -0,0 +1,29 @@
bin/rpki-rov
bin/rtrclient
include/rtrlib/lib/alloc_utils.h
include/rtrlib/lib/ip.h
include/rtrlib/lib/ipv4.h
include/rtrlib/lib/ipv6.h
include/rtrlib/pfx/pfx.h
include/rtrlib/pfx/trie/trie-pfx.h
include/rtrlib/rtr_mgr.h
include/rtrlib/rtr/rtr.h
include/rtrlib/rtrlib.h
include/rtrlib/spki/spkitable.h
include/rtrlib/transport/ssh/ssh_transport.h
include/rtrlib/transport/tcp/tcp_transport.h
include/rtrlib/transport/transport.h
lib/librtr.so
lib/librtr.so.0
lib/pkgconfig/rtrlib.pc
man/man1/rpki-rov.1.gz
man/man1/rtrclient.1.gz
@dir include/rtrlib/lib
@dir include/rtrlib/pfx/trie
@dir include/rtrlib/pfx
@dir include/rtrlib/rtr
@dir include/rtrlib/spki
@dir include/rtrlib/transport/ssh
@dir include/rtrlib/transport/tcp
@dir include/rtrlib/transport
@dir include/rtrlib

23
_oldver/libyang0/Makefile Normal file
View File

@@ -0,0 +1,23 @@
# $FreeBSD: head/net/libyang/Makefile 507372 2019-07-26 20:46:53Z gerald $
PORTNAME= libyang
PORTVERSION= 0.16 #1.0
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= -r3
CATEGORIES= net
MAINTAINER= olivier@FreeBSD.org
COMMENT= YANG data modeling language library
LIB_DEPENDS= libpcre.so:text/libpcre
USES= cmake gmake compiler:c++11-lang pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= CESNET
CMAKE_ARGS+= -DENABLE_LYD_PRIV=ON
#CMAKE_ARGS+= -DENABLE_STATIC=ON
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1569607461
SHA256 (CESNET-libyang-v0.16-r3_GH0.tar.gz) = 4745460dedc4ba17d8bcfc39ad9ba0d1b91bbe82b55b9417a090390909ba8ca5
SIZE (CESNET-libyang-v0.16-r3_GH0.tar.gz) = 2999818

View File

@@ -0,0 +1,11 @@
--- src/parser_lyb.c.orig 2019-03-14 23:35:14 UTC
+++ src/parser_lyb.c
@@ -23,6 +23,8 @@
# define le16toh(x) OSSwapLittleToHostInt16(x)
# define le32toh(x) OSSwapLittleToHostInt32(x)
# define le64toh(x) OSSwapLittleToHostInt64(x)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+# include <sys/endian.h>
#else
# include <endian.h>
#endif

View File

@@ -0,0 +1,11 @@
--- src/printer_lyb.c.orig 2019-03-14 23:35:50 UTC
+++ src/printer_lyb.c
@@ -21,6 +21,8 @@
#ifdef __APPLE__
# include <libkern/OSByteOrder.h>
# define htole64(x) OSSwapHostToLittleInt64(x)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+# include <sys/endian.h>
#else
# include <endian.h>
#endif

View File

@@ -0,0 +1,20 @@
--- ./CMakeLists.txt.orig 2019-01-16 10:18:18.000000000 +0200
+++ ./CMakeLists.txt 2019-09-27 20:07:41.921096000 +0200
@@ -14,7 +14,7 @@
set(LIBYANG_MINOR_VERSION 16)
set(LIBYANG_MICRO_VERSION 105)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
-set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION})
+set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_VERSION})
# set default build type if not specified by user
if(NOT CMAKE_BUILD_TYPE)
@@ -261,7 +261,7 @@
set_target_properties(yangobj PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
endif(ENABLE_STATIC)
-set_target_properties(yang PROPERTIES VERSION ${LIBYANG_VERSION} SOVERSION ${LIBYANG_SOVERSION})
+set_target_properties(yang PROPERTIES VERSION ${LIBYANG_SOVERSION} SOVERSION ${LIBYANG_SOVERSION})
# link math
target_link_libraries(yang m)

View File

@@ -0,0 +1,4 @@
libyang is a YANG data modelling language parser and toolkit written
(and providing API) in C.
WWW: https://github.com/CESNET/libyang

View File

@@ -0,0 +1,22 @@
bin/yanglint
bin/yangre
include/libyang/dict.h
include/libyang/extensions.h
include/libyang/libyang.h
include/libyang/tree_data.h
include/libyang/tree_schema.h
include/libyang/user_types.h
include/libyang/xml.h
lib/libyang.so
lib/libyang.so.0
lib/libyang/extensions/metadata.so
lib/libyang/extensions/nacm.so
lib/libyang/extensions/yangdata.so
lib/libyang/user_types/user_date_and_time.so
lib/pkgconfig/libyang.pc
man/man1/yanglint.1.gz
man/man1/yangre.1.gz
@dir include/libyang
@dir lib/libyang/extensions
@dir lib/libyang/user_types
@dir lib/libyang

22
_oldver/libyang1/Makefile Normal file
View File

@@ -0,0 +1,22 @@
# $FreeBSD: head/net/libyang/Makefile 507372 2019-07-26 20:46:53Z gerald $
PORTNAME= libyang
PORTVERSION= 1.0.240
DISTVERSIONPREFIX= v
#DISTVERSIONSUFFIX= -r4
CATEGORIES= net
MAINTAINER= olivier@FreeBSD.org
COMMENT= YANG data modeling language library
LIB_DEPENDS= libpcre.so:text/libpcre
USES= cmake gmake compiler:c++11-lang pkgconfig
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= CESNET
CMAKE_ARGS+= -DENABLE_LYD_PRIV=ON
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1645401193
SHA256 (CESNET-libyang-v1.0.240_GH0.tar.gz) = 8576cad398b451b1c622b0652a2030fcf83ee1d9a39e6cd93d17b0a5a43118d6
SIZE (CESNET-libyang-v1.0.240_GH0.tar.gz) = 1667619

View File

@@ -0,0 +1,20 @@
--- ./CMakeLists.txt.orig 2019-09-21 19:40:09.108196000 +0200
+++ ./CMakeLists.txt 2019-09-21 19:41:41.130794000 +0200
@@ -22,7 +22,7 @@
set(LIBYANG_MAJOR_VERSION 1)
set(LIBYANG_MINOR_VERSION 0)
set(LIBYANG_MICRO_VERSION 35)
-set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
+set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION})
# Version of the library
# Major version is changed with every backward non-compatible API/ABI change in libyang, minor version changes
@@ -30,7 +30,7 @@
set(LIBYANG_MAJOR_SOVERSION 1)
set(LIBYANG_MINOR_SOVERSION 1)
set(LIBYANG_MICRO_SOVERSION 30)
-set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
+set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
# set default build type if not specified by user

View File

@@ -0,0 +1,24 @@
--- ./CMakeLists.txt.orig 2021-05-31 12:11:46.000000000 +0200
+++ ./CMakeLists.txt 2022-02-21 01:56:33.121543000 +0200
@@ -33,9 +33,9 @@
# Major version is changed with every backward non-compatible API/ABI change in libyang, minor version changes
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBYANG_MAJOR_SOVERSION 1)
-set(LIBYANG_MINOR_SOVERSION 10)
-set(LIBYANG_MICRO_SOVERSION 32)
-set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
+set(LIBYANG_MINOR_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
set(libsrc
@@ -125,7 +125,7 @@
option(ENABLE_LATEST_REVISIONS "Enable reusing of latest revisions of schemas" ON)
option(ENABLE_LYD_PRIV "Add a private pointer also to struct lyd_node (data node structure), just like in struct lys_node, for arbitrary user data" OFF)
option(ENABLE_FUZZ_TARGETS "Build target programs suitable for fuzzing with AFL" OFF)
-set(PLUGINS_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libyang${LIBYANG_MAJOR_SOVERSION}" CACHE STRING "Directory with libyang plugins (extensions and user types), should include major SO version")
+set(PLUGINS_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libyang" CACHE STRING "Directory with libyang plugins (extensions and user types), should include major SO version")
if(ENABLE_CACHE)
set(LY_ENABLED_CACHE 1)

View File

@@ -0,0 +1,4 @@
libyang is a YANG data modelling language parser and toolkit written
(and providing API) in C.
WWW: https://github.com/CESNET/libyang

View File

@@ -0,0 +1,23 @@
bin/yanglint
bin/yangre
include/libyang/dict.h
include/libyang/extensions.h
include/libyang/libyang.h
include/libyang/tree_data.h
include/libyang/tree_schema.h
include/libyang/user_types.h
include/libyang/xml.h
lib/libyang.so
lib/libyang.so.1
lib/libyang/extensions/metadata.so
lib/libyang/extensions/nacm.so
lib/libyang/extensions/yangdata.so
lib/libyang/user_types/user_inet_types.so
lib/libyang/user_types/user_yang_types.so
lib/pkgconfig/libyang.pc
man/man1/yanglint.1.gz
man/man1/yangre.1.gz
@dir include/libyang
@dir lib/libyang/extensions
@dir lib/libyang/user_types
@dir lib/libyang

158
net/frr8/Makefile Normal file
View File

@@ -0,0 +1,158 @@
#
# $Id$
#
PORTNAME= frr
CATEGORIES= net
PORTVERSION= 8.3.1
DISTVERSIONPREFIX= frr-
USE_GITHUB= yes
GH_ACCOUNT= FRRouting
#PKGNAMESUFFIX= ${PORTVERSION:R:R}
MAINTAINER= onborodin@gmail.com
COMMENT= Free RIPv1, RIPv2, OSPFv2, BGP4 route software
BUILD_DEPENDS+= gawk:text/gawk
LIB_DEPENDS+= libyang.so:devel/libyang
LIB_DEPENDS+= libjson-c.so:devel/libjson-c
LIB_DEPENDS+= libpcre.so:text/libpcre
LIB_DEPENDS+= libcares.so:net/libcares
.include <bsd.port.pre.mk>
VAR_PREFIX= /var
CONF_SUBDIR= etc/${PORTNAME}
PLIST_SUB= CONF_SUBDIR=${CONF_SUBDIR}
CONF_DIR= ${PREFIX}/etc/${PORTNAME}
RUN_DIR= ${VAR_PREFIX}/run/${PORTNAME}
LOG_DIR= ${VAR_PREFIX}/log/${PORTNAME}
EXAMPLES_SUBDIR= share/examples/${PORTNAME}
EXAMPLES_DIR= ${PREFIX}/${EXAMPLES_SUBDIR}
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USES+= autoreconf libtool gmake bison tar:xz readline compiler:c++11-lang
USES+= perl5 makeinfo python:3.6+,build
USE_PERL5= build
INSTALL_TARGET= install-strip
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -fPIC -I${LOCALBASE}/include
CPPFLAGS+= -fPIC -I${LOCALBASE}/include
CONFIGURE_ARGS+= --disable-werror
CONFIGURE_ARGS+= --disable-ldpd
#CONFIGURE_ARGS+= --disable-ospfapi
CONFIGURE_ARGS+= --disable-ospfclient
CONFIGURE_ARGS+= --disable-pimd
CONFIGURE_ARGS+= --disable-snmp
CONFIGURE_ARGS+= --disable-watchfrr
CONFIGURE_ARGS+= --disable-zeromq
CONFIGURE_ARGS+= --disable-doc
CONFIGURE_ARGS+= --disable-vrrpd
CONFIGURE_ARGS+= --enable-babeld
CONFIGURE_ARGS+= --enable-bfdd
CONFIGURE_ARGS+= --enable-eigrpd
CONFIGURE_ARGS+= --enable-fabricd
CONFIGURE_ARGS+= --enable-fpm
CONFIGURE_ARGS+= --enable-isisd
CONFIGURE_ARGS+= --enable-pbrd
CONFIGURE_ARGS+= --enable-sharpd
CONFIGURE_ARGS+= --enable-vtysh
#CONFIGURE_ARGS+= --enable-config-rollbacks
#LIB_DEPENDS+= libsqlite3.so:data/sqlite3
#CONFIGURE_ARGS+= --disable-bgp-vnc
#CONFIGURE_ARGS+= --enable-pcreposix
#CONFIGURE_ARGS+= --disable-bgp-bmp
CONFIGURE_ARGS+= --enable-rpki
LIB_DEPENDS+= librtr.so:net/librtr
LIB_DEPENDS+= libssh.so:net/libssh
CONFIGURE_ARGS+= --enable-static-bin
CONFIGURE_ARGS+= --disable-dependency-tracking
CONFIGURE_ARGS+= --without-libpam
CONFIGURE_ARGS+= --enable-group=${FRR_GROUP}
CONFIGURE_ARGS+= --enable-user=${FRR_OWNER}
CONFIGURE_ARGS+= --includedir=${PREFIX}/include
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
CONFIGURE_ARGS+= --localstatedir=${RUN_DIR}
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
CONFIGURE_ARGS+= --sysconfdir=${CONF_DIR}
CONFIGURE_ARGS+= --enable-exampledir=${EXAMPLESDIR}/
CONFIGURE_ARGS+= --with-vtysh-pager="cat"
FRR_OWNER= ${PORTNAME}
FRR_OWNER_ID= 795
FRR_GROUP= ${PORTNAME}
FRR_GROUP_ID= 795
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PKGINSTALL= ${WRKDIR}/pkg-install
USE_RC_SUBR+= babeld
USE_RC_SUBR+= bfdd
USE_RC_SUBR+= bgpd
USE_RC_SUBR+= eigrpd
USE_RC_SUBR+= fabricd
USE_RC_SUBR+= isisd
USE_RC_SUBR+= ospf6d
USE_RC_SUBR+= ospfd
USE_RC_SUBR+= pbrd
USE_RC_SUBR+= ripd
USE_RC_SUBR+= ripngd
USE_RC_SUBR+= sharpd
USE_RC_SUBR+= staticd
USE_RC_SUBR+= zebra
SUB_FILES+= pkg-deinstall pkg-install
SUB_LIST+= FRR_OWNER=${FRR_OWNER}
SUB_LIST+= FRR_GROUP=${FRR_GROUP}
SUB_LIST+= FRR_OWNER_ID=${FRR_OWNER_ID}
SUB_LIST+= FRR_GROUP_ID=${FRR_GROUP_ID}
SUB_LIST+= RUN_DIR=${RUN_DIR}
SUB_LIST+= LOG_DIR=${LOG_DIR}
SUB_LIST+= CONF_DIR=${CONF_DIR}
SUB_LIST+= RC_SUBR=/etc/rc.subr
#ACLOCAL= ${LOCALBASE}/bin/aclocal
#AUTOMAKE= ${LOCALBASE}/bin/automake
#AUTOCONF= ${LOCALBASE}/bin/autoconf
#LIBTOOLIZE= ${LOCALBASE}/bin/libtoolize
#USES+= libtool autoreconf
post-patch:
${REINPLACE_CMD} -e 's,WERROR="-Werror",WERROR="",' ${WRKSRC}/configure.ac
${REINPLACE_CMD} -e 's,ax_pthread_extra_flags="-Werror",ax_pthread_extra_flags="",' ${WRKSRC}/m4/ax_pthread.m4
#pre-configure:
# cd ${WRKSRC} && ${LIBTOOLIZE} --copy
# cd ${WRKSRC} && ${ACLOCAL} -I .
# cd ${WRKSRC} && ${AUTOMAKE} --add-missing
# cd ${WRKSRC} && ${AUTOCONF}
#do-build:
# cd ${WRKSRC} && ${GMAKE} -j${MAKE_JOBS_NUMBER}
#do-install:
# ${MKDIR} -p ${STAGEDIR}
# cd ${WRKSRC} && ${GMAKE} ${INSTALL_TARGET} DESTDIR=${STAGEDIR}
.include <bsd.port.mk>
#EOF

3
net/frr8/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1663937374
SHA256 (FRRouting-frr-frr-8.3.1_GH0.tar.gz) = 9b0430d01f8da2d780ac5e41de2cf4e53abff0ed06a0cc75d745f4b1f29e5b9e
SIZE (FRRouting-frr-frr-8.3.1_GH0.tar.gz) = 9676895

23
net/frr8/files/babeld.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: babeld
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="babeld"
rcvar="babeld_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${babeld_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/bfdd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: bfdd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="bfdd"
rcvar="bfdd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${bfdd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/bgpd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: bgpd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="bgpd"
rcvar="bgpd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${bgpd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/eigrpd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: eigrpd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="eigrpd"
rcvar="eigrpd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${eigrpd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/fabricd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: fabricd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="fabricd"
rcvar="fabricd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${fabricd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/isisd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: isisd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="isisd"
rcvar="isisd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${isisd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/ospf6d.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: ospf6d
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="ospf6d"
rcvar="ospf6d_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${ospf6d_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/ospfd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: ospfd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="ospfd"
rcvar="ospfd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${ospfd_enable="NO"}
run_rc_command "$1"
#EOF

View File

@@ -0,0 +1,11 @@
--- Makefile.am.orig 2021-11-08 12:44:24.000000000 +0900
+++ Makefile.am 2021-12-23 09:23:13.400659000 +0900
@@ -168,7 +168,7 @@
include qpb/subdir.am
include fpm/subdir.am
include grpc/subdir.am
-include tools/subdir.am
+# include tools/subdir.am
include bgpd/subdir.am
include bgpd/rfp-example/librfp/subdir.am

View File

@@ -0,0 +1,13 @@
--- ./zebra/zebra_mpls.c~ 2022-08-30 19:53:45.000000000 +0200
+++ ./zebra/zebra_mpls.c 2022-09-23 15:34:45.989524000 +0200
@@ -4067,8 +4067,8 @@
mpls_pw_reach_strict = false;
if (mpls_kernel_init() < 0) {
- flog_warn(EC_ZEBRA_MPLS_SUPPORT_DISABLED,
- "Disabling MPLS support (no kernel support)");
+ //flog_warn(EC_ZEBRA_MPLS_SUPPORT_DISABLED,
+ // "Disabling MPLS support (no kernel support)");
return;
}

23
net/frr8/files/pbrd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: pbrd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="pbrd"
rcvar="pbrd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${pbrd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/pimd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: pimd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="pimd"
rcvar="pimd_enable"
command="%%PREFIX%%/sbin/${name}"
#pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${pimd_enable="NO"}
run_rc_command "$1"
#EOF

View File

@@ -0,0 +1,16 @@
#!/bin/sh
set -x
RUN_DIR="%%RUN_DIR%%"
LOG_DIR="%%LOG_DIR%%"
case $2 in
DEINSTALL)
;;
POST-DEINSTALL)
for dir in ${LOG_DIR} ${RUN_DIR}; do
rmdir -p ${dir}
done
;;
esac
exit 0
#EOF

View File

@@ -0,0 +1,40 @@
#!/bin/sh
set -x
FRR_OWNER="%%FRR_OWNER%%"
FRR_GROUP="%%FRR_GROUP%%"
FRR_OWNER_ID="%%FRR_OWNER_ID%%"
FRR_GROUP_ID="%%FRR_GROUP_ID%%"
RUN_DIR="%%RUN_DIR%%"
LOG_DIR="%%LOG_DIR%%"
CONF_DIR="%%CONF_DIR%%"
PKG_PREFIX="/notexist"
case $2 in
PRE-INSTALL)
pw group add ${FRR_GROUP} -g ${FRR_GROUP_ID}
pw user add ${FRR_OWNER} -g ${FRR_GROUP} \
-d ${PKG_PREFIX} -s /usr/sbin/nologin -u ${FRR_OWNER_ID} \
-c "quagga"
pw group mod ${FRR_GROUP} -M ${FRR_OWNER}
pw group show ${FRR_GROUP}
pw user show ${FRR_OWNER}
mkdir -p ${RUN_DIR}
chown ${FRR_OWNER}:${FRR_GROUP} ${RUN_DIR}
chmod 0750 ${RUN_DIR}
mkdir -p ${LOG_DIR}
chown ${FRR_OWNER}:${FRR_GROUP} ${LOG_DIR}
chmod 0750 ${LOG_DIR}
mkdir -p ${CONF_DIR}
chown ${FRR_OWNER}:${FRR_GROUP} ${CONF_DIR}
chmod 0750 ${CONF_DIR}
;;
POST-INSTALL)
;;
esac
#EOF

23
net/frr8/files/ripd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: ripd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="ripd"
rcvar="ripd_enable"
command="%%PREFIX%%/sbin/${name}"
#pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${ripd_enable="NO"}
run_rc_command "$1"
#EOF

22
net/frr8/files/ripngd.in Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
#
# PROVIDE: ripngd
# REQUIRE: zebra
#
. /etc/rc.subr
name="ripngd"
rcvar="ripngd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${name}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${ripngd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/sharpd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: sharpd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="sharpd"
rcvar="sharpd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${sharpd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/staticd.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: staticd
# REQUIRE: zebra
# KEYWORD: shutdown
#
. /etc/rc.subr
name="staticd"
rcvar="staticd_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${staticd_enable="NO"}
run_rc_command "$1"
#EOF

23
net/frr8/files/zebra.in Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: zebra
# REQUIRE: DAEMON netif routing
# KEYWORD: shutdown
#
. /etc/rc.subr
name="zebra"
rcvar="zebra_enable"
command="%%PREFIX%%/sbin/${name}"
pidfile="%%RUN_DIR%%/${name}.pid"
procname="${command}"
required_dirs="%%RUN_DIR%% %%LOG_DIR%%"
required_files="%%CONF_DIR%%/${name}.conf"
command_args=" -d"
load_rc_config $name
: ${zebra_enable="NO"}
run_rc_command "$1"
#EOF

7
net/frr8/pkg-descr Normal file
View File

@@ -0,0 +1,7 @@
FRR is a routing software suite, providing implementations of
OSPFv2, OSPFv3, RIP v1 and v2, RIPv3, BGPv4 and experemental ISIS
for Unix platforms, particularly FreeBSD and Linux and also NetBSD,
to mention a few.
FRR is a fork of Quagga.
WWW: https://frrouting.org/

13
net/frr8/pkg-message Normal file
View File

@@ -0,0 +1,13 @@
[
{ type: install
message: <<EOM
FRR's OSPF daemons tries to allocate big socket buffer, so generate warning
messages like:
"setsockopt_so_sendbuf: fd 6: SO_SNDBUF set to 1048576 (requested 8388608)"
To prevent such message kern.ipc.maxsockbuf can be increased:
sysctl kern.ipc.maxsockbuf=16777216
Error message "ifam_read() doesn't read all socket data" is under investigation
EOM
}
]

204
net/frr8/pkg-plist Normal file
View File

@@ -0,0 +1,204 @@
bin/vtysh
include/frr/agg_table.h
include/frr/assert.h
include/frr/atomlist.h
include/frr/base64.h
include/frr/bfd.h
include/frr/bfdd/bfddp_packet.h
include/frr/bitfield.h
include/frr/buffer.h
include/frr/checksum.h
include/frr/command_graph.h
include/frr/command_match.h
include/frr/command.h
include/frr/compiler.h
include/frr/cspf.h
include/frr/csv.h
include/frr/db.h
include/frr/debug.h
include/frr/defaults.h
include/frr/distribute.h
include/frr/eigrpd/eigrp_dump.h
include/frr/eigrpd/eigrp_topology.h
include/frr/eigrpd/eigrpd.h
include/frr/ferr.h
include/frr/filter.h
include/frr/freebsd-queue.h
include/frr/frr_pthread.h
include/frr/frratomic.h
include/frr/frrcu.h
include/frr/frrlua.h
include/frr/frrscript.h
include/frr/frrstr.h
include/frr/getopt.h
include/frr/graph.h
include/frr/hash.h
include/frr/hook.h
include/frr/iana_afi.h
include/frr/id_alloc.h
include/frr/if_rmap.h
include/frr/if.h
include/frr/imsg.h
include/frr/ipaddr.h
include/frr/jhash.h
include/frr/json.h
include/frr/keychain.h
include/frr/ldp_sync.h
include/frr/lib_errors.h
include/frr/lib_vty.h
include/frr/libfrr_trace.h
include/frr/libfrr.h
include/frr/libospf.h
include/frr/link_state.h
include/frr/linklist.h
include/frr/log_vty.h
include/frr/log.h
include/frr/md5.h
include/frr/memory.h
include/frr/mlag.h
include/frr/module.h
include/frr/monotime.h
include/frr/mpls.h
include/frr/network.h
include/frr/nexthop_group_private.h
include/frr/nexthop_group.h
include/frr/nexthop.h
include/frr/northbound_cli.h
include/frr/northbound_db.h
include/frr/northbound.h
include/frr/ns.h
include/frr/openbsd-queue.h
include/frr/openbsd-tree.h
include/frr/ospfd/ospf_api.h
include/frr/ospfd/ospf_asbr.h
include/frr/ospfd/ospf_dump_api.h
include/frr/ospfd/ospf_dump.h
include/frr/ospfd/ospf_ism.h
include/frr/ospfd/ospf_lsa.h
include/frr/ospfd/ospf_lsdb.h
include/frr/ospfd/ospf_nsm.h
include/frr/ospfd/ospf_opaque.h
include/frr/ospfd/ospfd.h
include/frr/pbr.h
include/frr/plist.h
include/frr/prefix.h
include/frr/printfrr.h
include/frr/privs.h
include/frr/ptm_lib.h
include/frr/pullwr.h
include/frr/pw.h
include/frr/qobj.h
include/frr/queue.h
include/frr/resolver.h
include/frr/ringbuf.h
include/frr/route_opaque.h
include/frr/route_types.h
include/frr/routemap.h
include/frr/routing_nb.h
include/frr/sbuf.h
include/frr/seqlock.h
include/frr/sha256.h
include/frr/sigevent.h
include/frr/skiplist.h
include/frr/smux.h
include/frr/sockopt.h
include/frr/sockunion.h
include/frr/spf_backoff.h
include/frr/srcdest_table.h
include/frr/srte.h
include/frr/srv6.h
include/frr/stream.h
include/frr/systemd.h
include/frr/table.h
include/frr/termtable.h
include/frr/thread.h
include/frr/trace.h
include/frr/typerb.h
include/frr/typesafe.h
include/frr/vector.h
include/frr/version.h
include/frr/vlan.h
include/frr/vrf_int.h
include/frr/vrf.h
include/frr/vty.h
include/frr/vxlan.h
include/frr/wheel.h
include/frr/workqueue.h
include/frr/xref.h
include/frr/yang_translator.h
include/frr/yang_wrappers.h
include/frr/yang.h
include/frr/zclient.h
include/frr/zebra.h
include/frr/zlog_5424.h
include/frr/zlog_live.h
include/frr/zlog_targets.h
include/frr/zlog.h
lib/frr/modules/bgpd_bmp.so
lib/frr/modules/bgpd_rpki.so
lib/frr/modules/pathd_pcep.so
lib/frr/modules/zebra_fpm.so
lib/libfrr.a
lib/libfrr.so
lib/libfrr.so.0
lib/libfrrcares.a
lib/libfrrcares.so
lib/libfrrcares.so.0
sbin/babeld
sbin/bfdd
sbin/bgpd
sbin/eigrpd
sbin/fabricd
sbin/isisd
sbin/ospf6d
sbin/ospfd
sbin/pathd
sbin/pbrd
sbin/ripd
sbin/ripngd
sbin/sharpd
sbin/staticd
sbin/zebra
share/yang/frr-bfdd.yang
share/yang/frr-bgp-bmp.yang
share/yang/frr-bgp-common-multiprotocol.yang
share/yang/frr-bgp-common-structure.yang
share/yang/frr-bgp-common.yang
share/yang/frr-bgp-filter.yang
share/yang/frr-bgp-neighbor.yang
share/yang/frr-bgp-peer-group.yang
share/yang/frr-bgp-route-map.yang
share/yang/frr-bgp-rpki.yang
share/yang/frr-bgp-types.yang
share/yang/frr-bgp.yang
share/yang/frr-deviations-bgp-datacenter.yang
share/yang/frr-eigrpd.yang
share/yang/frr-filter.yang
share/yang/frr-interface.yang
share/yang/frr-isisd.yang
share/yang/frr-module-translator.yang
share/yang/frr-nexthop.yang
share/yang/frr-ospf-route-map.yang
share/yang/frr-ospf6-route-map.yang
share/yang/frr-ospfd.yang
share/yang/frr-pathd.yang
share/yang/frr-ripd.yang
share/yang/frr-ripngd.yang
share/yang/frr-route-map.yang
share/yang/frr-route-types.yang
share/yang/frr-routing.yang
share/yang/frr-staticd.yang
share/yang/frr-test-module.yang
share/yang/frr-vrf.yang
share/yang/frr-zebra-route-map.yang
share/yang/frr-zebra.yang
share/yang/ietf-bgp-types.yang
share/yang/ietf-interfaces.yang
share/yang/ietf-routing-types.yang
@dir include/frr/bfdd
@dir include/frr/eigrpd
@dir include/frr/ospfd
@dir include/frr
@dir lib/frr/modules
@dir lib/frr
@dir share/yang