8523786faf
From Peter Avalos in PR pkg/44762 pkgsrc changes: - pkglint cleanups - set LICENSE - Add MESSAGE to mention the change in configuration file format. Upstream changes: suPHP 0.7.1 has been released. This release fixes a bug causing problems with symbol links in the script path, which was introduced with the 0.7.0 release. suPHP 0.7.0 has been released. With this release, several features that have been on the wish list for a long time, have been realized: * The module for Apache 1.3 only supported AddHandler for older releases. This has been fixed: Now you can use AddType, too. * PHP source highlighting: Files of MIME type application/x-httpd-php-source will now be shown with source highlighting. Remember to set the suPHP_PHPPath directive to enable this feature. * suPHP_AddHandler and suPHP_RemoveHandler directives can now be used on per vhost level, too. * You can configure more than one docroot and use different variables (like user name or home directory) within docroot and chroot settings. Attention: The configuration syntax for suphp.conf has slightly changed with this release. Be sure to read the documentation before upgrading, because existing configuration files will not work without changing them.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2011/04/11 19:57:54 gls Exp $
|
|
#
|
|
|
|
DISTNAME= suphp-0.7.1
|
|
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME}
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.suphp.org/download/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.suphp.org/
|
|
COMMENT= SuEXEC-like wrapper for PHP scripts
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_TOOLS+= lex
|
|
USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
GCC_REQD+= 3.0 # the C++ code uses the .at() method
|
|
CONFIGURE_ARGS+= APXS=${APXS}
|
|
CONFIGURE_ARGS+= --with-apache-user=${APACHE_USER}
|
|
CONFIGURE_ARGS+= --with-logfile=${VARBASE}/httpd/suphp_log
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
EGDIR= ${PREFIX}/share/examples/suphp
|
|
CONF_FILES= ${EGDIR}/suphp.conf ${PKG_SYSCONFDIR}/suphp.conf
|
|
|
|
USE_APR= yes
|
|
PKG_APACHE_ACCEPTED= apache2 apache22
|
|
|
|
SUBST_CLASSES+= suphp
|
|
SUBST_STAGE.suphp= post-configure
|
|
SUBST_FILES.suphp= doc/suphp.conf-example
|
|
SUBST_SED.suphp= -e "s,wwwrun,${APACHE_USER},g"
|
|
SUBST_SED.suphp+= -e "s,/var/log/suphp.log,${VARBASE}/httpd/suphp_log,g"
|
|
SUBST_SED.suphp+= -e "s,/usr/bin/php,${PREFIX}/bin/php,g"
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example ${DESTDIR}${EGDIR}/suphp.conf
|
|
|
|
.include "../../mk/apache.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|