head	1.47;
access;
symbols
	RELEASE_8_3_0:1.43
	RELEASE_9_0_0:1.43
	RELEASE_7_4_0:1.41
	RELEASE_8_2_0:1.41
	RELEASE_6_EOL:1.39
	RELEASE_8_1_0:1.36
	RELEASE_7_3_0:1.33
	RELEASE_8_0_0:1.33
	RELEASE_7_2_0:1.31
	RELEASE_7_1_0:1.28
	RELEASE_6_4_0:1.28
	RELEASE_5_EOL:1.27
	RELEASE_7_0_0:1.23
	RELEASE_6_3_0:1.23
	PRE_XORG_7:1.23
	RELEASE_4_EOL:1.23
	RELEASE_6_2_0:1.23
	RELEASE_6_1_0:1.20
	RELEASE_5_5_0:1.20
	RELEASE_6_0_0:1.19
	RELEASE_5_4_0:1.19
	RELEASE_4_11_0:1.19
	RELEASE_5_3_0:1.18
	RELEASE_4_10_0:1.12
	RELEASE_5_2_1:1.6
	RELEASE_5_2_0:1.6
	RELEASE_4_9_0:1.4;
locks; strict;
comment	@# @;


1.47
date	2012.11.17.06.03.06;	author svnexp;	state Exp;
branches;
next	1.46;

1.46
date	2012.09.22.21.15.50;	author ohauer;	state Exp;
branches;
next	1.45;

1.45
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.44;

1.44
date	2012.06.20.01.30.36;	author fluffy;	state Exp;
branches;
next	1.43;

1.43
date	2011.08.20.17.27.51;	author ohauer;	state Exp;
branches;
next	1.42;

1.42
date	2011.02.22.00.05.41;	author ohauer;	state Exp;
branches;
next	1.41;

1.41
date	2010.12.22.20.05.48;	author ade;	state Exp;
branches;
next	1.40;

1.40
date	2010.12.04.07.34.00;	author ade;	state Exp;
branches;
next	1.39;

1.39
date	2010.10.16.11.52.43;	author ade;	state Exp;
branches;
next	1.38;

1.38
date	2010.10.05.19.57.53;	author ade;	state Exp;
branches;
next	1.37;

1.37
date	2010.09.15.18.35.21;	author ade;	state Exp;
branches;
next	1.36;

1.36
date	2010.06.06.03.37.03;	author yzlin;	state Exp;
branches;
next	1.35;

1.35
date	2010.05.13.00.54.57;	author pgollucci;	state Exp;
branches;
next	1.34;

1.34
date	2010.05.12.13.21.12;	author yzlin;	state Exp;
branches;
next	1.33;

1.33
date	2009.08.02.19.36.03;	author mezz;	state Exp;
branches;
next	1.32;

1.32
date	2009.07.29.12.59.14;	author yzlin;	state Exp;
branches;
next	1.31;

1.31
date	2009.03.20.07.33.13;	author lwhsu;	state Exp;
branches;
next	1.30;

1.30
date	2009.02.09.21.04.05;	author miwi;	state Exp;
branches;
next	1.29;

1.29
date	2008.11.20.11.06.24;	author koitsu;	state Exp;
branches;
next	1.28;

1.28
date	2008.08.20.00.57.30;	author ade;	state Exp;
branches;
next	1.27;

1.27
date	2008.03.30.22.49.06;	author koitsu;	state Exp;
branches;
next	1.26;

1.26
date	2008.03.26.16.41.30;	author koitsu;	state Exp;
branches;
next	1.25;

1.25
date	2008.03.26.16.25.20;	author koitsu;	state Exp;
branches;
next	1.24;

1.24
date	2007.12.11.20.38.58;	author koitsu;	state Exp;
branches;
next	1.23;

1.23
date	2006.05.10.22.23.14;	author pav;	state Exp;
branches;
next	1.22;

1.22
date	2006.05.06.14.31.29;	author ale;	state Exp;
branches;
next	1.21;

1.21
date	2006.04.08.12.56.16;	author pav;	state Exp;
branches;
next	1.20;

1.20
date	2005.12.04.00.18.15;	author clement;	state Exp;
branches;
next	1.19;

1.19
date	2004.10.28.18.29.16;	author pav;	state Exp;
branches;
next	1.18;

1.18
date	2004.08.12.09.31.51;	author vs;	state Exp;
branches;
next	1.17;

1.17
date	2004.07.27.07.48.41;	author vs;	state Exp;
branches;
next	1.16;

1.16
date	2004.07.23.07.29.47;	author arved;	state Exp;
branches;
next	1.15;

1.15
date	2004.07.15.22.13.36;	author clement;	state Exp;
branches;
next	1.14;

1.14
date	2004.06.29.12.21.20;	author clement;	state Exp;
branches;
next	1.13;

1.13
date	2004.06.29.10.40.08;	author clement;	state Exp;
branches;
next	1.12;

1.12
date	2004.03.20.12.38.50;	author clement;	state Exp;
branches;
next	1.11;

1.11
date	2004.02.25.11.47.24;	author clement;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.04.05.09.36;	author marcus;	state Exp;
branches;
next	1.9;

1.9
date	2004.01.14.20.28.58;	author clement;	state Exp;
branches;
next	1.8;

1.8
date	2004.01.13.15.04.51;	author clement;	state Exp;
branches;
next	1.7;

1.7
date	2004.01.11.15.53.55;	author clement;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.07.09.12.58;	author marcus;	state Exp;
branches;
next	1.5;

1.5
date	2003.10.07.00.49.16;	author leeym;	state Exp;
branches;
next	1.4;

1.4
date	2003.08.25.12.13.36;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2003.07.17.04.35.53;	author daichi;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.30.04.56.54;	author daichi;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.25.06.50.52;	author daichi;	state Exp;
branches;
next	;


desc
@@


1.47
log
@Switch exporter over
@
text
@# Created by: Clement Laforet <sheepkiller@@cultdeadsheep.org>
# $FreeBSD: head/www/suphp/Makefile 304723 2012-09-22 21:15:50Z ohauer $

PORTNAME=	suphp
PORTVERSION=	0.7.1
PORTREVISION=	5
CATEGORIES=	www
MASTER_SITES=	http://www.suphp.org/download/ \
		${MASTER_SITE_LOCAL:S|%SUBDIR%|koitsu|}

MAINTAINER=	yzlin@@FreeBSD.org
COMMENT=	Securely execute PHP scripts under Apache

GNU_CONFIGURE=	yes
USE_AUTOTOOLS=	aclocal:env automake:env autoconf:env libtool:env

# Maintainer has not tested suPHP 0.6.x on Apache 1.3.
USE_APACHE=	22
CFLAGS+=	-I${LOCALBASE}/include
USE_CSTD=	gnu89
USE_PHP=	yes
WANT_PHP_CGI=	yes

MYPORTDOCS=	apache/CONFIG apache/INSTALL apache/README CONFIG LICENSE INSTALL README

CONFIGURE_ARGS=	CFLAGS="${CFLAGS}" --with-apxs=${APXS}

# WITH_SETID_MODE should be a value of "owner", "force", or "paranoid".
# It's important that you understand the differences between each mode.
# See /usr/local/share/doc/suphp/INSTALL for details.
#
WITH_SETID_MODE?=	owner
CONFIGURE_ARGS+=	--with-setid-mode=${WITH_SETID_MODE}

.include <bsd.port.pre.mk>

CONFIGURE_ARGS+=	--with-apr=${LOCALBASE}

AUTOTOOLSFILES=	aclocal.m4

post-patch:
	@@${REINPLACE_CMD} -e 's|2.61|%%AUTOCONF_VERSION%%|g' \
			  -e 's|1.10.1|%%AUTOMAKE_APIVER%%|g' \
			  -e 's|1.10|%%AUTOMAKE_VERSION%%|g' \
			  ${WRKSRC}/aclocal.m4
	@@${CHMOD} 755 ${WRKSRC}/config/install-sh

post-install:
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
	@@${MKDIR} ${DOCSDIR}/apache
.for f in ${MYPORTDOCS}
	@@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
.endfor
.endif
.if !defined(WITH_DEBUG)
	@@${STRIP_CMD} ${PREFIX}/sbin/suphp
.endif
	@@${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example ${PREFIX}/etc/suphp.conf-example
	@@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/mod_${MODULENAME}.so"
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.46
log
@SVN rev 304723 on 2012-09-22 21:15:50Z by ohauer

- USE_APACHE= s/22+/22/
- adopt new Makefile header

Port build fails on local exp-run with apache24 with
 error: 'conn_rec' has no member named 'remote_ip'

or various other apache22 specific functions/parameters

with hat apache@@
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.45
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d1 1
a1 4
# New ports collection makefile for:	suphp
# Date created:		15 September 2002
# Whom:			Clement Laforet <sheepkiller@@cultdeadsheep.org>
#
a2 1
#
d18 1
a18 1
USE_APACHE=	22+
@


1.44
log
@- Unbroke with clang/gcc47+ by use restrictive C++ construction
- Declare that code use gnu89 style
- No PORTREVISION bump, users with base gcc not affected

PR:		168579
Submitted by:	myself
Approved by:	maintainer timeout (> 2 weeks)
Obtained from:	PkgSrc repo
@
text
@d22 1
a22 1
USE_APACHE=	20+
@


1.43
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d24 1
@


1.42
log
@  - fix pkg-plist if installed from port (leftover in httpd.conf)
  - remove MD5 from distfile

PR:		ports/154754
Submitted by:	myself
Approved by:	maintainer timeout
@
text
@d10 1
a10 1
PORTREVISION=	4
d22 1
a22 1
USE_APACHE=	2.0+
@


1.41
log
@Sync to final (for now) bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION=	3
d63 1
@


1.40
log
@Sync to new bsd.autotools.mk
@
text
@d42 2
d45 4
a48 2
	@@${REINPLACE_CMD} -e 's|2.61|2.68|g' ${WRKSRC}/aclocal.m4
	@@${REINPLACE_CMD} -e 's|1.10.1|1.11.1|g' ${WRKSRC}/aclocal.m4
@


1.39
log
@Punt autoconf267->autoconf268
@
text
@d19 1
a19 1
USE_AUTOTOOLS=	aclocal:111:env automake:111:env autoconf:268:env libtool:22:env
@


1.38
log
@Round one migration of ports from automake{19,110} to automake111
@
text
@d19 1
a19 1
USE_AUTOTOOLS=	aclocal:111:env automake:111:env autoconf:267:env libtool:22:env
d43 1
a43 1
	@@${REINPLACE_CMD} -e 's|2.61|2.67|g' ${WRKSRC}/aclocal.m4
@


1.37
log
@Autotools update.   Read ports/UPDATING 20100915 for details.

Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
@
text
@d19 1
a19 1
USE_AUTOTOOLS=	aclocal:110:env automake:110:env autoconf:267:env libtool:22:env
d44 1
a44 1
	@@${REINPLACE_CMD} -e 's|1.10.1|1.10.3|g' ${WRKSRC}/aclocal.m4
@


1.36
log
@- Work with apache2/apr changes

PR:		ports/146914
Submitted by:	Anish Mistry <amistry AT am-productions.biz>
@
text
@d10 1
a10 1
PORTREVISION=	2
d19 1
a19 1
USE_AUTOTOOLS=	aclocal:110:env automake:110:env autoconf:262:env libtool:22:env
d43 2
a44 1
	@@${REINPLACE_CMD} -e 's|2.61|2.62|g' ${WRKSRC}/aclocal.m4
@


1.35
log
@- Chase the www/apache20 conversion to devel/pcre only.

Reported by:    pointyhat via pav, erwin
With Hat:       apache@@
@
text
@d10 1
a10 1
PORTREVISION=	1
a39 6
# Apache 2.0 (www/apache2) has apr-config in LOCALBASE/lib/apache2, while
# Apache 2.2 (www/apache22) has apr-1-config in LOCALBASE/bin.
#
.if ${APACHE_VERSION} == 20
CONFIGURE_ARGS+=	--with-apr=${LOCALBASE}/lib/apache2
.else
a40 1
.endif
@


1.34
log
@- Fix build error

Approved by:	lwhsu/rafan (mentors, implicit)
Reported by:	pointyhat
@
text
@d23 1
d29 1
a29 1
CONFIGURE_ARGS=	CFLAGS=-I${LOCALBASE}/include --with-apxs=${APXS}
@


1.33
log
@-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
@
text
@d10 1
d28 1
a28 1
CONFIGURE_ARGS=	--with-apxs=${APXS}
@


1.32
log
@- Change to my mail address at FreeBSD.org

Approved by:	lwhsu (mentor)
@
text
@d18 1
a18 1
USE_AUTOTOOLS=	aclocal:110:env automake:110:env autoconf:262:env libtool:15:env
@


1.31
log
@- Update to 0.7.1

PR:		ports/132768
Submitted by:	Yi-Jheng Lin <yzlin AT cs.nctu.edu.tw> (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=	yzlin@@cs.nctu.edu.tw
@


1.30
log
@- Update to 0.7.0
- Pass maintainership to submitter

PR:		131451
Submitted by:	Yi-Jheng Lin <yzlin@@cs.nctu.edu.tw>
@
text
@d9 1
a9 1
PORTVERSION=	0.7.0
@


1.29
log
@Maintainer moved to ports@@FreeBSD.org.
@
text
@d9 1
a9 1
PORTVERSION=	0.6.3
d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
a28 1

a35 1

a48 1
	@@${REINPLACE_CMD} -e 's|1.10|1.10.1|g' ${WRKSRC}/aclocal.m4
d56 1
a56 1
	@@${CP} -Rfp ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
d62 1
a62 1
	@@${CP} -fp ${WRKSRC}/doc/suphp.conf-example ${PREFIX}/etc/suphp.conf-example
@


1.28
log
@Conversion from (now defunct) autoconf-2.61 to autoconf-2.62

Tested by:	exp build run (erwin)
@
text
@d14 1
a14 1
MAINTAINER=	koitsu@@FreeBSD.org
@


1.27
log
@- Update to 0.6.3, to address security holes pertaining to symlinks
  when running in "owner" mode (the default).
  http://lists.marsching.biz/pipermail/suphp/2008-March/001750.html

Security:	http://lists.marsching.biz/pipermail/suphp/2008-March/001750.html
@
text
@d18 1
a18 1
USE_AUTOTOOLS=	aclocal:19:env automake:19:env autoconf:261:env libtool:15:env
d49 4
@


1.26
log
@* Pipe is not slash.  *sigh*
@
text
@d9 1
a9 1
PORTVERSION=	0.6.2
@


1.25
log
@* Maintainer freebsd@@jdc.parodius.com --> koitsu@@FreeBSD.org (I'm both)
* Add some redundancy fetch locations to MASTER_SITE_LOCAL.
@
text
@d12 1
a12 1
		${MASTER_SITE_LOCAL:S/%SUBDIR%|koitsu|}
@


1.24
log
@Upgrade to suPHP 0.6.2.  This upgrade is quite major; it introduces
numerous features necessary for hosting, adds the use of a configuration
file (vs. compile-time settings) for configuration details, and is
presently supported by the software author.

Changes to httpd.conf are required for this to work, otherwise PHP
content is offered for download and not parsed.  pkg-message contains
full migration details, but here's the simple version:

suPHP 0.5.2                            suPHP 0.6.2
===========                            ===========
AddType application/x-httpd-php .php   AddType x-httpd-php .php
AddHandler x-httpd-php .php            suPHP_AddHandler x-httpd-php

Tested on RELENG_6 and RELENG_7, using Apache 2.0 and 2.2, with the
help of the PR submitter.

Testing for Apache 1.3 was not performed, thus the port requires the
use of 2.0 or later.  suPHP 0.6.2 does support Apache 1.3, but I'll
need someone running 1.3 to work with me on fixing the port to support
it, if desired.

PR:		ports/116281
Submitted by:	Vladimir Korkodinov <viper@@perm.raid.ru>
@
text
@d12 1
a12 1
		ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/koitsu/
d14 1
a14 1
MAINTAINER=	freebsd@@jdc.parodius.com
@


1.23
log
@- Fix for recent PHP changes, correct path to php-cgi binary
- Add user-overridable variable SUPHP_PATH
- Cosmetics

PR:		ports/97047
Submitted by:	Jeremy Chadwick <freebsd@@jdc.parodius.com> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	0.5.2
PORTREVISION=	2
d11 2
a12 1
MASTER_SITES=	http://www.suphp.org/download/
d15 1
a15 1
COMMENT=	Securely execute PHP scripts
d18 4
a22 1
USE_APACHE=	1.3+
d25 4
a28 7
WITH_LOGFILE?=	/var/log/suphp.log
PHP_PATH?=	${LOCALBASE}/bin/php-cgi
MIN_UID?=	80
MIN_GID?=	80
WITH_SETID_MODE?=	owner
MYPORTDOCS=	apache/CONFIG apache/INSTALL apache/README apache/LICENSE LICENSE INSTALL README
LANG=		en de
d30 3
a32 12
CONFIGURE_ARGS+=	--with-php=${PHP_PATH} \
			--with-logfile=${WITH_LOGFILE} \
			--with-apache-user=${WWWOWN} \
			--with-min-gid=${MIN_UID} \
			--with-min-uid=${MIN_GID} \
			--with-apxs=${APXS}

# This is the default of the PATH environment variable when scripts
# are run under suphp.  This path is normally hard-coded into suphp.c.
# Many people prefer to have /usr/local and other utilities available
# to php scripts.
# Make sure the path is colon-delimited!
d34 2
a35 1
SUPHP_PATH?=		/bin:/usr/bin
a36 15
## Available knobs:
##   WITHOUT_CHECKPATH:    disable check if script resides in DOCUMENT_ROOT
.if defined(WITHOUT_CHECKPATH)
CONFIGURE_ARGS+=	--disable-checkpath
.endif
##   WITHOUT_CHECKUID:     accept UIDs that are not listed in /etc/passwd
.if defined(WITHOUT_CHECKUID)
CONFIGURE_ARGS+=	--disable-checkuid
.endif
##   WITHOUT_CHECKGID:     accept GIDs that are not listed in /etc/group
.if defined(WITHOUT_CHECKGID)
CONFIGURE_ARGS+=	--disable-checkgid
.endif
##   WITH_SETID_MODE:      mode to use for setting UID/GID.
CONFIGURE_ARGS+=	--with-setid-mode=${WITH_SETID_MODE}
d40 8
a47 5
show-options:
	@@${SED} -ne 's/^##//p' ${.CURDIR}/Makefile

pre-everything:: show-options
	@@${DO_NADA}
a48 3
post-patch:
	@@${REINPLACE_CMD} -e 's|%%SUPHP_PATH%%|${SUPHP_PATH}|g' \
		${WRKSRC}/src/suphp.c
d53 3
a55 5
.for l in ${LANG}
	@@${MKDIR} ${DOCSDIR}/${l}/apache
.       for f in ${MYPORTDOCS}
	@@${CP} -Rfp ${WRKSRC}/doc/${l}/${f} ${DOCSDIR}/${l}/${f}
.       endfor
d58 4
@


1.22
log
@Fix or remove obsolate or broken ways to depend on php.
@
text
@d10 1
a10 1
PORTREVISION=	1
d15 1
a15 1
COMMENT=	Securely execute ~user PHP scripts
d23 1
a23 1
PHP_PATH?=	${LOCALBASE}/bin/php
d37 8
d69 4
@


1.21
log
@- Add support for Apache 2.2

PR:		ports/94034
Submitted by:	Craig Boston <craig@@yekse.gank.org>
Approved by:	Jeremy Chadwick <freebsd@@jdc.parodius.com> (maintainer)
@
text
@a20 1
CONFLICTS=	mod_php4-4* php-4.* mod_php5-5* php-5.*
@


1.20
log
@- prepare removal of www/apache2 in favor of www/apache20 for naming
  consistency
- add entries in UPDATING (for apache22 too)

PR:		ports/78119
Repocopied by:	marcus
@
text
@d19 1
a19 1
USE_APACHE=	yes
a55 7
.if exists(${LOCALBASE}/include/apache2/apr.h) || defined(WITH_APACHE2)
APACHE_PORT=	www/apache20
PLIST_SUB+=	MODULEDIR="libexec/apache2/"
.else
PLIST_SUB+=	MODULEDIR="libexec/apache/"
.endif

d59 2
a60 2
pre-everything::
	@@${MAKE} show-options
@


1.19
log
@- Avoid make -C fixing build on FreeBSD 4.8 and older
- Expand CONFLICTS
- Style

PR:		ports/73226
Submitted by:	Jeremy Chadwick <freebsd@@jdc.parodius.com> (maintainer)
@
text
@d57 1
a57 1
APACHE_PORT=	www/apache2
@


1.18
log
@- Fix "make -C"-issues
- Unregister from Apache through apxs on deinstall
- Cleanup

PR:		ports/70345
Submitted by:	Jeremy Chadwick (maintainer)
@
text
@d21 1
a21 1
CONFLICTS=	mod_php4-4* php-4.*
d28 1
a28 2
MYPORTDOCS=	apache/CONFIG apache/INSTALL apache/README apache/LICENSE \
		LICENSE	INSTALL README
@


1.17
log
@Needs 'make -C', available since 4.9.

PR:		ports/69624
Submitted by:	Jeremy Chadwick (maintainer)
@
text
@d10 1
d15 1
a15 1
COMMENT=	A combination which provides a wrapper for PHP
a17 1
USE_GMAKE=	yes
d19 1
a20 1
USE_APACHE=	yes
d23 1
a23 1
LOGFILE?=	/var/log/suphp.log
a24 1
APACHE_USER?=	${WWWOWN}
d33 2
a34 2
			--with-logfile=${LOGFILE} \
			--with-apache-user=${APACHE_USER} \
d40 1
a40 1
##   WITHOUT_CHECKPATH: disable check if script resides in DOCUMENT_ROOT
d44 1
a44 1
##   WITHOUT_CHECKUID: accept UIDs that are not listed in /etc/passwd
d48 1
a48 1
##   WITHOUT_CHECKGID: accept GIDs that are not listed in /etc/group
d52 1
a52 1
##   WITH_SETID_MODE: Mode to use for setting UID/GID.
a55 8

##
## Sanity check; -C flag for make(1) was added in 4.8, but was not
## fully fixed until shortly before 4.9-RELEASE.  We need -C !
##
.if ${OSVERSION} < 490000
BROKEN=	Please upgrade to FreeBSD 4.9-RELEASE or higher \(see PR bin/50981\).
.endif
@


1.16
log
@Change logic of the LOGFILE path:
	Assuming the user DOES NOT specify the
        LOG_PATH variable upon build (by default, it's empty).
	The logfile will end up in / (a.k.a. /suphp.log)

PR:		69334
Submitted by:	Jeremy Chadwick <freebsd@@jdc.parodius.com>
@
text
@d17 1
d57 8
@


1.15
log
@- Update to 0.5.2
  Add a workaroung to make it work with apache 2 (due to an apr bug)
  (so be careful)
- Pass maintainership to submitter

PR:             ports/69048
Submitted by:   Jeremy Chadwick <freebsd@@jdc.parodius.com>
@
text
@d22 1
a22 2
LOG_PATH?=	${WITH_LOGPATH}
WITH_LOGNAME?=	suphp.log
d33 1
a33 1
			--with-logfile=${LOG_PATH}/${WITH_LOGNAME} \
a53 3
##   WITH_LOGPATH (formerly known as LOG_PATH): logging directory
##   (default: /var/log)
##   WITH_LOGNAME: log file name (default suphp.log)
@


1.14
log
@- s/--enable-setid-mode/--with-setid-mode/

Reported by:	Andries Filmer <andries@@netexpo.nl>
@
text
@d9 1
a9 1
PORTVERSION=	0.5.1
d13 1
a13 1
MAINTAINER=	clement@@FreeBSD.org
a15 2
RUN_DEPENDS=	${LOCALBASE}/bin/php:${PORTSDIR}/www/php4-cgi

d17 2
a18 1
USE_GMAKE=	yes
d55 1
a55 1
##   WITH_LOGPATH (formerly known as LOG_PATH): logging directory 
d58 1
@


1.13
log
@- Add WITH_LOGNAME and WITH_LOGPATH knobs.
  I kept LOG_NAME to not break POLA (Will be removed for next release).

Requested by:	Dennis Koster <dennis@@phlex.net>
@
text
@d55 1
a55 1
CONFIGURE_ARGS+=	--enable-setid-mode=${WITH_SETID_MODE}
@


1.12
log
@Fix mispelled CONFIGURE_ARGS option

Spotted by:	Johan Mulder <johan@@localhost.nl>
@
text
@d23 2
a24 1
LOG_PATH?=	/var/log
d35 1
a35 1
			--with-logfile=${LOG_PATH}/suphp.log \
d56 3
a58 1

@


1.11
log
@- Update to 0.5.1

This version is mainly a bugfix release, fixing a bug causing a
segmentation fault in the Apache 2 module and improving the handling
of environment variables. Instead of setting unneeded / unwanted
environment variables to an empty string, they are now completely
removed from the environment.
@
text
@d54 1
a54 1
CONFIGURE_ARGS+=	--enable-setid=${WITH_SETID_MODE}
@


1.10
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 1)
@
text
@d9 1
a9 2
PORTVERSION=	0.5
PORTREVISION=	2
d29 3
d53 1
a53 1
## WITH_SETID_MODE: Mode to use for setting UID/GID.
d74 6
a79 1
	@@${CP} -Rfp ${WRKSRC}/doc/* ${DOCSDIR}
@


1.9
log
@- Fix suPHP.
- Bump PORTREVISION

Noticed by:         Starhost.nl - N.Elsten <elsten@@starhost.nl>
Approved by:        erwin (mentor) (implicitly)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.8
log
@- Update my email address

Approved and reviewed by:    erwin (mentor)
@
text
@d10 1
d27 2
a28 2
MIN_UID?=	${WWWOWN}
MIN_GID?=	${WWWGRP}
@


1.7
log
@Update to 0.5
now suPHP supports apache2.

Approved by:    erwin (mentor) (implicitly)
@
text
@d13 1
a13 1
MAINTAINER=	sheepkiller@@cultdeadsheep.org
@


1.6
log
@Use the new Apache bits from bsd.port.mk.

Submitted by:	dinoex
@
text
@d9 1
a9 1
PORTVERSION=	0.3.1
a15 1
BUILD_DEPENDS=	${APXS}:${PORTSDIR}/${APACHE_PORT}
d18 1
a18 1
HAS_CONFIGURE=	yes
d20 2
a21 1
CONFLICTS=	mod_php4-4*
d25 4
a28 1
APACHE_USER?=	www
d33 2
a34 2
			--with-min-gid=80 \
			--with-min-uid=80 \
d50 2
d55 5
a59 2
.if exists(${LOCALBASE}/include/apache2/apr.h)
BROKEN=			"Doesn't work with Apache 2"
d63 1
a63 1
	@@${EGREP} '^##' ${.CURDIR}/Makefile | ${SED} 's/##//'
a66 3

post-extract:
	@@${CHMOD} 755 ${WRKSRC}/${CONFIGURE_SCRIPT}
@


1.5
log
@Update to 0.3.1

PR:		57681
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org>
Release
@
text
@d16 1
a16 1
BUILD_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
a22 1
APXS?=		${LOCALBASE}/sbin/apxs
@


1.4
log
@[update] www/suphp: update to 0.3 and fix a security leak introduced with previous patch

	- update to 0.3
	- add a workaround to don't use getpwuid to performs check for apache user (since 4.x
	  doesn't support getpwuid_r).
	- use %%DOCSDIR%%

PR:		ports/55952
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org>
@
text
@d9 1
a9 1
PORTVERSION=	0.3
d52 1
a52 1
BROKEN=                "Doesn't work with Apache 2"
d60 3
@


1.3
log
@fix www/suphp:
  - fix critical problem, due to wrong dependency.
    lang/php4-cli -> www/php4-cgi

PR:		54558
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	0.2.3
PORTREVISION=	1
d14 1
a14 1
COMMENT=	suPHP is a combination which provides a wrapper for PHP
d19 3
a21 1
USE_REINPLACE=	yes
a22 1
MAKE_ARGS+=	APXS="${APXS}"
a23 2
WWW_USER?=	www
WWW_GROUP?=	www
d26 22
d51 2
a52 2
.if exists(${LOCALBASE}/libexec/apache/libphp4.so)
IGNORE="suPHP conflicts with mod_php4. It works only with php4-cgi"
d55 2
a56 32
pre-configure:
	@@${ECHO}
	@@${ECHO} "*-------------------------------------------------------------*"
	@@${ECHO} " Options :"
	@@${ECHO} "     - WWW_USER = Apache's User (default www)"
	@@${ECHO} "     - Define CHECK_PATH, to enable suExec-like path checking"
	@@${ECHO} "       (based on DocumentRoot directive)."
	@@${ECHO} "     - LOG_PATH=/path/to/your/logs. Default /var/log/."
	@@${ECHO} "     - PHP_PATH=/path/to/bin/php. Default ${LOCALBASE}/bin/php."
	@@${ECHO} "*-------------------------------------------------------------*"
	@@${ECHO}

do-configure:
	@@${ECHO} "Setting User to : ${WWW_USER}"
	@@${REINPLACE_CMD} -e 's!OPT_APACHE_USER "wwwrun"!OPT_APACHE_USER "${WWW_USER}"!' \
		${WRKSRC}/config.h
	@@${ECHO} "Setting Group to : ${WWW_GROUP}"
	@@${REINPLACE_CMD} -e 's!OPT_APACHE_GROUP "wwwrun"!OPT_APACHE_GROUP "${WWW_USER}"!' \
		${WRKSRC}/config.h
	@@${ECHO} "Setting checkpath. (if enabled)"
.if !defined(CHECK_PATH)
	@@${REINPLACE_CMD} -e 's!#define OPT_CHECKPATH!/*#define OPT_CHECKPATH*/!' \
		${WRKSRC}/config.h
.endif
	@@${ECHO} "Setting logs path"
	@@${REINPLACE_CMD} -e 's,OPT_LOGFILE "/opt/apache/var/logs/suphp_log",OPT_LOGFILE "${LOG_PATH}/suphp_log",' \
		${WRKSRC}/config.h
	 @@${ECHO} "Setting php path"
	@@${REINPLACE_CMD} -e 's,OPT_PATH_TO_PHP "/usr/bin/php",OPT_PATH_TO_PHP "${PHP_PATH}",' \
		${WRKSRC}/config.h
	@@${ECHO} "Setting suphp path in mod_suphp"
	@@${REINPLACE_CMD} -e "s,/usr/sbin/suphp,${PREFIX}/sbin/suphp," ${WRKSRC}/apache/mod_suphp.c
d58 2
a59 2
post-build:
	@@(cd ${WRKSRC}/apache && ${APXS} -c mod_suphp.c) 
a61 1
	@@(cd ${WRKSRC}/apache && ${APXS} -i -a -n suphp ${WRKSRC}/apache/mod_suphp.so)
d63 2
a64 14
	@@${MKDIR} ${DOCSDIR} ${DOCSDIR}/apache ${DOCSDIR}/de-doc ${DOCSDIR}/de-doc/apache
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/apache/CONFIG ${DOCSDIR}/apache
	${INSTALL_DATA} ${WRKSRC}/apache/README ${DOCSDIR}/apache
	${INSTALL_DATA} ${WRKSRC}/apache/INSTALL ${DOCSDIR}/apache
	${INSTALL_DATA} ${WRKSRC}/apache/LICENSE ${DOCSDIR}/apache
	${INSTALL_DATA} -d ${WRKSRC}/de-doc/ ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/de-doc/README.de ${DOCSDIR}/de-doc/
	${INSTALL_DATA} ${WRKSRC}/de-doc/INSTALL.de ${DOCSDIR}/de-doc/
	${INSTALL_DATA} ${WRKSRC}/de-doc/apache/README.de ${DOCSDIR}/de-doc/apache
	${INSTALL_DATA} ${WRKSRC}/de-doc/apache/INSTALL.de ${DOCSDIR}/de-doc/apache
	${INSTALL_DATA} ${WRKSRC}/de-doc/apache/CONFIG.de ${DOCSDIR}/de-doc/apache
@


1.2
log
@update www/suphp: 0.2.2 --> 0.2.3
    * update suphp to 0.2.3
    * fix bento build (apxs related problem)
    * Separate build/install stages for mod_suphp

PR:		53873
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org>
Pointed out by:	bento via kris
@
text
@d10 1
d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/bin/php:${PORTSDIR}/lang/php4-cli
d32 1
a32 1
IGNORE="suPHP conflicts with mod_php4. It works only with php4-cli"
@


1.1
log
@Add suphp 0.2.2,
suPHP is a combination which provides a wrapper
for PHP.

PR:		42790
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org>
@
text
@d9 1
a9 2
PORTVERSION=	0.2.2
PORTREVISION=	1
d17 1
a17 1
RUN_DEPENDS=	${LOCALBASE}/bin/php:${PORTSDIR}/lang/php4
a19 1
HAS_CONFIGURE=	no
d28 6
a36 2
	@@${ECHO} " suPHP conflicts with mod_php4. It works only with php command"
	@@${ECHO} " line binairy."
d67 2
a68 2
pre-install:
	${APXS} -i -a -c -n suphp ${WRKSRC}/apache/mod_suphp.c
d71 1
a87 1
	@@${RM} mod_suphp.o
d90 1
a90 1
.include <bsd.port.mk>
@

