pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/frr net/frr: import frr-7.5
details: https://anonhg.NetBSD.org/pkgsrc/rev/7ff65ee92f04
branches: trunk
changeset: 443324:7ff65ee92f04
user: kardel <kardel%pkgsrc.org@localhost>
date: Thu Dec 10 16:43:24 2020 +0000
description:
net/frr: import frr-7.5
FRRouting
=========
FRR is free software that implements and manages various IPv4 and IPv6 routing
protocols. It runs on nearly all distributions of Linux and BSD as well as
Solaris and supports all modern CPU architectures.
FRR currently supports the following protocols:
* BGP
* OSPFv2
* OSPFv3
* RIPv1
* RIPv2
* RIPng
* IS-IS
...
diffstat:
net/frr/DESCR | 17 +
net/frr/MESSAGE | 11 +
net/frr/Makefile | 116 +++++++++
net/frr/PLIST | 319 +++++++++++++++++++++++++++
net/frr/distinfo | 9 +
net/frr/files/staticd.sh | 27 ++
net/frr/options.mk | 25 ++
net/frr/patches/patch-pkgsrc_zebra.sh.in | 16 +
net/frr/patches/patch-zebra_ioctl.c | 116 +++++++++
net/frr/patches/patch-zebra_kernel__socket.c | 30 ++
10 files changed, 686 insertions(+), 0 deletions(-)
diffs (truncated from 726 to 300 lines):
diff -r 8e8067546eb4 -r 7ff65ee92f04 net/frr/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/frr/DESCR Thu Dec 10 16:43:24 2020 +0000
@@ -0,0 +1,17 @@
+FRRouting
+=========
+
+FRR is free software that implements and manages various IPv4 and IPv6 routing
+protocols. It runs on nearly all distributions of Linux and BSD as well as
+Solaris and supports all modern CPU architectures.
+
+FRR currently supports the following protocols:
+
+* BGP
+* OSPFv2
+* OSPFv3
+* RIPv1
+* RIPv2
+* RIPng
+* IS-IS
+...
diff -r 8e8067546eb4 -r 7ff65ee92f04 net/frr/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/frr/MESSAGE Thu Dec 10 16:43:24 2020 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2020/12/10 16:43:24 kardel Exp $
+
+IMPORTANT:
+To complete the installation you need to add
+the user "${FRR_USER}" to the (secondary) group "${FRR_VTY_GROUP}".
+
+You can find some example config files in
+${PREFIX}/share/examples/frr
+
+===========================================================================
diff -r 8e8067546eb4 -r 7ff65ee92f04 net/frr/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/frr/Makefile Thu Dec 10 16:43:24 2020 +0000
@@ -0,0 +1,116 @@
+# $NetBSD: Makefile,v 1.1 2020/12/10 16:43:24 kardel Exp $
+
+GITHUB_PROJECT= frr
+VERSION= 7.5
+GITHUB_TAG= frr-${VERSION}
+DISTNAME= frr-${VERSION}
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=FRRouting/}
+
+MAINTAINER= kardel%NetBSD.org@localhost
+HOMEPAGE= https://github.com/FRRouting/frr/
+COMMENT= Frr routing multi protocol suite
+LICENSE= gnu-gpl-v2
+
+CONFLICTS= quagga-[0-9]*
+
+WRKSRC= ${WRKDIR}/frr-frr-${VERSION}
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake perl bash pkg-config autoconf automake autoreconf
+USE_LIBTOOL= YES
+GNU_CONFIGURE= yes
+BUILD_DEFS= VARBASE
+
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
+# to pick up the atomic implementation on i386
+.if ${MACHINE_ARCH} == "i386"
+CPPFLAGS+= -march=i586
+.endif
+
+FRR_GROUP?= _frr
+FRR_VTY_GROUP?= frrvty
+
+FRR_USER?= _frr
+FRR_CONF_MODE= 0640
+FRR_CONFDIR_MODE= 0755
+FRR_LOG_MODE= 0640
+
+PKG_SYSCONFDIR_PERMS= ${FRR_USER} ${FRR_VTY_GROUP} ${FRR_CONFDIR_MODE}
+PKG_SYSCONFSUBDIR= frr
+
+PKG_GECOS.${FRR_USER}= FRRouting User
+PKG_HOME.${FRR_USER}= /nonexistent
+PKG_SHELL.${FRR_USER}= /bin/sh
+
+PKG_GROUPS= ${FRR_GROUP} ${FRR_VTY_GROUP}
+PKG_USERS= ${FRR_USER}:${FRR_GROUP}
+
+RCD_SUPPLIED= bgpd ospf6d ospfd ripd ripngd zebra
+RCD_SCRIPTS= ${RCD_SUPPLIED} staticd
+
+.for f in ${RCD_SUPPLIED}
+RCD_SCRIPT_SRC.${f}= ${WRKSRC}/pkgsrc/${f}.sh
+.endfor
+
+CONFIG_TEMPLATE_PATH= share/examples/${PKG_SYSCONFSUBDIR}/configsamples
+
+USE_TOOLS+= bash:run
+REPLACE_BASH= tools/frr.in tools/*.sh.in
+
+REPLACE_PYTHON= tools/generate_support_bundle.py tools/frr-reload.py
+
+MESSAGE_SUBST+= FRR_USER=${FRR_USER}
+MESSAGE_SUBST+= FRR_VTY_GROUP=${FRR_VTY_GROUP}
+
+SUBST_CLASSES+= ids
+SUBST_STAGE.ids= pre-configure
+SUBST_MESSAGE.ids= Fixing user/group references.
+SUBST_FILES.ids= pkgsrc/zebra.sh.in
+SUBST_VARS.ids= FRR_USER FRR_VTY_GROUP
+
+SUBST_CLASSES+= workdir
+SUBST_STAGE.workdir= post-configure
+SUBST_MESSAGE.workdir= Fixing absolute workdir references.
+SUBST_FILES.workdir= lib/version.h
+SUBST_SED.workdir= -e "s,${WRKDIR},"'{WRKDIR},g'
+SUBST_VARS.workdir=
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --enable-user=${FRR_USER}
+CONFIGURE_ARGS+= --enable-group=${FRR_GROUP}
+CONFIGURE_ARGS+= --enable-exampledir=${PREFIX}/${CONFIG_TEMPLATE_PATH}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}/run/frr
+CONFIGURE_ARGS+= --enable-multipath=64
+CONFIGURE_ARGS+= --enable-vty-group=${FRR_VTY_GROUP}
+CONFIGURE_ARGS+= --enable-configfile-mask=${FRR_CONF_MODE}
+CONFIGURE_ARGS+= --enable-logfile-mask=${FRR_LOG_MODE}
+CONFIGURE_ARGS+= --enable-fpm
+CONFIGURE_ARGS+= --with-pkg-git-version
+CONFIGURE_ARGS+= --with-pkg-extra-version=/${DISTNAME}
+# CONFIGURE_ARGS+= --enable-address-sanitizer
+
+pre-configure:
+ cd ${WRKSRC} && ${SH} bootstrap.sh
+
+.include "../../devel/libyang/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../devel/readline/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
+
+# needs to be here to have ${EGREP} defined
+CONFIG_TEMPLATES!= ${EGREP} ${CONFIG_TEMPLATE_PATH:Q} PLIST 2>/dev/null
+CONF_FILES?=
+
+.for l in ${CONFIG_TEMPLATES}
+. if ${l:C,^${CONFIG_TEMPLATE_PATH}/(.*)\.sample,\1,} == "vtysh.conf"
+CONF_FILES_PERMS+= /dev/null ${PKG_SYSCONFDIR}${l:C,^${CONFIG_TEMPLATE_PATH}(/.*)\.sample,\1,} \
+ ${FRR_USER} ${FRR_VTY_GROUP} ${FRR_CONF_MODE}
+. else
+CONF_FILES_PERMS+= /dev/null ${PKG_SYSCONFDIR}${l:C,^${CONFIG_TEMPLATE_PATH}(/.*)\.sample,\1,} \
+ ${FRR_USER} ${FRR_GROUP} ${FRR_CONF_MODE}
+. endif
+.endfor
diff -r 8e8067546eb4 -r 7ff65ee92f04 net/frr/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/frr/PLIST Thu Dec 10 16:43:24 2020 +0000
@@ -0,0 +1,319 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/10 16:43:24 kardel Exp $
+bin/mtracebis
+bin/vtysh
+include/frr/agg_table.h
+include/frr/atomlist.h
+include/frr/bfd.h
+include/frr/bitfield.h
+include/frr/buffer.h
+include/frr/checksum.h
+include/frr/command.h
+include/frr/command_graph.h
+include/frr/command_match.h
+include/frr/compiler.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/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.h
+include/frr/if_rmap.h
+include/frr/imsg.h
+include/frr/ipaddr.h
+include/frr/jhash.h
+include/frr/json.h
+include/frr/keychain.h
+include/frr/lib_errors.h
+include/frr/lib_vty.h
+include/frr/libfrr.h
+include/frr/libospf.h
+include/frr/linklist.h
+include/frr/log.h
+include/frr/log_vty.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.h
+include/frr/nexthop_group.h
+include/frr/nexthop_group_private.h
+include/frr/northbound.h
+include/frr/northbound_cli.h
+include/frr/northbound_db.h
+include/frr/ns.h
+include/frr/openbsd-queue.h
+include/frr/openbsd-tree.h
+include/frr/ospfapi/ospf_apiclient.h
+include/frr/ospfd/ospf_api.h
+include/frr/ospfd/ospf_asbr.h
+include/frr/ospfd/ospf_dump.h
+include/frr/ospfd/ospf_dump_api.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/ringbuf.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/typerb.h
+include/frr/typesafe.h
+include/frr/vector.h
+include/frr/version.h
+include/frr/vlan.h
+include/frr/vrf.h
+include/frr/vrf_int.h
+include/frr/vty.h
+include/frr/vxlan.h
+include/frr/wheel.h
+include/frr/workqueue.h
+include/frr/yang.h
+include/frr/yang_translator.h
+include/frr/yang_wrappers.h
+include/frr/zassert.h
+include/frr/zclient.h
+include/frr/zebra.h
+include/frr/zlog.h
+include/frr/zlog_targets.h
+${PLIST.doc}info/frr.info
+lib/frr/modules/zebra_fpm.la
+lib/libfrr.la
+lib/libfrrospfapiclient.la
+${PLIST.doc}man/man1/frr.1
+${PLIST.doc}man/man1/vtysh.1
+${PLIST.doc}man/man8/frr-bfdd.8
+${PLIST.doc}man/man8/frr-bgpd.8
+${PLIST.doc}man/man8/frr-eigrpd.8
+${PLIST.doc}man/man8/frr-isisd.8
+${PLIST.doc}man/man8/frr-ldpd.8
+${PLIST.doc}man/man8/frr-ospf6d.8
+${PLIST.doc}man/man8/frr-ospfd.8
+${PLIST.doc}man/man8/frr-pbrd.8
Home |
Main Index |
Thread Index |
Old Index