summaryrefslogtreecommitdiff
path: root/net/quagga
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2003-08-13 07:26:57 +0000
committeritojun <itojun@pkgsrc.org>2003-08-13 07:26:57 +0000
commitc0340b6606272a4947028732560e905244ee184c (patch)
tree48f179a5ab513d9e515a8ab482a0ecba9e57d834 /net/quagga
parentb58a7638a4de4a943a80d7b430e42b077e1840eb (diff)
downloadpkgsrc-c0340b6606272a4947028732560e905244ee184c.tar.gz
quagga-0.96, fork of zebra
Diffstat (limited to 'net/quagga')
-rw-r--r--net/quagga/DESCR16
-rw-r--r--net/quagga/Makefile66
-rw-r--r--net/quagga/PLIST20
-rw-r--r--net/quagga/PLIST.v67
-rw-r--r--net/quagga/PLIST.vtysh2
-rw-r--r--net/quagga/distinfo11
-rw-r--r--net/quagga/patches/patch-aa27
-rw-r--r--net/quagga/patches/patch-ab27
-rw-r--r--net/quagga/patches/patch-ac28
-rw-r--r--net/quagga/patches/patch-ad27
-rw-r--r--net/quagga/patches/patch-ae27
-rw-r--r--net/quagga/patches/patch-af27
-rw-r--r--net/quagga/patches/patch-ag16
13 files changed, 301 insertions, 0 deletions
diff --git a/net/quagga/DESCR b/net/quagga/DESCR
new file mode 100644
index 00000000000..2627a76611c
--- /dev/null
+++ b/net/quagga/DESCR
@@ -0,0 +1,16 @@
+GNU Zebra is a free software (distributed under GNU Generic Public
+License) which manages TCP/IP based routing protocols.
+
+It supports BGP-4 protocol as described in RFC1771 (A Border Gateway
+Protocol 4) and RIPv1, RIPv2 and OSPFv2.
+
+Zebra uses multithread technology under multithread supported UNIX
+kernels. However it can be run under not-multithread supported
+UNIX kernels.
+
+Zebra is intended to be used as a Route Server and a Route Reflector.
+Zebra is not a toolkit, it provides full routing power under a new
+architecture.
+
+If you want to build with IPv6 support, install with:
+ # make USE_INET6=YES install
diff --git a/net/quagga/Makefile b/net/quagga/Makefile
new file mode 100644
index 00000000000..ae231025b34
--- /dev/null
+++ b/net/quagga/Makefile
@@ -0,0 +1,66 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
+#
+
+DISTNAME= quagga-0.96
+CATEGORIES= net
+MASTER_SITES= http://www.quagga.net/download/
+
+MAINTAINER= itojun@itojun.org
+HOMEPAGE= http://www.quagga.net/
+COMMENT= Free multithreaded routing daemon software (fork of zebra)
+
+.include "../../mk/bsd.prefs.mk"
+
+AUTOMAKE_REQD= 1.6.2
+USE_BUILDLINK2= # defined
+GNU_CONFIGURE= # defined
+PKG_SYSCONFSUBDIR?= quagga
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+# you might need debugging, it's a developer release !
+#CFLAGS+= -g
+
+CONFLICTS+= zebra-[0-9]*
+
+PLIST_SRC= # empty
+
+INFO_FILES= quagga.info
+
+.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
+USE_GNU_READLINE= # uses rl_pending_input
+. include "../../devel/readline/buildlink2.mk"
+CONFIGURE_ARGS+= --enable-vtysh
+PLIST_SRC+= ${PKGDIR}/PLIST.vtysh
+.else
+CONFIGURE_ARGS+= --disable-vtysh
+.endif
+
+USE_GMAKE= # defined
+
+BUILD_DEFS+= USE_INET6
+
+.if defined(USE_INET6) && ${USE_INET6} == YES
+PLIST_SRC+= ${PKGDIR}/PLIST.v6
+.else
+CONFIGURE_ARGS+= --disable-ospf6d
+CONFIGURE_ARGS+= --disable-ripngd
+.endif
+
+PLIST_SRC+= ${PKGDIR}/PLIST
+
+LIBS+= ${LDFLAGS}
+
+pre-configure:
+ cd ${WRKSRC} && ${AUTORECONF} --force
+# cd ${WRKSRC} && ${AUTOMAKE}
+
+#post-build:
+# cd ${WRKSRC}/doc ; \
+# ${TOUCH} quagga.texi ; \
+# ${MAKEINFO} --no-split quagga.texi
+
+post-install:
+ @${CHMOD} a+r ${PREFIX}/share/examples/quagga/*
+
+.include "../../mk/automake.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/quagga/PLIST b/net/quagga/PLIST
new file mode 100644
index 00000000000..9ff6ba76c71
--- /dev/null
+++ b/net/quagga/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+info/quagga.info
+man/man1/vtysh.1
+man/man8/bgpd.8
+man/man8/ospfd.8
+man/man8/ripd.8
+man/man8/zebra.8
+sbin/bgpd
+sbin/ospfd
+sbin/ripd
+sbin/zebra
+share/examples/quagga/bgpd.conf.sample
+share/examples/quagga/bgpd.conf.sample2
+share/examples/quagga/ripd.conf.sample
+share/examples/quagga/zebra.conf.sample
+info/quagga.info-1
+info/quagga.info-2
+info/quagga.info-3
+info/quagga.info-4
+@dirrm share/examples/quagga
diff --git a/net/quagga/PLIST.v6 b/net/quagga/PLIST.v6
new file mode 100644
index 00000000000..25361ddf188
--- /dev/null
+++ b/net/quagga/PLIST.v6
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST.v6,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+man/man8/ospf6d.8
+man/man8/ripngd.8
+sbin/ospf6d
+sbin/ripngd
+share/examples/quagga/ospf6d.conf.sample
+share/examples/quagga/ripngd.conf.sample
diff --git a/net/quagga/PLIST.vtysh b/net/quagga/PLIST.vtysh
new file mode 100644
index 00000000000..185a60cc11a
--- /dev/null
+++ b/net/quagga/PLIST.vtysh
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.vtysh,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+bin/vtysh
diff --git a/net/quagga/distinfo b/net/quagga/distinfo
new file mode 100644
index 00000000000..a2ffa752e69
--- /dev/null
+++ b/net/quagga/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+
+SHA1 (quagga-0.96.tar.gz) = fda0ca5f47558be2334312844d64dcae4029e7be
+Size (quagga-0.96.tar.gz) = 1462165 bytes
+SHA1 (patch-aa) = b6ae546885a4101cce71e09f41bd509b3808ac8d
+SHA1 (patch-ab) = 5a88348acc8a93ab1fee94a25cb424f5754cb413
+SHA1 (patch-ac) = b0fb9f234c4eacfda0808496576037b63c4f3934
+SHA1 (patch-ad) = ac4ebd252cffa3f290fe76609004aaef0958dcf7
+SHA1 (patch-ae) = bd96350270d0bb09a549af02fd706a59f1dd6002
+SHA1 (patch-af) = 5b0e15f21e874273fbd120829708d7fd8d744605
+SHA1 (patch-ag) = 7f0265cd88e78b1b7e938a6d446f788242f7e886
diff --git a/net/quagga/patches/patch-aa b/net/quagga/patches/patch-aa
new file mode 100644
index 00000000000..227fb71fce2
--- /dev/null
+++ b/net/quagga/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+
+--- bgpd/Makefile.am.orig Wed Jun 19 04:05:04 2002
++++ bgpd/Makefile.am Wed Jul 10 08:34:31 2002
+@@ -30,15 +30,17 @@
+
+ EXTRA_DIST = $(sysconf_DATA) BGP4-MIB.txt
+
++sysconfdatadir=$(datadir)/examples/quagga
++
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadir)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ else if test -f $$p; then \
+- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ fi; fi; \
+ done
diff --git a/net/quagga/patches/patch-ab b/net/quagga/patches/patch-ab
new file mode 100644
index 00000000000..4bdc97d5944
--- /dev/null
+++ b/net/quagga/patches/patch-ab
@@ -0,0 +1,27 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+
+--- ospf6d/Makefile.am.orig Sat Jun 29 15:20:39 2002
++++ ospf6d/Makefile.am Wed Jul 10 08:34:31 2002
+@@ -34,15 +34,17 @@
+
+ EXTRA_DIST = $(sysconf_DATA)
+
++sysconfdatadir=$(datadir)/examples/quagga
++
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadir)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ else if test -f $$p; then \
+- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ fi; fi; \
+ done
diff --git a/net/quagga/patches/patch-ac b/net/quagga/patches/patch-ac
new file mode 100644
index 00000000000..583ef95ad3d
--- /dev/null
+++ b/net/quagga/patches/patch-ac
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+
+--- ospfd/Makefile.am.orig 2003-06-05 12:07:34.000000000 +0900
++++ ospfd/Makefile.am 2003-08-13 16:12:15.000000000 +0900
+@@ -34,15 +34,17 @@
+
+ EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
+
++sysconfdatadir=$(datadir)/examples/quagga
++
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- @list='$(sysconf_DATA)'; for p in $$list; do \
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadatadir)
++ @list='$(sysconfdata_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ else if test -f $$p; then \
+- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ fi; fi; \
+ done
diff --git a/net/quagga/patches/patch-ad b/net/quagga/patches/patch-ad
new file mode 100644
index 00000000000..9c15667c99b
--- /dev/null
+++ b/net/quagga/patches/patch-ad
@@ -0,0 +1,27 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+
+--- ripd/Makefile.am.orig Wed Jun 19 04:06:18 2002
++++ ripd/Makefile.am Wed Jul 10 08:34:31 2002
+@@ -23,15 +23,17 @@
+
+ EXTRA_DIST = $(sysconf_DATA) RIPv2-MIB.txt
+
++sysconfdatadir=$(datadir)/examples/quagga
++
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadir)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ else if test -f $$p; then \
+- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ fi; fi; \
+ done
diff --git a/net/quagga/patches/patch-ae b/net/quagga/patches/patch-ae
new file mode 100644
index 00000000000..0c2ca64ae42
--- /dev/null
+++ b/net/quagga/patches/patch-ae
@@ -0,0 +1,27 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
+
+--- ripngd/Makefile.am.orig Wed Jun 19 04:06:33 2002
++++ ripngd/Makefile.am Wed Jul 10 08:34:31 2002
+@@ -23,15 +23,17 @@
+
+ EXTRA_DIST = $(sysconf_DATA)
+
++sysconfdatadir=$(datadir)/examples/quagga
++
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadir)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ else if test -f $$p; then \
+- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ fi; fi; \
+ done
diff --git a/net/quagga/patches/patch-af b/net/quagga/patches/patch-af
new file mode 100644
index 00000000000..669df5a04d0
--- /dev/null
+++ b/net/quagga/patches/patch-af
@@ -0,0 +1,27 @@
+$NetBSD: patch-af,v 1.1.1.1 2003/08/13 07:26:58 itojun Exp $
+
+--- zebra/Makefile.am.orig Wed Jun 19 08:17:32 2002
++++ zebra/Makefile.am Wed Jul 10 08:34:31 2002
+@@ -43,15 +43,17 @@
+ #client : client_main.o ../lib/libzebra.a
+ # $(CC) -g -o client client_main.o ../lib/libzebra.a $(LIBS) $(LIB_IPV6)
+
++sysconfdatadir=$(datadir)/examples/quagga
++
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadir)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ else if test -f $$p; then \
+- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
++ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
++ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
+ fi; fi; \
+ done
diff --git a/net/quagga/patches/patch-ag b/net/quagga/patches/patch-ag
new file mode 100644
index 00000000000..9f0de29992f
--- /dev/null
+++ b/net/quagga/patches/patch-ag
@@ -0,0 +1,16 @@
+$NetBSD: patch-ag,v 1.1.1.1 2003/08/13 07:26:58 itojun Exp $
+
+--- configure.ac- 2003-08-13 16:13:23.000000000 +0900
++++ configure.ac 2003-08-13 16:13:35.000000000 +0900
+@@ -239,7 +239,10 @@
+ case "${enable_vtysh}" in
+ "yes") VTYSH="vtysh";
+ AC_DEFINE(VTYSH,,VTY shell)
+- AC_CHECK_LIB(tinfo, tputs, , AC_CHECK_LIB(ncurses, tputs))
++ AC_CHECK_LIB(termcap, tputs, ,
++ AC_CHECK_LIB(tinfo, tputs, ,
++ AC_CHECK_LIB(curses, tputs, ,
++ AC_CHECK_LIB(ncurses, tputs))))
+ AC_CHECK_LIB(readline, main)
+ if test $ac_cv_lib_readline_main = no; then
+ AC_MSG_ERROR([vtysh needs libreadline but was not found on your system.])