1998-09-01 18:38:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1998-12-23 00:44:50 +00:00
|
|
|
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
|
1998-09-01 18:38:05 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
1998-09-30 18:16:08 +00:00
|
|
|
/usr/bin/dialog --title "configuration options" --clear \
|
1998-09-01 18:38:05 +00:00
|
|
|
--checklist "\n\
|
1999-01-27 22:24:36 +00:00
|
|
|
Please select desired options:" -1 -1 11 \
|
1998-09-30 18:16:08 +00:00
|
|
|
tuning "Apache: performance tuning" OFF \
|
|
|
|
modssl "Apache: SSL support" OFF \
|
|
|
|
GD "PHP3: GD library support" ON \
|
|
|
|
FreeType "PHP3: TrueType font rendering (implies GD)" OFF \
|
|
|
|
zlib "PHP3: zlib library support" ON \
|
1999-01-20 14:56:42 +00:00
|
|
|
pdflib "PHP3: pdflib support" OFF \
|
1998-09-30 18:16:08 +00:00
|
|
|
MySQL "PHP3: MySQL database support" ON \
|
|
|
|
PostgreSQL "PHP3: PostgreSQL database support" OFF \
|
|
|
|
mSQL "PHP3: mSQL database support" OFF \
|
1998-12-23 00:44:50 +00:00
|
|
|
dBase "PHP3: dBase database support" OFF \
|
|
|
|
OpenLDAP "PHP3: OpenLDAP support" OFF \
|
|
|
|
2> /tmp/checklist.tmp.$$
|
1998-09-01 18:38:05 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
1998-12-23 00:44:50 +00:00
|
|
|
mkdir -p ${WRKDIRPREFIX}${CURDIR}
|
|
|
|
> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
|
|
|
|
while [ "$1" ]; do
|
|
|
|
case $1 in
|
1998-09-30 18:16:08 +00:00
|
|
|
\"tuning\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "APACHE_PERF_TUNING= YES" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-30 18:16:08 +00:00
|
|
|
;;
|
1998-09-01 18:38:05 +00:00
|
|
|
\"GD\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/lib/libgd.a:\${PORTSDIR}/graphics/gd" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1999-01-02 19:23:55 +00:00
|
|
|
echo "PHP3_CONF_ARGS+= --with-gd=\${PREFIX}" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-13 17:18:13 +00:00
|
|
|
GD=1
|
|
|
|
;;
|
|
|
|
\"FreeType\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "LIB_DEPENDS+= ttf.3:\${PORTSDIR}/print/freetype" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-13 17:18:13 +00:00
|
|
|
if [ -z "$GD" ]; then
|
|
|
|
set $* \"GD\"
|
|
|
|
fi
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
|
|
|
\"zlib\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "PHP3_CONF_ARGS+= --with-zlib" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
1999-01-20 14:56:42 +00:00
|
|
|
\"pdflib\")
|
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/lib/libpdf.a:\${PORTSDIR}/print/pdflib" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
echo "PHP3_CONF_ARGS+= --with-pdflib=\${PREFIX}" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
;;
|
1998-09-01 18:38:05 +00:00
|
|
|
\"MySQL\")
|
1999-02-12 11:57:57 +00:00
|
|
|
echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "PHP3_CONF_ARGS+= --with-mysql=\${PREFIX}" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
1998-09-13 17:18:13 +00:00
|
|
|
\"PostgreSQL\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/pgsql/bin/psql:\${PORTSDIR}/databases/postgresql" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
echo "PHP3_CONF_ARGS+= --with-pgsql=\${PREFIX}/pgsql" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
|
|
|
\"mSQL\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "BUILD_DEPENDS+= msql:\${PORTSDIR}/databases/msql" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
echo "PHP3_CONF_ARGS+= --with-msql=\${PREFIX}" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
|
|
|
\"dBase\")
|
1998-12-23 00:44:50 +00:00
|
|
|
echo "PHP3_CONF_ARGS+= --with-dbase" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
;;
|
|
|
|
\"OpenLDAP\")
|
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/lib/libldap.a:\${PORTSDIR}/net/openldap" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/lib/liblber.a:\${PORTSDIR}/net/openldap" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
echo "PHP3_CONF_ARGS+= --with-ldap=\${PREFIX}" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
1998-09-30 18:16:08 +00:00
|
|
|
\"modssl\")
|
1998-12-23 00:44:50 +00:00
|
|
|
cat << EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1999-01-13 17:31:16 +00:00
|
|
|
PKGNAME= apache-php3-\${VERSION_APACHE}+mod_ssl-\${VERSION_MODSSL}
|
1998-09-30 18:16:08 +00:00
|
|
|
MASTER_SITES+= http://www.engelschall.com/sw/mod_ssl/distrib/ \\
|
|
|
|
ftp://ftp.engelschall.com/sw/mod_ssl/ \\
|
1999-02-22 14:00:32 +00:00
|
|
|
ftp://ftp.ecrc.net/pub/security/mod_ssl/ \\
|
1998-12-23 00:44:50 +00:00
|
|
|
ftp://ftp.nvg.ntnu.no/pub/unix/mod_ssl/ \\
|
1998-09-30 18:16:08 +00:00
|
|
|
ftp://ftp.ulpgc.es/pub/mod_ssl/ \\
|
1998-12-23 00:44:50 +00:00
|
|
|
ftp://glock.missouri.edu/pub/mod_ssl/ \\
|
|
|
|
ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/mod_ssl/ \\
|
|
|
|
ftp://ftp.uni-trier.de/pub/unix/security/mod_ssl/ \\
|
|
|
|
ftp://ftp.blatzheim.com/pub/mod_ssl/ \\
|
|
|
|
ftp://ftp.fu-berlin.de/unix/security/mod_ssl/ \\
|
|
|
|
ftp://ftp.ntrl.net/pub/mirror/ralfsw/mod_ssl/
|
1998-09-30 18:16:08 +00:00
|
|
|
DISTFILES+= mod_ssl-\${VERSION_MODSSL}-\${VERSION_APACHE}\${EXTRACT_SUFX}
|
|
|
|
|
1999-01-10 14:11:19 +00:00
|
|
|
BUILD_DEPENDS+= ssleay:\${PORTSDIR}/security/openssl \\
|
|
|
|
\${PREFIX}/lib/libssl.a:\${PORTSDIR}/security/openssl \\
|
|
|
|
\${PREFIX}/lib/libcrypto.a:\${PORTSDIR}/security/openssl
|
|
|
|
RUN_DEPENDS+= ssleay:\${PORTSDIR}/security/openssl
|
1998-09-30 18:16:08 +00:00
|
|
|
|
1999-03-19 20:46:57 +00:00
|
|
|
VERSION_MODSSL= 2.2.5
|
1998-09-30 18:16:08 +00:00
|
|
|
|
|
|
|
RESTRICTED= "Contains cryptography"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-module=ssl
|
|
|
|
CONFIGURE_ENV+= SSL_BASE='SYSTEM' PATH="\${PREFIX}/bin:\${PATH}"
|
|
|
|
|
|
|
|
PATCHDIR= \${.CURDIR}/patches.modssl
|
|
|
|
PLIST= \${PKGDIR}/PLIST.modssl
|
|
|
|
SSL= ssl
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@cd \${WRKDIR}/mod_ssl-\${VERSION_MODSSL}-\${VERSION_APACHE} \\
|
|
|
|
&& \${ECHO_MSG} "===> Applying mod_ssl-\${VERSION_MODSSL} extension" \\
|
1998-12-23 00:44:50 +00:00
|
|
|
&& ./configure --with-apache=../\${DISTNAME} --expert
|
1998-09-30 18:16:08 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@cd \${WRKSRC} \\
|
|
|
|
&& find . -type f -name "*.orig" -print | xargs \${RM} -f
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd \${WRKSRC} \\
|
1998-12-23 00:44:50 +00:00
|
|
|
&& \${ECHO_MSG} "===> Creating Dummy Certificate for Server (SnakeOil)" \\
|
|
|
|
&& \${ECHO_MSG} " [use 'make certificate' to create a real one]" \\
|
1998-09-30 18:16:08 +00:00
|
|
|
&& \${MAKE} certificate TYPE=dummy >/dev/null 2>&1
|
|
|
|
|
|
|
|
certificate:
|
|
|
|
@cd \${WRKSRC} \\
|
|
|
|
&& \${ECHO_MSG} "===> Creating Test Certificate for Server" \\
|
|
|
|
&& \${MAKE} certificate TYPE=\$(TYPE) CRT=\$(CRT) KEY=\$(KEY)
|
1998-12-23 00:44:50 +00:00
|
|
|
|
1998-09-30 18:16:08 +00:00
|
|
|
EOF
|
|
|
|
;;
|
1998-09-01 18:38:05 +00:00
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|