summaryrefslogtreecommitdiff
path: root/net/quagga-devel
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2006-03-08 01:46:05 +0000
committergdt <gdt@pkgsrc.org>2006-03-08 01:46:05 +0000
commitab7f19acedceff5b5cf9a43ac106a74909e68a28 (patch)
tree203467680b3f29e103c60a33e27b539f06abf09a /net/quagga-devel
parent5789e68fc0da4e8746ea28629a27f381d6887b1c (diff)
downloadpkgsrc-ab7f19acedceff5b5cf9a43ac106a74909e68a28.tar.gz
quagga is a multiprotocol routing suite.
This is 0.99.3, a development snapshot.
Diffstat (limited to 'net/quagga-devel')
-rw-r--r--net/quagga-devel/DESCR8
-rw-r--r--net/quagga-devel/Makefile96
-rw-r--r--net/quagga-devel/PLIST83
-rw-r--r--net/quagga-devel/PLIST.opaquelsa5
-rw-r--r--net/quagga-devel/PLIST.v65
-rw-r--r--net/quagga-devel/PLIST.vtysh3
-rw-r--r--net/quagga-devel/distinfo5
-rw-r--r--net/quagga-devel/files/log_syslog.conf3
8 files changed, 208 insertions, 0 deletions
diff --git a/net/quagga-devel/DESCR b/net/quagga-devel/DESCR
new file mode 100644
index 00000000000..94b4d253ce8
--- /dev/null
+++ b/net/quagga-devel/DESCR
@@ -0,0 +1,8 @@
+Quagga is a routing software suite, providing implementations of
+OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms,
+including NetBSD, FreeBSD, OpenBSD, Linux, and Solaris.
+Quagga is a fork of GNU Zebra which was developed by Kunihiro
+Ishiguro. The Quagga tree aims to build a more involved community
+around Quagga than the current centralised model of GNU Zebra.
+
+This package provides a development snapshot of quagga.
diff --git a/net/quagga-devel/Makefile b/net/quagga-devel/Makefile
new file mode 100644
index 00000000000..2c767ac54e9
--- /dev/null
+++ b/net/quagga-devel/Makefile
@@ -0,0 +1,96 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/03/08 01:46:05 gdt 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.99.3
+CATEGORIES= net
+MASTER_SITES= http://www.quagga.net/download/
+
+MAINTAINER= gdt@NetBSD.org
+HOMEPAGE= http://www.quagga.net/
+COMMENT= Free multithreaded routing daemon software (fork of zebra)
+
+.include "../../mk/bsd.prefs.mk"
+
+GNU_CONFIGURE= YES
+USE_TOOLS+= gmake perl
+USE_LIBTOOL= YES
+
+PKG_SYSCONFSUBDIR?= zebra
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+CONFIGURE_ARGS+= --enable-exampledir=${PREFIX}/share/examples/quagga
+#CONFIGURE_ARGS+= --enable-pkgsrcrcdir=${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}/run/zebra
+
+CONFLICTS+= zebra-[0-9]*
+
+PLIST_SRC= ${WRKDIR}/PLIST
+PLIST_CAT= # empty
+
+INFO_FILES= quagga.info
+
+RCD_SCRIPTS= zebra bgpd ospfd ripd
+PKG_GROUPS= quagga
+PKG_USERS= quagga:quagga
+
+# log_syslog.conf is used as a template for each config file
+.for _file_ in vtysh.conf zebra.conf bgpd.conf ospfd.conf ripd.conf
+CONF_FILES_PERMS+= ${PREFIX}/share/examples/quagga/log_syslog.conf \
+ ${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
+.endfor
+
+BUILD_DEFS+= USE_ZEBRA_VTYSH USE_ZEBRA_OSPF_OPAQUELSA
+USE_ZEBRA_VTYSH?= YES
+USE_ZEBRA_OSPF_OPAQUELSA?= YES
+
+.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
+USE_GNU_READLINE= # uses rl_pending_input
+. include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-vtysh
+PLIST_CAT+= ${PKGDIR}/PLIST.vtysh
+.else
+CONFIGURE_ARGS+= --disable-vtysh
+.endif
+
+.if defined(USE_ZEBRA_OSPF_OPAQUELSA) && ${USE_ZEBRA_OSPF_OPAQUELSA} == "YES"
+CONFIGURE_ARGS+= --enable-opaque-lsa
+PLIST_CAT+= ${PKGDIR}/PLIST.opaquelsa
+.endif
+
+BUILD_DEFS+= USE_INET6
+
+.if defined(USE_INET6) && ${USE_INET6} == YES
+PLIST_CAT+= ${PKGDIR}/PLIST.v6
+RCD_SCRIPTS+= ospf6d ripngd
+.for _file_ in ospf6d.conf ripngd.conf
+CONF_FILES_PERMS+= ${PREFIX}/share/examples/quagga/log_syslog.conf \
+ ${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
+.endfor
+.else
+CONFIGURE_ARGS+= --disable-ospf6d
+CONFIGURE_ARGS+= --disable-ripngd
+.endif
+
+PLIST_CAT+= ${PKGDIR}/PLIST
+
+LIBS+= ${LDFLAGS}
+
+.for _script_ in ${RCD_SCRIPTS}
+RCD_SCRIPT_SRC.${_script_}?= ${WRKSRC}/pkgsrc/${_script_}.sh
+.endfor
+
+post-install:
+ @${CHMOD} a+r ${PREFIX}/share/examples/quagga/*
+ ${INSTALL} -d -o quagga -g quagga -m 750 ${PKG_SYSCONFDIR}
+ ${INSTALL_DATA} ${FILESDIR}/log_syslog.conf ${PREFIX}/share/examples/quagga
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga/mpls
+ ${INSTALL_DATA} ${WRKSRC}/doc/BGP-TypeCode ${PREFIX}/share/doc/quagga
+ ${INSTALL_DATA} ${WRKSRC}/doc/draft-zebra-00.txt ${PREFIX}/share/doc/quagga
+ ${INSTALL_DATA} ${WRKSRC}/doc/mpls/* ${PREFIX}/share/doc/quagga/mpls
+ ${CAT} ${PLIST_CAT} > ${PLIST_SRC}
+ (cd ${PREFIX}; ${FIND} share/doc/quagga -type f -print ) >> ${PLIST_SRC}
+ (cd ${PREFIX}; ${FIND} share/doc/quagga -type d -print ) | \
+ ${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/quagga-devel/PLIST b/net/quagga-devel/PLIST
new file mode 100644
index 00000000000..3ef94fbd339
--- /dev/null
+++ b/net/quagga-devel/PLIST
@@ -0,0 +1,83 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/08 01:46:05 gdt Exp $
+include/quagga/buffer.h
+include/quagga/checksum.h
+include/quagga/command.h
+include/quagga/distribute.h
+include/quagga/filter.h
+include/quagga/getopt.h
+include/quagga/hash.h
+include/quagga/if.h
+include/quagga/if_rmap.h
+include/quagga/jhash.h
+include/quagga/keychain.h
+include/quagga/linklist.h
+include/quagga/log.h
+include/quagga/md5.h
+include/quagga/memory.h
+include/quagga/memtypes.h
+include/quagga/network.h
+include/quagga/ospfd/ospf_api.h
+include/quagga/ospfd/ospf_asbr.h
+include/quagga/ospfd/ospf_dump.h
+include/quagga/ospfd/ospf_ism.h
+include/quagga/ospfd/ospf_lsa.h
+include/quagga/ospfd/ospf_lsdb.h
+include/quagga/ospfd/ospf_nsm.h
+include/quagga/ospfd/ospf_opaque.h
+include/quagga/ospfd/ospfd.h
+include/quagga/plist.h
+include/quagga/pqueue.h
+include/quagga/prefix.h
+include/quagga/privs.h
+include/quagga/routemap.h
+include/quagga/sigevent.h
+include/quagga/smux.h
+include/quagga/sockopt.h
+include/quagga/sockunion.h
+include/quagga/str.h
+include/quagga/stream.h
+include/quagga/table.h
+include/quagga/thread.h
+include/quagga/vector.h
+include/quagga/version.h
+include/quagga/vty.h
+include/quagga/workqueue.h
+include/quagga/zassert.h
+include/quagga/zclient.h
+include/quagga/zebra.h
+lib/libospf.la
+lib/libzebra.la
+man/man1/vtysh.1
+man/man8/bgpd.8
+man/man8/isisd.8
+man/man8/ospf6d.8
+man/man8/ospfd.8
+man/man8/ripd.8
+man/man8/ripngd.8
+man/man8/zebra.8
+sbin/bgpd
+sbin/ospfd
+sbin/ripd
+sbin/watchquagga
+sbin/zebra
+share/doc/quagga/BGP-TypeCode
+share/doc/quagga/draft-zebra-00.txt
+share/doc/quagga/mpls/ChangeLog.opaque.txt
+share/doc/quagga/mpls/cli_summary.txt
+share/doc/quagga/mpls/opaque_lsa.txt
+share/doc/quagga/mpls/ospfd.conf
+share/examples/quagga/bgpd.conf.sample
+share/examples/quagga/bgpd.conf.sample2
+share/examples/quagga/log_syslog.conf
+share/examples/quagga/ospfd.conf.sample
+share/examples/quagga/ripd.conf.sample
+share/examples/quagga/zebra.conf.sample
+share/examples/rc.d/bgpd
+share/examples/rc.d/ospf6d
+share/examples/rc.d/ospfd
+share/examples/rc.d/ripd
+share/examples/rc.d/ripngd
+share/examples/rc.d/zebra
+@dirrm share/examples/quagga
+@dirrm include/quagga/ospfd
+@dirrm include/quagga
diff --git a/net/quagga-devel/PLIST.opaquelsa b/net/quagga-devel/PLIST.opaquelsa
new file mode 100644
index 00000000000..f893e19f844
--- /dev/null
+++ b/net/quagga-devel/PLIST.opaquelsa
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.opaquelsa,v 1.1.1.1 2006/03/08 01:46:05 gdt Exp $
+include/quagga/ospfapi/ospf_apiclient.h
+lib/libospfapiclient.la
+sbin/ospfclient
+@dirrm include/quagga/ospfapi
diff --git a/net/quagga-devel/PLIST.v6 b/net/quagga-devel/PLIST.v6
new file mode 100644
index 00000000000..ec58f5fa5f3
--- /dev/null
+++ b/net/quagga-devel/PLIST.v6
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.v6,v 1.1.1.1 2006/03/08 01:46:05 gdt Exp $
+sbin/ospf6d
+sbin/ripngd
+share/examples/quagga/ospf6d.conf.sample
+share/examples/quagga/ripngd.conf.sample
diff --git a/net/quagga-devel/PLIST.vtysh b/net/quagga-devel/PLIST.vtysh
new file mode 100644
index 00000000000..e05c8bd278b
--- /dev/null
+++ b/net/quagga-devel/PLIST.vtysh
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.vtysh,v 1.1.1.1 2006/03/08 01:46:05 gdt Exp $
+bin/vtysh
+share/examples/quagga/vtysh.conf.sample
diff --git a/net/quagga-devel/distinfo b/net/quagga-devel/distinfo
new file mode 100644
index 00000000000..740cce2fdb9
--- /dev/null
+++ b/net/quagga-devel/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/03/08 01:46:05 gdt Exp $
+
+SHA1 (quagga-0.99.3.tar.gz) = ab892eaa5e46fda8c7a552370905ec98e59857d5
+RMD160 (quagga-0.99.3.tar.gz) = d66b2c80608739adb9e22680837242391629ba1e
+Size (quagga-0.99.3.tar.gz) = 2203788 bytes
diff --git a/net/quagga-devel/files/log_syslog.conf b/net/quagga-devel/files/log_syslog.conf
new file mode 100644
index 00000000000..2bb6a45c48b
--- /dev/null
+++ b/net/quagga-devel/files/log_syslog.conf
@@ -0,0 +1,3 @@
+!
+log syslog
+!