diff --git a/_oldver/librtr06/Makefile b/_oldver/librtr06/Makefile new file mode 100644 index 00000000..8174f423 --- /dev/null +++ b/_oldver/librtr06/Makefile @@ -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 diff --git a/_oldver/librtr06/distinfo b/_oldver/librtr06/distinfo new file mode 100644 index 00000000..77d72e3c --- /dev/null +++ b/_oldver/librtr06/distinfo @@ -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 diff --git a/_oldver/librtr06/files/patch-x-CMakeLists.txt b/_oldver/librtr06/files/patch-x-CMakeLists.txt new file mode 100644 index 00000000..58113093 --- /dev/null +++ b/_oldver/librtr06/files/patch-x-CMakeLists.txt @@ -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}/) + + diff --git a/_oldver/librtr06/pkg-descr b/_oldver/librtr06/pkg-descr new file mode 100644 index 00000000..ae79a734 --- /dev/null +++ b/_oldver/librtr06/pkg-descr @@ -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/ diff --git a/_oldver/librtr06/pkg-plist b/_oldver/librtr06/pkg-plist new file mode 100644 index 00000000..7c7d12d4 --- /dev/null +++ b/_oldver/librtr06/pkg-plist @@ -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 diff --git a/_oldver/libyang0/Makefile b/_oldver/libyang0/Makefile new file mode 100644 index 00000000..3fe20c22 --- /dev/null +++ b/_oldver/libyang0/Makefile @@ -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 diff --git a/_oldver/libyang0/distinfo b/_oldver/libyang0/distinfo new file mode 100644 index 00000000..7d5b8061 --- /dev/null +++ b/_oldver/libyang0/distinfo @@ -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 diff --git a/_oldver/libyang0/files/patch-src_parser__lyb.c b/_oldver/libyang0/files/patch-src_parser__lyb.c new file mode 100644 index 00000000..83c5655d --- /dev/null +++ b/_oldver/libyang0/files/patch-src_parser__lyb.c @@ -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 + #else + # include + #endif diff --git a/_oldver/libyang0/files/patch-src_printer__lyb.c b/_oldver/libyang0/files/patch-src_printer__lyb.c new file mode 100644 index 00000000..47fa1841 --- /dev/null +++ b/_oldver/libyang0/files/patch-src_printer__lyb.c @@ -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 + # define htole64(x) OSSwapHostToLittleInt64(x) ++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) ++# include + #else + # include + #endif diff --git a/_oldver/libyang0/files/patch-x-CMakeLists.txt b/_oldver/libyang0/files/patch-x-CMakeLists.txt new file mode 100644 index 00000000..52c41607 --- /dev/null +++ b/_oldver/libyang0/files/patch-x-CMakeLists.txt @@ -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) diff --git a/_oldver/libyang0/pkg-descr b/_oldver/libyang0/pkg-descr new file mode 100644 index 00000000..5ecaaa54 --- /dev/null +++ b/_oldver/libyang0/pkg-descr @@ -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 diff --git a/_oldver/libyang0/pkg-plist b/_oldver/libyang0/pkg-plist new file mode 100644 index 00000000..c7e76ca3 --- /dev/null +++ b/_oldver/libyang0/pkg-plist @@ -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 diff --git a/_oldver/libyang1/Makefile b/_oldver/libyang1/Makefile new file mode 100644 index 00000000..d955bd19 --- /dev/null +++ b/_oldver/libyang1/Makefile @@ -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 diff --git a/_oldver/libyang1/distinfo b/_oldver/libyang1/distinfo new file mode 100644 index 00000000..82aa98cc --- /dev/null +++ b/_oldver/libyang1/distinfo @@ -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 diff --git a/_oldver/libyang1/files/_patch-x-CMakeLists.txt b/_oldver/libyang1/files/_patch-x-CMakeLists.txt new file mode 100644 index 00000000..93bee938 --- /dev/null +++ b/_oldver/libyang1/files/_patch-x-CMakeLists.txt @@ -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 diff --git a/_oldver/libyang1/files/patch-x-CMakeLists.txt b/_oldver/libyang1/files/patch-x-CMakeLists.txt new file mode 100644 index 00000000..abb10b9f --- /dev/null +++ b/_oldver/libyang1/files/patch-x-CMakeLists.txt @@ -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) diff --git a/_oldver/libyang1/pkg-descr b/_oldver/libyang1/pkg-descr new file mode 100644 index 00000000..5ecaaa54 --- /dev/null +++ b/_oldver/libyang1/pkg-descr @@ -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 diff --git a/_oldver/libyang1/pkg-plist b/_oldver/libyang1/pkg-plist new file mode 100644 index 00000000..b597a843 --- /dev/null +++ b/_oldver/libyang1/pkg-plist @@ -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 diff --git a/net/frr8/Makefile b/net/frr8/Makefile new file mode 100644 index 00000000..de00bf33 --- /dev/null +++ b/net/frr8/Makefile @@ -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 + +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 +#EOF diff --git a/net/frr8/distinfo b/net/frr8/distinfo new file mode 100644 index 00000000..e066937f --- /dev/null +++ b/net/frr8/distinfo @@ -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 diff --git a/net/frr8/files/babeld.in b/net/frr8/files/babeld.in new file mode 100644 index 00000000..33e23984 --- /dev/null +++ b/net/frr8/files/babeld.in @@ -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 diff --git a/net/frr8/files/bfdd.in b/net/frr8/files/bfdd.in new file mode 100644 index 00000000..6e5031ba --- /dev/null +++ b/net/frr8/files/bfdd.in @@ -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 diff --git a/net/frr8/files/bgpd.in b/net/frr8/files/bgpd.in new file mode 100644 index 00000000..9822f47d --- /dev/null +++ b/net/frr8/files/bgpd.in @@ -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 diff --git a/net/frr8/files/eigrpd.in b/net/frr8/files/eigrpd.in new file mode 100644 index 00000000..620cd977 --- /dev/null +++ b/net/frr8/files/eigrpd.in @@ -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 diff --git a/net/frr8/files/fabricd.in b/net/frr8/files/fabricd.in new file mode 100644 index 00000000..ac6a84da --- /dev/null +++ b/net/frr8/files/fabricd.in @@ -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 diff --git a/net/frr8/files/isisd.in b/net/frr8/files/isisd.in new file mode 100644 index 00000000..dd813372 --- /dev/null +++ b/net/frr8/files/isisd.in @@ -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 diff --git a/net/frr8/files/ospf6d.in b/net/frr8/files/ospf6d.in new file mode 100644 index 00000000..95856bc1 --- /dev/null +++ b/net/frr8/files/ospf6d.in @@ -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 diff --git a/net/frr8/files/ospfd.in b/net/frr8/files/ospfd.in new file mode 100644 index 00000000..73848bff --- /dev/null +++ b/net/frr8/files/ospfd.in @@ -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 diff --git a/net/frr8/files/patch-Makefile.am b/net/frr8/files/patch-Makefile.am new file mode 100644 index 00000000..626f17a2 --- /dev/null +++ b/net/frr8/files/patch-Makefile.am @@ -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 diff --git a/net/frr8/files/patch-x-zebra-zebra_mpls.c b/net/frr8/files/patch-x-zebra-zebra_mpls.c new file mode 100644 index 00000000..d7005af3 --- /dev/null +++ b/net/frr8/files/patch-x-zebra-zebra_mpls.c @@ -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; + } + diff --git a/net/frr8/files/pbrd.in b/net/frr8/files/pbrd.in new file mode 100644 index 00000000..a1aaa491 --- /dev/null +++ b/net/frr8/files/pbrd.in @@ -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 diff --git a/net/frr8/files/pimd.in b/net/frr8/files/pimd.in new file mode 100644 index 00000000..56235e95 --- /dev/null +++ b/net/frr8/files/pimd.in @@ -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 diff --git a/net/frr8/files/pkg-deinstall.in b/net/frr8/files/pkg-deinstall.in new file mode 100644 index 00000000..a280f510 --- /dev/null +++ b/net/frr8/files/pkg-deinstall.in @@ -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 diff --git a/net/frr8/files/pkg-install.in b/net/frr8/files/pkg-install.in new file mode 100644 index 00000000..6847cd4e --- /dev/null +++ b/net/frr8/files/pkg-install.in @@ -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 diff --git a/net/frr8/files/ripd.in b/net/frr8/files/ripd.in new file mode 100644 index 00000000..1ef2403b --- /dev/null +++ b/net/frr8/files/ripd.in @@ -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 diff --git a/net/frr8/files/ripngd.in b/net/frr8/files/ripngd.in new file mode 100644 index 00000000..3ac5f8ff --- /dev/null +++ b/net/frr8/files/ripngd.in @@ -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 diff --git a/net/frr8/files/sharpd.in b/net/frr8/files/sharpd.in new file mode 100644 index 00000000..e2a66a1a --- /dev/null +++ b/net/frr8/files/sharpd.in @@ -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 diff --git a/net/frr8/files/staticd.in b/net/frr8/files/staticd.in new file mode 100644 index 00000000..84de747f --- /dev/null +++ b/net/frr8/files/staticd.in @@ -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 diff --git a/net/frr8/files/zebra.in b/net/frr8/files/zebra.in new file mode 100644 index 00000000..db56f8bf --- /dev/null +++ b/net/frr8/files/zebra.in @@ -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 diff --git a/net/frr8/pkg-descr b/net/frr8/pkg-descr new file mode 100644 index 00000000..f4c8569b --- /dev/null +++ b/net/frr8/pkg-descr @@ -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/ diff --git a/net/frr8/pkg-message b/net/frr8/pkg-message new file mode 100644 index 00000000..75a34016 --- /dev/null +++ b/net/frr8/pkg-message @@ -0,0 +1,13 @@ +[ +{ type: install + message: <