blob: 8aca828c9cb2c383643a4bc864dcf683637c4931 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#!/bin/sh
#
# $FreeBSD$
#
if [ -f ${WRKDIRPREFIX}${CURDIR2}/Makefile.inc ]; then
exit
fi
if [ "${BINDDLZ_OPTIONS}" ]; then
set ${BINDDLZ_OPTIONS}
else
dialog --title "configuration options" --clear \
--checklist "\n\
Please select desired options:" -1 -1 11 \
OpenSSL "OpenSSL support" ON \
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 \
BerkleyDB41 "BerkleyDB 4.1 backend" OFF \
FileSystem "Filesystem driver" ON \
Stub "Stub driver" 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
\"OpenSSL\")
echo WITH_OPENSSL=YES
;;
\"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
;;
\"BerkleyDB41\")
echo WITH_BERKLEYDB_DRIVER=YES
echo BERKLEYDB_LIB?=db41.1
echo BERKLEYDB_PORT?=databases/db41
;;
\"FileSystem\")
echo WITH_FILESYSTEM_DRIVER=YES
;;
\"Stub\")
echo WITH_STUB_DRIVER=YES
;;
\"nothing\"|true)
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR2}/Makefile.inc
exit 1
;;
esac
shift
done
exec > /dev/stderr
|