1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00

Include zlib and MySQL support if ${BATCH} is defined.

Too many people are confused if MySQL isn't included in the package.
This commit is contained in:
Dirk Froemberg 2000-05-15 11:53:29 +00:00
parent 3f1d3e06a2
commit 9251f84302
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28473
3 changed files with 75 additions and 63 deletions

View File

@ -1,17 +1,15 @@
#!/bin/sh
# $FreeBSD$
if [ "${BATCH}" ]; then
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
${TOUCH} ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit
fi
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
fi
/usr/bin/dialog --title "configuration options" --clear \
--checklist "\n\
if [ "${BATCH}" ]; then
set \"zlib\" \"MySQL\"
else
/usr/bin/dialog --title "configuration options" --clear \
--checklist "\n\
Please select desired options:" -1 -1 14 \
tuning "Apache: performance tuning" OFF \
modssl "Apache: SSL support" OFF \
@ -33,22 +31,23 @@ SNMP "PHP: SNMP support" OFF \
XML "PHP: XML support" OFF \
2> /tmp/checklist.tmp.$$
retval=$?
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
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
rm -f /tmp/checklist.tmp.$$
case $retval in
0) if [ -z "$*" ]; then
echo "Nothing selected"
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
@ -203,6 +202,11 @@ certificate:
EOF
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
;;
esac
shift
done

View File

@ -1,17 +1,15 @@
#!/bin/sh
# $FreeBSD$
if [ "${BATCH}" ]; then
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
${TOUCH} ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit
fi
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
fi
/usr/bin/dialog --title "configuration options" --clear \
--checklist "\n\
if [ "${BATCH}" ]; then
set \"zlib\" \"MySQL\"
else
/usr/bin/dialog --title "configuration options" --clear \
--checklist "\n\
Please select desired options:" -1 -1 14 \
tuning "Apache: performance tuning" OFF \
modssl "Apache: SSL support" OFF \
@ -31,22 +29,23 @@ SNMP "PHP: SNMP support" OFF \
XML "PHP: XML support" OFF \
2> /tmp/checklist.tmp.$$
retval=$?
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
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
rm -f /tmp/checklist.tmp.$$
case $retval in
0) if [ -z "$*" ]; then
echo "Nothing selected"
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
@ -187,6 +186,11 @@ certificate:
EOF
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
;;
esac
shift
done

View File

@ -1,17 +1,15 @@
#!/bin/sh
# $FreeBSD$
if [ "${BATCH}" ]; then
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
${TOUCH} ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit
fi
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
fi
/usr/bin/dialog --title "configuration options" --clear \
--checklist "\n\
if [ "${BATCH}" ]; then
set \"zlib\" \"MySQL\"
else
/usr/bin/dialog --title "configuration options" --clear \
--checklist "\n\
Please select desired options:" -1 -1 14 \
tuning "Apache: performance tuning" OFF \
modssl "Apache: SSL support" OFF \
@ -31,22 +29,23 @@ SNMP "PHP: SNMP support" OFF \
XML "PHP: XML support" OFF \
2> /tmp/checklist.tmp.$$
retval=$?
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
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
rm -f /tmp/checklist.tmp.$$
case $retval in
0) if [ -z "$*" ]; then
echo "Nothing selected"
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
@ -187,6 +186,11 @@ certificate:
EOF
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
;;
esac
shift
done