summaryrefslogtreecommitdiff
path: root/net/quagga/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/quagga/files')
-rw-r--r--net/quagga/files/patch-configure.ac20
-rw-r--r--net/quagga/files/zebractl.sh57
2 files changed, 77 insertions, 0 deletions
diff --git a/net/quagga/files/patch-configure.ac b/net/quagga/files/patch-configure.ac
new file mode 100644
index 000000000000..aca88e392c0f
--- /dev/null
+++ b/net/quagga/files/patch-configure.ac
@@ -0,0 +1,20 @@
+--- configure.ac.orig Thu Sep 25 21:27:36 2003
++++ configure.ac Thu Sep 25 21:31:17 2003
+@@ -755,6 +755,17 @@
+ LIBS="${LIBS} -lsnmp"
+ fi
+ ;;
++ /usr/local/include/net-snmp/*)
++ AC_DEFINE(HAVE_SNMP,,SNMP)
++ AC_DEFINE(HAVE_NET_SNMP,,SNMP)
++ AC_DEFINE(UCD_COMPATIBLE,,SNMP)
++ CFLAGS="${CFLAGS} -I/usr/local/include -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/library"
++ if test"{HAVE_NETSNMP}" = "yes"; then
++ LIBS="${LIBS} -L/usr/local/lib -lnetsnmp"
++ else
++ LIBS="${LIBS} -L/usr/local/lib -lsnmp"
++ fi
++ ;;
+ /usr/include/ucd-snmp/*)
+ AC_DEFINE(HAVE_SNMP,,SNMP)
+ CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
diff --git a/net/quagga/files/zebractl.sh b/net/quagga/files/zebractl.sh
new file mode 100644
index 000000000000..ecb0a5976fac
--- /dev/null
+++ b/net/quagga/files/zebractl.sh
@@ -0,0 +1,57 @@
+#! /bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/net/quagga/files/Attic/zebractl.sh,v 1.1 2003-09-27 23:40:56 bms Exp $
+#
+# zebra start/stop script by "Andreas Klemm <andreas@FreeBSD.ORG>"
+#
+
+usage()
+{
+ echo "$0: usage: $0 [ start | stop | restart ]"
+ exit 1
+}
+
+if [ $# -lt 1 ]; then
+ echo "$0: error: one argument needed"; usage
+elif [ $# -gt 1 ]; then
+ echo "$0: error: only one argument needed"; usage
+fi
+
+case $1 in
+ start)
+ if [ ! -f !!PREFIX!!/etc/zebra/zebra.conf ]; then
+ echo "error: zebra.conf config file is mandatory"
+ exit 1
+ fi
+ [ -f !!PREFIX!!/etc/zebra/zebra.conf ] \
+ && !!PREFIX!!/sbin/zebra -d && echo -n ' zebra'
+ [ -f !!PREFIX!!/etc/zebra/ripd.conf ] \
+ && !!PREFIX!!/sbin/ripd -d && echo -n ' ripd'
+ [ -f !!PREFIX!!/etc/zebra/ripngd.conf ] \
+ && !!PREFIX!!/sbin/ripngd -d && echo -n ' ripngd'
+ [ -f !!PREFIX!!/etc/zebra/ospfd.conf ] \
+ && !!PREFIX!!/sbin/ospfd -d && echo -n ' ospfd'
+ [ -f !!PREFIX!!/etc/zebra/ospf6d.conf ] \
+ && !!PREFIX!!/sbin/ospf6d -d && echo -n ' ospf6d'
+ [ -f !!PREFIX!!/etc/zebra/bgpd.conf ] \
+ && !!PREFIX!!/sbin/bgpd -d && echo -n ' bgpd'
+ ;;
+
+ stop)
+ [ -f !!PREFIX!!/etc/zebra/ripd.conf ] && killall ripd
+ [ -f !!PREFIX!!/etc/zebra/ripngd.conf ] && killall ripngd
+ [ -f !!PREFIX!!/etc/zebra/ospfd.conf ] && killall ospfd
+ [ -f !!PREFIX!!/etc/zebra/ospf6d.conf ] && killall ospf6d
+ [ -f !!PREFIX!!/etc/zebra/bgpd.conf ] && killall bgpd
+ [ -f !!PREFIX!!/etc/zebra/zebra.conf ] && killall zebra
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+
+ *) echo "$0: error: unknown option $1"
+ usage
+ ;;
+esac
+exit 0