Let's use ${LOCALBASE}/share/examples/php4/ for the example configuration

files. requested by f@obiit.org
This commit is contained in:
robert 2004-11-18 16:36:18 +00:00
parent 4b33a1c6b0
commit 18364b5cdf
4 changed files with 12 additions and 12 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.19 2004/08/03 12:54:40 espie Exp $
# $OpenBSD: Makefile,v 1.20 2004/11/18 16:36:18 robert Exp $
MULTI_PACKAGES= -pear
SUBPACKAGE?=
COMMENT= "server-side HTML-embedded scripting language"
COMMENT-pear= "base classes for common PHP tasks"
PKGNAME= php4-core-${V}
PKGNAME= php4-core-${V}p1
FULLPKGNAME-pear= php4-pear-${V}
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
@ -62,13 +62,13 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKBUILD}/.libs/libphp4.so ${PREFIX}/${APACHE_MODULE_SUBDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php4
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/php4
${INSTALL_PROGRAM} ${WRKBUILD}/sapi/cli/php ${PREFIX}/bin
.for i in dist recommended
@sed -e 's,MODULES_DIR,${MODULES_DIR},' \
-e 's,OPENBSD_INCLUDE_PATH,/pear/lib:${CHROOT_DIR}/pear/lib,' \
<${WRKSRC}/php.ini-${i} \
>${PREFIX}/share/doc/php4/php.ini-${i}
>${PREFIX}/share/examples/php4/php.ini-${i}
.endfor
@sed ${PHPXS_SUBST} <${FILESDIR}/phpxs >${PREFIX}/sbin/phpxs
@chown ${BINOWN}:${BINGRP} ${PREFIX}/sbin/phpxs

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: phpxs,v 1.4 2004/01/05 17:47:55 avsm Exp $
# $OpenBSD: phpxs,v 1.5 2004/11/18 16:36:18 robert Exp $
#
# Copyright (c) 2002-2004 Anil Madhavapeddy <anil@recoil.org>
#
@ -25,7 +25,7 @@ php_version=PHP_VERSION
php_module_path=MODULES_DIR
apache_module_path=APACHE_MODULE_DIR
php_cfg=PHP_CONFIG_FILE
php_example=TRUEPREFIX/share/doc/php4
php_example=TRUEPREFIX/share/examples/php4
php_module=${apache_module_path}/libphp4.so
showusage() {

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.4 2003/05/02 19:49:01 avsm Exp $
# $OpenBSD: INSTALL,v 1.5 2004/11/18 16:36:18 robert Exp $
#
# php4 installation
@ -23,7 +23,7 @@ do_notice()
echo "| AddType application/x-httpd-php .php"
echo "|"
echo "| Copy the config file below into ${PHP_CONFIG_FILE}"
echo "| ${PREFIX}/share/doc/php4/php.ini-recommended"
echo "| ${PREFIX}/share/examples/php4/php.ini-recommended"
echo "|"
echo "| Don't forget that the default OpenBSD httpd is chrooted"
echo "| into /var/www by default, so you may need to create support"

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.8 2004/10/02 12:42:22 robert Exp $
@comment $OpenBSD: PLIST,v 1.9 2004/11/18 16:36:18 robert Exp $
@conflict php5-core-*
bin/pear
bin/php
@ -9,6 +9,6 @@ lib/php/
lib/php/libphp4.so
@man man/man1/php.1
sbin/phpxs
share/doc/php4/
share/doc/php4/php.ini-dist
share/doc/php4/php.ini-recommended
share/examples/php4/
share/examples/php4/php.ini-dist
share/examples/php4/php.ini-recommended