summaryrefslogtreecommitdiff
path: root/net/gnu-radius/scripts/configure
diff options
context:
space:
mode:
Diffstat (limited to 'net/gnu-radius/scripts/configure')
-rw-r--r--net/gnu-radius/scripts/configure29
1 files changed, 28 insertions, 1 deletions
diff --git a/net/gnu-radius/scripts/configure b/net/gnu-radius/scripts/configure
index b7e03ad9686d..5e95f25e93b1 100644
--- a/net/gnu-radius/scripts/configure
+++ b/net/gnu-radius/scripts/configure
@@ -47,7 +47,8 @@ LIB_PATH=${LOCALBASE}/lib/
while [ "$1" ]; do
case $1 in
\"Client\")
- echo "CONFIGURE_ARGS+= --with-client"
+ echo "CONFIGURE_ARGS+= --enable-client"
+ export CLIENT=Yes
export GUILE=Yes
;;
\"DBM\")
@@ -57,12 +58,14 @@ while [ "$1" ]; do
echo "USE_MYSQL= YES"
echo "CONFIGURE_ARGS+= --with-mysql"
LIB_PATH="$LIB_PATH:${LOCALBASE}/lib/mysql/"
+ export MYSQL=Yes
;;
\"PostgreSQL\")
echo "POSTGRESQL_PORT?= databases/postgresql7"
echo "LIB_DEPENDS+= pq.3:\${PORTSDIR}/\${POSTGRESQL_PORT}"
echo "CONFIGURE_ARGS+= --with-postgres"
INCLUDE_PATH="$INCLUDE_PATH:${LOCALBASE}/include/pgsql/"
+ export PGSQL=Yes
;;
\"SNMP\")
echo "CONFIGURE_ARGS+= --enable-snmp"
@@ -91,4 +94,28 @@ else
unset GUILE
fi
+if [ -z $CLIENT ]; then
+ echo "CLIENT= \"@comment \""
+else
+ echo "CLIENT= \"\""
+ unset CLIENT
+fi
+
+if [ -z $MYSQL ]; then
+ echo "MYSQL= \"@comment \""
+else
+ echo "MYSQL= \"\""
+ unset MYSQL
+fi
+
+if [ -z $PGSQL ]; then
+ echo "PGSQL= \"@comment \""
+else
+ echo "PGSQL= \"\""
+ unset PGSQL
+fi
+
echo "PLIST_SUB+= GUILE=\${GUILE}"
+echo "PLIST_SUB+= CLIENT=\${CLIENT}"
+echo "PLIST_SUB+= PGSQL=\${PGSQL}"
+echo "PLIST_SUB+= MYSQL=\${MYSQL}"