mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Update to 0.99.4.
PR: ports/97122 Submitted by: Boris Kovalenko <boris@tagnet.ru> (maintainer)
This commit is contained in:
parent
37b8de34ec
commit
c34e741cef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163877
11 changed files with 103 additions and 55 deletions
|
@ -6,8 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= quagga
|
PORTNAME= quagga
|
||||||
PORTVERSION= 0.99.3
|
PORTVERSION= 0.99.4
|
||||||
PORTREVISION= 2
|
|
||||||
CATEGORIES= net ipv6
|
CATEGORIES= net ipv6
|
||||||
MASTER_SITES= http://quagga.net/download/
|
MASTER_SITES= http://quagga.net/download/
|
||||||
|
|
||||||
|
@ -27,7 +26,6 @@ LIBTOOLFILES= configure
|
||||||
|
|
||||||
MAN1= vtysh.1
|
MAN1= vtysh.1
|
||||||
MAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
|
MAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
|
||||||
INFO= quagga
|
|
||||||
|
|
||||||
OPTIONS= ISISD "Enable experimental ISIS daemon" off \
|
OPTIONS= ISISD "Enable experimental ISIS daemon" off \
|
||||||
PAM "PAM authentication for vtysh" off \
|
PAM "PAM authentication for vtysh" off \
|
||||||
|
@ -105,27 +103,18 @@ CONFIGURE_ARGS+=--enable-rtadv
|
||||||
|
|
||||||
.if defined(WITH_SNMP) && !defined(WITHOUT_SNMP)
|
.if defined(WITH_SNMP) && !defined(WITHOUT_SNMP)
|
||||||
CONFIGURE_ARGS+=--enable-snmp
|
CONFIGURE_ARGS+=--enable-snmp
|
||||||
.if defined(WITH_SNMP_4)
|
|
||||||
LIB_DEPENDS+=snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
|
|
||||||
.else
|
|
||||||
LIB_DEPENDS+=netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp
|
LIB_DEPENDS+=netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp
|
||||||
.endif
|
.endif
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined(WITH_TCPMD5) && !defined(WITHOUT_TCPMD5)
|
.if defined(WITH_TCPMD5) && !defined(WITHOUT_TCPMD5)
|
||||||
.if ${OSVERSION} < 491000
|
.if ${OSVERSION} < 491000
|
||||||
BROKEN= "This version of FreeBSD does not have TCP MD5 signature support"
|
BROKEN= This version of FreeBSD does not have TCP MD5 signature support
|
||||||
.endif
|
.endif
|
||||||
EXTRA_PATCHES+=${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgp_network.c ${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgp_vty.c ${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgpd.c ${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgpd.h ${PATCHDIR}/extra-tcpmd5-patch-lib-sockopt.c ${PATCHDIR}/extra-tcpmd5-patch-lib-sockopt.h
|
EXTRA_PATCHES+=${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgp_network.c ${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgp_vty.c ${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgpd.c ${PATCHDIR}/extra-tcpmd5-patch-bgpd-bgpd.h ${PATCHDIR}/extra-tcpmd5-patch-lib-sockopt.c ${PATCHDIR}/extra-tcpmd5-patch-lib-sockopt.h
|
||||||
CFLAGS+= -DQUAGGA_TCP_MD5SIG
|
CFLAGS+= -DQUAGGA_TCP_MD5SIG
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
USE_RC_SUBR= watchquagga.sh
|
USE_RC_SUBR= quagga.sh watchquagga.sh
|
||||||
.if ${OSVERSION} < 500000
|
|
||||||
USE_RC_SUBR+= quagga.sh
|
|
||||||
.else
|
|
||||||
USE_RCORDER= quagga.sh
|
|
||||||
.endif
|
|
||||||
|
|
||||||
SUB_LIST+= LOCALSTATE_DIR=${LOCALSTATE_DIR} \
|
SUB_LIST+= LOCALSTATE_DIR=${LOCALSTATE_DIR} \
|
||||||
SYSCONF_DIR=${SYSCONF_DIR}
|
SYSCONF_DIR=${SYSCONF_DIR}
|
||||||
|
@ -140,7 +129,6 @@ pre-everything::
|
||||||
@${ECHO}
|
@${ECHO}
|
||||||
@${ECHO} "You can build ${PORTNAME} with the following options:"
|
@${ECHO} "You can build ${PORTNAME} with the following options:"
|
||||||
@${ECHO}
|
@${ECHO}
|
||||||
@${ECHO} "WITH_SNMP_4 Force net-snmp 4.x to be used"
|
|
||||||
@${ECHO} "ENABLE_USER Specify user to run Quagga suite as"
|
@${ECHO} "ENABLE_USER Specify user to run Quagga suite as"
|
||||||
@${ECHO} "ENABLE_GROUP Specify group to run Quagga suite as"
|
@${ECHO} "ENABLE_GROUP Specify group to run Quagga suite as"
|
||||||
@${ECHO} "ENABLE_VTY_GROUP Specify group for vty socket ownership"
|
@${ECHO} "ENABLE_VTY_GROUP Specify group for vty socket ownership"
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
MD5 (quagga-0.99.3.tar.gz) = d11dfb2d0eb9fa93e1aca882541e45d8
|
MD5 (quagga-0.99.4.tar.gz) = a75d3f5ed0b3354274c28d195e3f6479
|
||||||
SHA256 (quagga-0.99.3.tar.gz) = 3e319fa854d84eaf6a57513256b903f0d068be85dbce27cb7ec3cbac08e26aac
|
SHA256 (quagga-0.99.4.tar.gz) = 4044bfacb44ec9fa9160b56aeb1e76e1ca62b17115ae38298065cbaad16491a7
|
||||||
SIZE (quagga-0.99.3.tar.gz) = 2203788
|
SIZE (quagga-0.99.4.tar.gz) = 2207774
|
||||||
SIZE (quagga-0.98.5.tar.gz) = 2018058
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
--- lib/sockopt.h.orig Mon Nov 15 10:51:15 2004
|
--- lib/sockopt.h.orig Wed May 4 01:13:05 2005
|
||||||
+++ lib/sockopt.h Fri Jan 28 17:52:57 2005
|
+++ lib/sockopt.h Thu May 11 10:08:05 2006
|
||||||
@@ -40,6 +40,9 @@
|
@@ -40,6 +40,10 @@
|
||||||
*/
|
*/
|
||||||
#define SOPT_SIZE_CMSG_PKTINFO_IPV6() (sizeof (struct in6_pktinfo));
|
#define SOPT_SIZE_CMSG_PKTINFO_IPV6() (sizeof (struct in6_pktinfo));
|
||||||
|
|
||||||
+#ifdef QUAGGA_TCP_MD5SIG
|
+#ifdef QUAGGA_TCP_MD5SIG
|
||||||
+int sockopt_tcp_signature(int family, int sock, int enable);
|
+extern int sockopt_tcp_signature(int family, int sock, int enable);
|
||||||
+#endif /* QUAGGA_TCP_MD5SIG */
|
+#endif /* QUAGGA_TCP_MD5SIG */
|
||||||
|
+
|
||||||
/*
|
/*
|
||||||
* Size defines for control messages used to get ifindex. We define
|
* Size defines for control messages used to get ifindex. We define
|
||||||
* values for each method, and define a macro that can be used by code
|
* values for each method, and define a macro that can be used by code
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
--- configure.orig Fri Jan 20 07:24:48 2006
|
|
||||||
+++ configure Mon Jan 30 09:36:38 2006
|
|
||||||
@@ -15056,7 +15056,7 @@
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "${HAVE_SNMP}" = "yes"; then
|
|
||||||
- for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
|
|
||||||
+ for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/net-snmp/library/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
|
|
||||||
do
|
|
||||||
test -f "${ac_snmp}" && break
|
|
||||||
done
|
|
||||||
@@ -15111,7 +15111,7 @@
|
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
-#define HAVE_NET_SNMP
|
|
||||||
+#define HAVE_NETSNMP
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15119,7 +15119,7 @@
|
|
||||||
#define UCD_COMPATIBLE
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
- SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/local/include/net-snmp"
|
|
||||||
+ SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/library"
|
|
||||||
LIBS="${LIBS} -L/usr/local/lib -lnetsnmp"
|
|
||||||
;;
|
|
||||||
esac
|
|
11
net/quagga/files/patch-doc-Makefile.in
Normal file
11
net/quagga/files/patch-doc-Makefile.in
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- doc/Makefile.in.orig Thu May 11 01:53:06 2006
|
||||||
|
+++ doc/Makefile.in Mon May 29 19:17:40 2006
|
||||||
|
@@ -600,7 +600,7 @@
|
||||||
|
|
||||||
|
info-am: $(INFO_DEPS)
|
||||||
|
|
||||||
|
-install-data-am: install-info-am install-man
|
||||||
|
+install-data-am: install-man
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
11
net/quagga/files/patch-memory.c
Normal file
11
net/quagga/files/patch-memory.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- lib/memory.c.orig Thu Mar 30 19:47:38 2006
|
||||||
|
+++ lib/memory.c Thu May 11 10:18:36 2006
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <zebra.h>
|
||||||
|
-#include <malloc.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "log.h"
|
||||||
|
#include "memory.h"
|
19
net/quagga/files/patch-ripd-ripd.c
Normal file
19
net/quagga/files/patch-ripd-ripd.c
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- ripd/ripd.c.orig Thu May 4 13:33:44 2006
|
||||||
|
+++ ripd/ripd.c Thu May 11 12:58:35 2006
|
||||||
|
@@ -1822,6 +1822,7 @@
|
||||||
|
struct interface *ifp;
|
||||||
|
struct connected *ifc;
|
||||||
|
struct rip_interface *ri;
|
||||||
|
+ int vrecv;
|
||||||
|
|
||||||
|
/* Fetch socket then register myself. */
|
||||||
|
sock = THREAD_FD (t);
|
||||||
|
@@ -1937,7 +1938,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
/* RIP Version check. RFC2453, 4.6 and 5.1 */
|
||||||
|
- int vrecv = ((ri->ri_receive == RI_RIP_UNSPEC) ?
|
||||||
|
+ vrecv = ((ri->ri_receive == RI_RIP_UNSPEC) ?
|
||||||
|
rip->version_recv : ri->ri_receive);
|
||||||
|
if ((packet->version == RIPv1) && !(vrecv & RIPv1))
|
||||||
|
{
|
48
net/quagga/files/patch-zebra-connected.c
Normal file
48
net/quagga/files/patch-zebra-connected.c
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
--- zebra/connected.c.orig Mon May 22 11:48:55 2006
|
||||||
|
+++ zebra/connected.c Mon May 22 11:49:48 2006
|
||||||
|
@@ -60,8 +60,11 @@
|
||||||
|
UNSET_FLAG (ifc->conf, ZEBRA_IFC_REAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
- listnode_delete (ifc->ifp->connected, ifc);
|
||||||
|
- connected_free (ifc);
|
||||||
|
+ if (!CHECK_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED))
|
||||||
|
+ {
|
||||||
|
+ listnode_delete (ifc->ifp->connected, ifc);
|
||||||
|
+ connected_free (ifc);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
@@ -225,7 +228,14 @@
|
||||||
|
|
||||||
|
/* Check same connected route. */
|
||||||
|
if ((current = connected_check (ifp, (struct prefix *) ifc->address)))
|
||||||
|
- connected_withdraw (current); /* implicit withdraw - freebsd does this */
|
||||||
|
+ {
|
||||||
|
+ if (CHECK_FLAG(current->conf, ZEBRA_IFC_CONFIGURED))
|
||||||
|
+ {
|
||||||
|
+ SET_FLAG(ifc->conf, ZEBRA_IFC_CONFIGURED);
|
||||||
|
+ UNSET_FLAG(current->conf, ZEBRA_IFC_CONFIGURED);
|
||||||
|
+ }
|
||||||
|
+ connected_withdraw (current); /* implicit withdraw - freebsd does this */
|
||||||
|
+ }
|
||||||
|
|
||||||
|
connected_announce (ifp, ifc);
|
||||||
|
}
|
||||||
|
@@ -364,7 +374,14 @@
|
||||||
|
ifc->label = XSTRDUP (MTYPE_CONNECTED_LABEL, label);
|
||||||
|
|
||||||
|
if ((current = connected_check (ifp, (struct prefix *) ifc->address)))
|
||||||
|
- connected_withdraw (current); /* implicit update of existing address */
|
||||||
|
+ {
|
||||||
|
+ if (CHECK_FLAG(current->conf, ZEBRA_IFC_CONFIGURED))
|
||||||
|
+ {
|
||||||
|
+ SET_FLAG(ifc->conf, ZEBRA_IFC_CONFIGURED);
|
||||||
|
+ UNSET_FLAG(current->conf, ZEBRA_IFC_CONFIGURED);
|
||||||
|
+ }
|
||||||
|
+ connected_withdraw (current); /* implicit update of existing address */
|
||||||
|
+ }
|
||||||
|
|
||||||
|
connected_announce (ifp, ifc);
|
||||||
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
# PROVIDE: quagga
|
# PROVIDE: quagga
|
||||||
# REQUIRE: netif routing mountcritlocal
|
# REQUIRE: netif routing mountcritlocal
|
||||||
# BEFORE: NETWORKING
|
# BEFORE: NETWORKING
|
||||||
# KEYWORD: NetBSD
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
#
|
#
|
||||||
# Add the following line to /etc/rc.conf to enable quagga:
|
# Add the following line to /etc/rc.conf to enable quagga:
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# PROVIDE: watchquagga
|
# PROVIDE: watchquagga
|
||||||
# REQUIRE: netif routing mountcritlocal quagga
|
# REQUIRE: netif routing mountcritlocal quagga
|
||||||
# BEFORE: NETWORKING
|
# BEFORE: NETWORKING
|
||||||
# KEYWORD: NetBSD
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
#
|
#
|
||||||
# Add the following line to /etc/rc.conf to enable quagga:
|
# Add the following line to /etc/rc.conf to enable quagga:
|
||||||
|
|
|
@ -81,4 +81,4 @@ include/quagga/zebra.h
|
||||||
@dirrm include/quagga
|
@dirrm include/quagga
|
||||||
@dirrm share/examples/quagga
|
@dirrm share/examples/quagga
|
||||||
@dirrm etc/quagga
|
@dirrm etc/quagga
|
||||||
@unexec rmdir %%LOCALSTATE_DIR%% 2>/dev/null || true
|
@dirrmtry %%LOCALSTATE_DIR%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue