blob: 6efa46c6c648637df9fa70b93ba8e2c3cb1bd257 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#!/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 8 \
PostgreSQL "PostgreSQL driver" ON \
MySQL "MySQL driver" OFF \
OpenLDAP "OpenLDAP 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
;;
\"MySQL\")
echo WITH_MYSQL_DRIVER=YES
;;
\"OpenLDAP\")
echo WITH_LDAP=YES
;;
\"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
|