mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-29 21:39:24 +00:00
7d1c8282aa
if BATCH is not defined. Portrevision doesn't need to be bumped, since exactly this enables/unbreaks package building...
58 lines
1.1 KiB
Bash
58 lines
1.1 KiB
Bash
#! /bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
# configure - zebra compile time option configurator
|
|
# by Andreas Klemm <andreas@FreeBSD.org>
|
|
|
|
if [ "$BATCH" != "yes" -a "$BATCH" != "YES" ]; then
|
|
|
|
#
|
|
# configure - zebra compile time options
|
|
#
|
|
|
|
/usr/bin/dialog --title "Zebra Compile Time Options" --clear \
|
|
--checklist "\n\
|
|
Select compile time options for zebra port:" -1 -1 8 \
|
|
LIBPAM "enable PAM authentication for vtysh" OFF \
|
|
OSPF_NSSA "turn on undergoing NSSA feature" OFF \
|
|
SNMP "enable SNMP support" OFF \
|
|
2> /tmp/zebra-checklist.$$
|
|
|
|
retval=$?
|
|
|
|
if [ -s /tmp/zebra-checklist.$$ ]; then
|
|
set `cat /tmp/zebra-checklist.$$`
|
|
fi
|
|
rm -f /tmp/zebra-checklist.$$
|
|
|
|
case $retval in
|
|
0) if [ -z "$*" ]; then
|
|
echo "Nothing selected"
|
|
fi
|
|
;;
|
|
1) echo "Cancel pressed."
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
|
|
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
while [ "$1" ]; do
|
|
case $1 in
|
|
\"LIBPAM\")
|
|
echo CONFIGURE_ARGS+=--with-libpam
|
|
;;
|
|
\"OSPF_NSSA\")
|
|
echo CONFIGURE_ARGS+=--enable-nssa
|
|
;;
|
|
\"SNMP\")
|
|
echo CONFIGURE_ARGS+=--enable-snmp
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
fi # if $BATCH
|