diff options
author | andreas <andreas@FreeBSD.org> | 2001-01-12 05:45:05 +0800 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 2001-01-12 05:45:05 +0800 |
commit | 234faae017022e10c97f32cae178c4143a630be1 (patch) | |
tree | b55b44695dd0fd1cf6a023e37efb0d382a03ab74 /net/zebra | |
parent | d782bd5d123360eb52bd6cb2d20ec18158687935 (diff) | |
download | freebsd-ports-gnome-234faae017022e10c97f32cae178c4143a630be1.tar.gz freebsd-ports-gnome-234faae017022e10c97f32cae178c4143a630be1.tar.zst freebsd-ports-gnome-234faae017022e10c97f32cae178c4143a630be1.zip |
upgrade to new zebra version 0.90
- removed PORTREVISION (new version)
- new configure script: dialog menue allows you to set different zebra
compile time options (if ! BATCH), currently supported:
--with-libpam = enable PAM authentication for vtysh
--enable-nssa = enable OSPF NSSA
--enable-snmp = enable SNMP support
- please note: port compiles fine when all options are set, but
functionality has not been tested by me.
- silence portlint, trim pkg-comment to <=70 columns
- remove unneeded patch patch, 0.90 now contains fix for memory leak
- cosmetic: add patch for Makefile.in (don't link with -g)
- portlint: o.k.
In this BETA --enable-unixdomain and --enable-newrib became default !
To get old implementation back use the following configure options:
--enable-tcp-zebra # TCP/IP socket is used for protocol daemon and zebra.
--enable-oldrib # Turn on old RIB implementation.
Note: I didn't add these options to configure script, so that people
don't choose the wrong thing !
Some milestones of this release (see file NEWS for complete list):
- access-lists can have remarks
- memory leak with access-list and prefix-list name fixed
- UNIX domain socket server of zebra protocol is added
- PointoPoint interface network bug fixed
- Metric value is reflected to kernel routing table
- New RIB implementation has been added:
- BGP passive peer support problem is fixed
- Redistributed IGP nexthop is passed to BGP nexthop
- Fix bug of holdtimer is not reset when bgp cleared
- BGP-MIB implementation is finished
- When BGP connection comes from unconfigured IP address, close socket
immediately.
- BGP flap dampening feature is added
* RIP
- Fix bug of refreshing default route
* OSPF
- Fix bug of Hello packet's option is not properly set when interface comes up
- Reduce unconditional logging
- New command for virtual-link configuration
- Memory leak related classfull network generation is fixed
Diffstat (limited to 'net/zebra')
-rw-r--r-- | net/zebra/Makefile | 17 | ||||
-rw-r--r-- | net/zebra/distinfo | 2 | ||||
-rw-r--r-- | net/zebra/files/patch-001_vty_memory_leak | 18 | ||||
-rw-r--r-- | net/zebra/files/patch-zebra_Makefile.in | 15 | ||||
-rw-r--r-- | net/zebra/pkg-comment | 2 | ||||
-rw-r--r-- | net/zebra/scripts/configure | 57 |
6 files changed, 87 insertions, 24 deletions
diff --git a/net/zebra/Makefile b/net/zebra/Makefile index b05feb461b64..08e4bb216951 100644 --- a/net/zebra/Makefile +++ b/net/zebra/Makefile @@ -6,12 +6,9 @@ # PORTNAME= zebra -PORTVERSION= 0.89a -PORTREVISION= 1 +PORTVERSION= 0.90 CATEGORIES= net ipv6 MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ -# you might need debugging, it's a developer release ! -#CFLAGS+= -g MAINTAINER= andreas@FreeBSD.org @@ -21,6 +18,18 @@ CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra MAN1= vtysh.1 MAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 +.if !defined(BATCH) +pre-configure: + @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc + +post-clean: + @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc + +.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) +.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" +.endif +.endif + .include <bsd.port.pre.mk> .if ${OSVERSION} >= 400014 diff --git a/net/zebra/distinfo b/net/zebra/distinfo index 540e979e9ba9..44417bcf680d 100644 --- a/net/zebra/distinfo +++ b/net/zebra/distinfo @@ -1 +1 @@ -MD5 (zebra-0.89a.tar.gz) = a132708d41c460a8cd54577b3b0cff27 +MD5 (zebra-0.90.tar.gz) = 47267d23dd90eaa089f66771ed167069 diff --git a/net/zebra/files/patch-001_vty_memory_leak b/net/zebra/files/patch-001_vty_memory_leak deleted file mode 100644 index c857fedf984f..000000000000 --- a/net/zebra/files/patch-001_vty_memory_leak +++ /dev/null @@ -1,18 +0,0 @@ ---- lib/vty.c.orig Tue Sep 26 23:03:12 2000 -+++ lib/vty.c Tue Dec 26 23:18:00 2000 -@@ -1850,10 +1849,13 @@ - printf ("line: %s\n", buf); - #endif /* VTYSH_DEBUG */ - -+ vty_ensure (vty, nbytes); -+ memcpy (vty->buf, buf, nbytes); -+ - /* Pass this line to parser. */ -- vty->buf = buf; - ret = vty_execute (vty); -- vty->buf = NULL; -+ -+ vty_clear_buf (vty); - - /* Return result. */ - #ifdef VTYSH_DEBUG diff --git a/net/zebra/files/patch-zebra_Makefile.in b/net/zebra/files/patch-zebra_Makefile.in new file mode 100644 index 000000000000..47c586510848 --- /dev/null +++ b/net/zebra/files/patch-zebra_Makefile.in @@ -0,0 +1,15 @@ +--- zebra/Makefile.in.orig Thu Jan 11 11:22:36 2001 ++++ zebra/Makefile.in Thu Jan 11 11:23:00 2001 +@@ -331,10 +331,10 @@ + + + zebra : $(zebra_OBJECTS) $(otherobj) ../lib/libzebra.a +- $(CC) -g -o zebra $(zebra_OBJECTS) $(otherobj) ../lib/libzebra.a $(LIBS) $(LIB_IPV6) ++ $(CC) -o zebra $(zebra_OBJECTS) $(otherobj) ../lib/libzebra.a $(LIBS) $(LIB_IPV6) + + client : client_main.o ../lib/libzebra.a +- $(CC) -g -o client client_main.o ../lib/libzebra.a $(LIBS) $(LIB_IPV6) ++ $(CC) -o client client_main.o ../lib/libzebra.a $(LIBS) $(LIB_IPV6) + + install-sysconfDATA: $(sysconf_DATA) + @$(NORMAL_INSTALL) diff --git a/net/zebra/pkg-comment b/net/zebra/pkg-comment index 2394a0df46d2..df7c38434b5c 100644 --- a/net/zebra/pkg-comment +++ b/net/zebra/pkg-comment @@ -1 +1 @@ -Free multithreaded RIPv1, RIPv2, OSPFv2, BGP4 route software (server/reflector) +Free RIPv1, RIPv2, OSPFv2, BGP4 route software (server/reflector) diff --git a/net/zebra/scripts/configure b/net/zebra/scripts/configure new file mode 100644 index 000000000000..68629d4f44f0 --- /dev/null +++ b/net/zebra/scripts/configure @@ -0,0 +1,57 @@ +#! /bin/sh + +# $FreeBSD$ + +# configure - zebra compile time option configurator +# by Andreas Klemm <andreas@FreeBSD.org> + +if [ "$BATCH" != "yes" -o "$BATCH" != "YES" ]; then + +# +# configure - zebra compile time options +# + +/usr/bin/dialog --title "Zebra Compile Time Options" --clear \ + --checklist "\n\ +Select compile time options for zebra port:" -1 -1 8 \ +LIBPAM "enable PAM authentication for vtysh" OFF \ +OSPF_NSSA "turn on undergoing NSSA feature" OFF \ +SNMP "enable SNMP support" OFF \ +2> /tmp/zebra-checklist.$$ + +retval=$? + +if [ -s /tmp/zebra-checklist.$$ ]; then + set `cat /tmp/zebra-checklist.$$` +fi +rm -f /tmp/zebra-checklist.$$ + +case $retval in + 0) if [ -z "$*" ]; then + echo "Nothing selected" + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; +esac + +/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR} +exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + +while [ "$1" ]; do + case $1 in + \"LIBPAM\") + echo CONFIGURE_ARGS+=--with-libpam + ;; + \"OSPF_NSSA\") + echo CONFIGURE_ARGS+=--enable-nssa + ;; + \"SNMP\") + echo CONFIGURE_ARGS+=--enable-snmp + ;; + esac + shift +done + +fi # if $BATCH |