51 lines
981 B
Plaintext
51 lines
981 B
Plaintext
#!/bin/sh
|
|
#
|
|
# $OpenBSD: INSTALL,v 1.4 2001/08/17 21:42:01 pvalchev Exp $
|
|
#
|
|
# php4 installation
|
|
|
|
# exit on errors, use a sane path and install prefix
|
|
#
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
do_notice()
|
|
{
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To finish the install, you need to enable the php4"
|
|
echo "| module using the following command"
|
|
echo "|"
|
|
echo "| $PREFIX/sbin/php4-enable"
|
|
echo "|"
|
|
echo "| Copy the sample file below into /var/www/conf/php.ini"
|
|
echo "| ${PREFIX}/share/doc/php4/php.ini-dist"
|
|
echo "+---------------"
|
|
echo
|
|
}
|
|
|
|
# verify proper execution
|
|
#
|
|
if [ $# -ne 2 ]; then
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Verify/process the command
|
|
#
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
: nothing to pre-install for this port
|
|
;;
|
|
POST-INSTALL)
|
|
do_notice $1
|
|
;;
|
|
*)
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|