7a59b9247f
PR: ports/63817 Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer)
93 lines
1.9 KiB
Bash
93 lines
1.9 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
if [ -f ${WRKDIRPREFIX}${CURDIR2}/Makefile.inc ]; then
|
|
exit
|
|
fi
|
|
|
|
if [ "${POWERDNS_OPTIONS}" ]; then
|
|
set ${POWERDNS_OPTIONS}
|
|
else
|
|
dialog --title "configuration options" --clear \
|
|
--checklist "\n\
|
|
Please select desired options:" -1 -1 9 \
|
|
PostgreSQL "PostgreSQL driver" ON \
|
|
MySQL323 "MySQL 3.23 driver" OFF \
|
|
MySQL40 "MySQL 4.0 driver" OFF \
|
|
MySQL41 "MySQL 4.1 driver" OFF \
|
|
OpenLDAP20 "OpenLDAP 2.0 backend" OFF \
|
|
OpenLDAP21 "OpenLDAP 2.1 backend" OFF \
|
|
OpenLDAP22 "OpenLDAP 2.2 backend" OFF \
|
|
SQLite "SQLite backend" OFF \
|
|
Recursor "Build Recursor" OFF \
|
|
2> /tmp/checklist.tmp.$$
|
|
|
|
retval=$?
|
|
if [ -s /tmp/checklist.tmp.$$ ]; then
|
|
set `cat /tmp/checklist.tmp.$$`
|
|
fi
|
|
rm -f /tmp/checklist.tmp.$$
|
|
|
|
case $retval in
|
|
0) if [ -z "$*" ]; then
|
|
echo "Nothing selected"
|
|
fi
|
|
;;
|
|
1) echo "Cancel pressed."
|
|
exit 1
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
${MKDIR} ${WRKDIRPREFIX}${CURDIR2}
|
|
exec > ${WRKDIRPREFIX}${CURDIR2}/Makefile.inc
|
|
|
|
while [ "$1" ]; do
|
|
case $1 in
|
|
\"PostgreSQL\")
|
|
echo WITH_POSTGRESQL_DRIVER=YES
|
|
;;
|
|
\"MySQL323\")
|
|
echo WITH_MYSQL_DRIVER=YES
|
|
echo MYSQL_PORT?=databases/mysql323-client
|
|
;;
|
|
\"MySQL40\")
|
|
echo WITH_MYSQL_DRIVER=YES
|
|
echo MYSQL_PORT?=databases/mysql40-client
|
|
;;
|
|
\"MySQL41\")
|
|
echo WITH_MYSQL_DRIVER=YES
|
|
echo MYSQL_PORT?=databases/mysql41-client
|
|
;;
|
|
\"OpenLDAP20\")
|
|
echo WITH_LDAP=YES
|
|
echo LDAP_PORT?=net/openldap20-client
|
|
;;
|
|
\"OpenLDAP21\")
|
|
echo WITH_LDAP=YES
|
|
echo LDAP_PORT?=net/openldap21-client
|
|
;;
|
|
\"OpenLDAP22\")
|
|
echo WITH_LDAP=YES
|
|
echo LDAP_PORT?=net/openldap22-client
|
|
;;
|
|
\"SQLite\")
|
|
echo WITH_SQLITE=YES
|
|
echo SQLITE_PORT?=databases/sqlite
|
|
;;
|
|
\"Recursor\")
|
|
echo POWERDNS_WITH_RECURSOR=YES
|
|
;;
|
|
\"nothing\"|true)
|
|
;;
|
|
*)
|
|
echo "Invalid option(s): $*" > /dev/stderr
|
|
rm -f ${WRKDIRPREFIX}${CURDIR2}/Makefile.inc
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
exec > /dev/stderr
|