blob: 1a71b7ed8ec9623279ade47399e8ba2f00e43a19 (
plain)
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
102
103
104
105
106
107
|
#!/bin/sh
# $FreeBSD$
if [ -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc ]; then
exit
fi
tempfile=`mktemp -t checklist`
if [ "${BATCH}" = "yes" ]; then
else
/usr/bin/dialog --title "NetSaint plugins configuration options" --clear \
--checklist "\n\
Please select desired options:" -1 -1 16 \
QStat "Game server query support" OFF \
FPing "Support for non-flooding fast ping" OFF \
NetSNMP "SNMP support" OFF \
Radiusclient "Radius support" OFF \
MySQL "MySQL support" OFF \
PostgreSQL "PostgreSQL support" OFF \
OpenLDAP "OpenLDAP support" OFF \
2> $tempfile
retval=$?
if [ -s $tempfile ]; then
set `cat $tempfile`
fi
rm -f $tempfile
case $retval in
0) if [ -z "$*" ]; then
echo "Nothing selected"
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
fi
exec > ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
SUB_QSTAT="@comment "
SUB_FPING="@comment "
SUB_SNMP="@comment "
SUB_RADIUS="@comment "
SUB_MYSQL="@comment "
SUB_PGSQL="@comment "
SUB_LDAP="@comment "
while [ "$1" ]; do
case $1 in
\"QStat\")
echo "BUILD_DEPENDS+= qstat:\${PORTSDIR}/games/qstat"
echo "RUN_DEPENDS+= qstat:\${PORTSDIR}/games/qstat"
echo "CONFIGURE_ARGS+= --enable-qstat"
SUB_QSTAT=""
;;
\"FPing\")
echo "BUILD_DEPENDS+= fping:\${PORTSDIR}/net/fping"
echo "RUN_DEPENDS+= fping:\${PORTSDIR}/net/fping"
echo "CONFIGURE_ARGS+= --enable-fping"
SUB_FPING=""
;;
\"NetSNMP\")
echo "BUILD_DEPENDS+= snmpcheck:\${PORTSDIR}/net/net-snmp"
echo "RUN_DEPENDS+= snmpcheck:\${PORTSDIR}/net/net-snmp"
echo "CONFIGURE_ARGS+= --enable-snmp"
SUB_SNMP=""
;;
\"Radiusclient\")
echo "LIB_DEPENDS+= radiusclient.0:\${PORTSDIR}/net/radiusclient"
echo "CONFIGURE_ARGS+= --enable-radius"
SUB_RADIUS=""
;;
\"MySQL\")
echo "LIB_DEPENDS+= mysqlclient.10:\${PORTSDIR}/databases/mysql323-client"
echo "CONFIGURE_ARGS+= --with-mysqllibdir=\${LOCALBASE}/lib/mysql"
SUB_MYSQL=""
;;
\"PostgreSQL\")
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
echo "CONFIGURE_ARGS+= --with-pgsql=\${LOCALBASE}"
SUB_PGSQL=""
;;
\"OpenLDAP\")
echo "LIB_DEPENDS+= ldap.2:\${PORTSDIR}/net/openldap2"
echo "CONFIGURE_ARGS+= --enable-ldap"
SUB_LDAP=""
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
rm -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
exit 1
;;
esac
shift
done
echo "PLIST_SUB+= SUB_QSTAT=\"${SUB_QSTAT}\""
echo "PLIST_SUB+= SUB_FPING=\"${SUB_FPING}\""
echo "PLIST_SUB+= SUB_SNMP=\"${SUB_SNMP}\""
echo "PLIST_SUB+= SUB_RADIUS=\"${SUB_RADIUS}\""
echo "PLIST_SUB+= SUB_MYSQL=\"${SUB_MYSQL}\""
echo "PLIST_SUB+= SUB_PGSQL=\"${SUB_PGSQL}\""
echo "PLIST_SUB+= SUB_LDAP=\"${SUB_LDAP}\""
|