From cbb181edcd3d0f77f9d679776e09b5a1ee665e67 Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Sat, 27 Sep 2003 23:40:56 +0000 Subject: Quagga is a new fork of the GNU Zebra software router. This version, 0.96.2, fixes many bugs in Zebra and adds several new features including support for OSPFAPI, allowing developers to build powerful applications on top of the OSPF routing protocol. Submitted by: fuzzball@ipv6peer.net --- net/quagga/scripts/configure | 85 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 net/quagga/scripts/configure (limited to 'net/quagga/scripts/configure') diff --git a/net/quagga/scripts/configure b/net/quagga/scripts/configure new file mode 100644 index 000000000000..879eeaa02c64 --- /dev/null +++ b/net/quagga/scripts/configure @@ -0,0 +1,85 @@ +#!/bin/sh +# +# configure - quagga compile time option configurator +# by Bruce M Simpson +# +# $FreeBSD$ + +if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then + exit +fi + +tempfile=`mktemp -t checklist` + +if [ "${QUAGGA_OPTIONS}" ]; then + set ${QUAGGA_OPTIONS} +fi + +for i; do + eval status_$i=ON +done + +if [ -z "${BATCH}" ]; then + /usr/bin/dialog --title "Quagga configuration options" --clear \ + --checklist "\n\ +Please select desired options:" -1 -1 8 \ +LIBPAM "PAM authentication for vtysh" "$status_LIBPAM" \ +OSPF_NSSA "NSSA support (RFC1587)" "$status_OSPF_NSSA" \ +OSPF_OPAQUE_LSA "OSPF Opaque-LSA with OSPFAPI support (RFC2370)" "$status_OSPF_OPAQUE_LSA" \ +RTADV "IPv6 Router Advertisements" "$status_RTADV" \ +SNMP "SNMP support" "$status_SNMP" \ +TCPSOCKETS "Use TCP/IP sockets for protocol daemons" "$status_TCPSOCKETS" \ +2> $tempfile + + retval=$? + + if [ -s $tempfile ]; then + set `sed 's/"//g' $tempfile` + fi + rm -f $tempfile + + case $retval in + 0) if [ -z "$*" ]; then + echo "Nothing selected" + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; + esac +fi + +/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR} +exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + +echo "PREFIX= ${PREFIX}" + +while [ "$1" ]; do + case $1 in + LIBPAM) + echo 'CONFIGURE_ARGS+= --with-libpam' + ;; + OSPF_NSSA) + echo 'CONFIGURE_ARGS+= --enable-nssa' + ;; + OSPF_OPAQUE_LSA) + echo 'CONFIGURE_ARGS+= --enable-opaque-lsa' + ;; + RTADV) + echo 'CONFIGURE_ARGS+= --enable-rtadv' + ;; + SNMP) + echo 'LIB_DEPENDS+= snmp.4:${PORTSDIR}/net/net-snmp:install' + echo 'CONFIGURE_ARGS+= --enable-snmp' + ;; + TCPSOCKETS) + echo 'CONFIGURE_ARGS+= --enable-tcp-zebra' + ;; + *) + echo "Unknown option(s): $*" > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + ;; + esac + shift +done -- cgit v1.2.3