summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/quagga/Makefile5
-rw-r--r--net/quagga/PLIST5
-rw-r--r--net/quagga/distinfo11
-rw-r--r--net/quagga/patches/patch-configure16
-rw-r--r--net/quagga/patches/patch-solaris_quagga.init.in38
-rw-r--r--net/quagga/patches/patch-zebra-kernel_socket.c90
6 files changed, 10 insertions, 155 deletions
diff --git a/net/quagga/Makefile b/net/quagga/Makefile
index 2a232a5b46f..3a78f217861 100644
--- a/net/quagga/Makefile
+++ b/net/quagga/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.50 2015/02/26 15:32:47 gdt Exp $
+# $NetBSD: Makefile,v 1.51 2015/03/10 16:46:51 gdt Exp $
#
-DISTNAME= quagga-0.99.23.1
-PKGREVISION= 1
+DISTNAME= quagga-0.99.24.1
CATEGORIES= net
MASTER_SITES= http://download.savannah.gnu.org/releases/quagga/
diff --git a/net/quagga/PLIST b/net/quagga/PLIST
index 383e4cb32c3..17acd375f17 100644
--- a/net/quagga/PLIST
+++ b/net/quagga/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2014/12/02 20:22:14 gdt Exp $
+@comment $NetBSD: PLIST,v 1.16 2015/03/10 16:46:51 gdt Exp $
include/quagga/buffer.h
include/quagga/checksum.h
include/quagga/command.h
@@ -52,12 +52,14 @@ lib/libospf.la
lib/libzebra.la
man/man1/vtysh.1
man/man8/bgpd.8
+man/man8/isisd.8
man/man8/ospfd.8
man/man8/ripd.8
man/man8/watchquagga.8
man/man8/zebra.8
sbin/babeld
sbin/bgpd
+sbin/isisd
sbin/ospfd
sbin/ripd
sbin/watchquagga
@@ -71,6 +73,7 @@ share/doc/quagga/mpls/ospfd.conf
share/examples/quagga/babeld.conf.sample
share/examples/quagga/bgpd.conf.sample
share/examples/quagga/bgpd.conf.sample2
+share/examples/quagga/isisd.conf.sample
share/examples/quagga/log_syslog.conf
share/examples/quagga/ospfd.conf.sample
share/examples/quagga/ripd.conf.sample
diff --git a/net/quagga/distinfo b/net/quagga/distinfo
index 83d3b950147..3f62cdaa711 100644
--- a/net/quagga/distinfo
+++ b/net/quagga/distinfo
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.22 2015/01/26 00:06:49 gdt Exp $
+$NetBSD: distinfo,v 1.23 2015/03/10 16:46:51 gdt Exp $
-SHA1 (quagga-0.99.23.1.tar.gz) = 0501f527383cfa548a800de9816cf1423f6b2336
-RMD160 (quagga-0.99.23.1.tar.gz) = 6102fdf118cf31de8155dfcaffee91207ff56164
-Size (quagga-0.99.23.1.tar.gz) = 2526612 bytes
-SHA1 (patch-configure) = 1b994eaa57c75ac0703e2383c846734f38587224
+SHA1 (quagga-0.99.24.1.tar.gz) = da5d4b1b6f524becb217355f95f99076b7a969d5
+RMD160 (quagga-0.99.24.1.tar.gz) = a6b5c6d93b2d129aa4f627ae0359fa6539de6645
+Size (quagga-0.99.24.1.tar.gz) = 2683800 bytes
SHA1 (patch-lib_privs.c) = d86ec56c9f57f38af6cce5285fb95759efc7c8e9
-SHA1 (patch-solaris_quagga.init.in) = 85c63089ecc0852f737f3be347d0ad90093d844f
-SHA1 (patch-zebra-kernel_socket.c) = d4fdc39de43c6946a26bd459326f127f36211c8e
diff --git a/net/quagga/patches/patch-configure b/net/quagga/patches/patch-configure
deleted file mode 100644
index 08cce02871d..00000000000
--- a/net/quagga/patches/patch-configure
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-configure,v 1.4 2015/01/26 00:06:50 gdt Exp $
-
-This patch has not yet been sent upstream.
-
-Extend ip_mreq hack to DragonFlyBSD and SunOS.
---- configure.orig 2013-08-07 13:54:57.000000000 +0000
-+++ configure
-@@ -16637,6 +16637,8 @@ main ()
- {
- #if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000) || defined(__OpenBSD__) || defined(__APPLE__)
- return (0);
-+#elif defined(__DragonFly__) || defined(__sun)
-+ return (0);
- #else
- #error No support for BSD struct ip_mreq hack detected
- #endif
diff --git a/net/quagga/patches/patch-solaris_quagga.init.in b/net/quagga/patches/patch-solaris_quagga.init.in
deleted file mode 100644
index cd16e28f8d6..00000000000
--- a/net/quagga/patches/patch-solaris_quagga.init.in
+++ /dev/null
@@ -1,38 +0,0 @@
-$NetBSD: patch-solaris_quagga.init.in,v 1.1 2015/01/25 22:14:05 fhajny Exp $
-
-Fix SMF method based on the manifest we provide.
---- solaris/quagga.init.in.orig 2014-08-25 16:56:53.000000000 +0000
-+++ solaris/quagga.init.in
-@@ -156,16 +156,16 @@ routeadm_zebra_enable () {
- enable_zebra=`/usr/bin/svcprop -p \
- routing/enable_zebra $SMF_FMRI 2> /dev/null`
- if [ "$enable_zebra" != "false" ]; then
-- zenabled=`/usr/bin/svcprop -p general/enabled zebra:quagga`
-- zenabledt=`/usr/bin/svcprop -p general_ovr/enabled zebra:quagga`
-+ zenabled=`/usr/bin/svcprop -p general/enabled quagga:zebra`
-+ zenabledt=`/usr/bin/svcprop -p general_ovr/enabled quagga:zebra`
- if [ "$zenabled" = "true" -o "$zenabledt" = "true" ]; then
-- /usr/sbin/svcadm disable zebra:quagga
-- /usr/sbin/svcadm enable -st zebra:quagga
-+ /usr/sbin/svcadm disable quagga:zebra
-+ /usr/sbin/svcadm enable -st quagga:zebra
- else
-- /usr/sbin/svcadm enable -st zebra:quagga
-+ /usr/sbin/svcadm enable -st quagga:zebra
- fi
- if [ "$?" != "0" ]; then
-- echo "Could not enable zebra:quagga"
-+ echo "Could not enable quagga:zebra"
- exit $SMF_EXIT_ERR_FATAL
- fi
- fi
-@@ -255,7 +255,8 @@ else
- fi
- fi
-
--upgrade_config "$DAEMON"
-+# Do not try to upgrade, keep pkgsrc separate
-+# upgrade_config "$DAEMON"
-
- if [ ! -f "@sysconfdir@/${DAEMON}.conf" ] ; then
- echo "Could not find config file, @sysconfdir@/${DAEMON}.conf"
diff --git a/net/quagga/patches/patch-zebra-kernel_socket.c b/net/quagga/patches/patch-zebra-kernel_socket.c
deleted file mode 100644
index 27572365bff..00000000000
--- a/net/quagga/patches/patch-zebra-kernel_socket.c
+++ /dev/null
@@ -1,90 +0,0 @@
-$NetBSD: patch-zebra-kernel_socket.c,v 1.2 2015/01/26 00:06:50 gdt Exp $
-
-This patch has already been applied upstream.
-
-From 2fa9994ed80f1b5620cbebf040e85127992ec20d Mon Sep 17 00:00:00 2001
-From: Greg Troxel <gdt@ir.bbn.com>
-Date: Tue, 2 Dec 2014 14:51:49 -0500
-Subject: [PATCH] zebra/kernel_socket.c: Use platform alignment.
-
-Use the platform-provided RT_ROUNDUP macro to align sockaddrs on the
-routing socket, rather than using hard-coded assumptions about
-alignment. Emit a warning if the OS doesn't define alignment macros.
-
-Resolves failure of ripngd on NetBSD 6 i386, which changed alignment
-to uint64_t from long.
----
- zebra/kernel_socket.c | 51 +++++++++++++++++++++++++++++++++++++++++----------
- 1 file changed, 41 insertions(+), 10 deletions(-)
-
-diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
-index 3dbeb98..c2ede09 100644
---- zebra/kernel_socket.c
-+++ zebra/kernel_socket.c
-@@ -42,22 +42,53 @@ extern struct zebra_privs_t zserv_privs;
- extern struct zebra_t zebrad;
-
- /*
-- * Given a sockaddr length, round it up to include pad bytes following
-- * it. Assumes the kernel pads to sizeof(long).
-+ * Historically, the BSD routing socket has aligned data following a
-+ * struct sockaddr to sizeof(long), which was 4 bytes on some
-+ * platforms, and 8 bytes on others. bytes. NetBSD 6 changed the
-+ * routing socket to align to sizeof(uint64_t), which is 8 bytes. OS
-+ * X appears to align to sizeof(int), which is 4 bytes.
- *
-- * XXX: why is ROUNDUP(0) sizeof(long)? 0 is an illegal sockaddr
-- * length anyway (< sizeof (struct sockaddr)), so this shouldn't
-- * matter.
-- * On OS X, both 32, 64bit syatems align on 4 byte boundary
-+ * Alignment of zero-sized sockaddrs is nonsensical, but historically
-+ * BSD defines RT_ROUNDUP(0) to be the alignment interval (rather than
-+ * 0). We follow this practice without questioning it, but it is a
-+ * bug if quagga calls ROUNDUP with 0.
- */
-+
-+/*
-+ * Because of these varying conventions, the only sane approach is for
-+ * the <net/route.h> header to define a ROUNDUP macro. We use the
-+ * provided ROUNDUP macro when possible, and provide a workaround with
-+ * a warning if not.
-+ */
-+#if defined(RT_ROUNDUP)
-+#define ROUNDUP(a) RT_ROUNDUP(a)
-+#endif /* defined(RT_ROUNDUP) */
-+
-+/*
-+ * If ROUNDUP is not defined in terms of platform-provided defines,
-+ * attempt to cope with heuristics.
-+ */
-+#if !defined(ROUNDUP)
-+
-+/*
-+ * It's a bug for a platform not to define rounding/alignment for
-+ * sockaddrs on the routing socket. This warning really is
-+ * intentional, to provoke filing bug reports with operating systems
-+ * that don't define RT_ROUNDUP or equivalent.
-+ */
-+#warning "net/route.h does not define RT_ROUNDUP; makeing unwarranted assumptions!"
-+
- #ifdef __APPLE__
--#define ROUNDUP(a) \
-- ((a) > 0 ? (1 + (((a) - 1) | (sizeof(int) - 1))) : sizeof(int))
-+#define ROUNDUP_TYPE long
- #else
--#define ROUNDUP(a) \
-- ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
-+#define ROUNDUP_TYPE int
- #endif
-
-+#define ROUNDUP(a) \
-+ ((a) > 0 ? (1 + (((a) - 1) | (sizeof(ROUNDUP_TYPE) - 1))) : sizeof(ROUNDUP_TYPE))
-+
-+#endif /* defined(ROUNDUP) */
-+
- /*
- * Given a pointer (sockaddr or void *), return the number of bytes
- * taken up by the sockaddr and any padding needed for alignment.
---
-2.1.0
-