diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2003-09-27 23:40:56 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2003-09-27 23:40:56 +0000 |
commit | cbb181edcd3d0f77f9d679776e09b5a1ee665e67 (patch) | |
tree | 16c63c14912bb705efc5c5e47ce942b495131890 /net/quagga/scripts/configure | |
parent | Unbreak automated builds (a la bento), by removing explicit references (diff) |
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
Notes
Notes:
svn path=/head/; revision=89590
Diffstat (limited to 'net/quagga/scripts/configure')
-rw-r--r-- | net/quagga/scripts/configure | 85 |
1 files changed, 85 insertions, 0 deletions
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 <bms@FreeBSD.org> +# +# $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 |