head	1.25;
access;
symbols
	RELEASE_8_3_0:1.22
	RELEASE_9_0_0:1.19
	RELEASE_7_4_0:1.18
	RELEASE_8_2_0:1.18
	RELEASE_6_EOL:1.18
	RELEASE_8_1_0:1.17
	RELEASE_7_3_0:1.17
	RELEASE_8_0_0:1.16
	RELEASE_7_2_0:1.15
	RELEASE_7_1_0:1.14
	RELEASE_6_4_0:1.14
	RELEASE_5_EOL:1.14
	RELEASE_7_0_0:1.13
	RELEASE_6_3_0:1.13
	PRE_XORG_7:1.13
	RELEASE_4_EOL:1.12
	RELEASE_6_2_0:1.12
	RELEASE_6_1_0:1.11
	RELEASE_5_5_0:1.11
	RELEASE_6_0_0:1.10
	RELEASE_5_4_0:1.9
	RELEASE_4_11_0:1.9
	RELEASE_5_3_0:1.9
	RELEASE_4_10_0:1.7
	RELEASE_5_2_1:1.7
	RELEASE_5_2_0:1.7
	RELEASE_4_9_0:1.6
	RELEASE_5_1_0:1.6
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1;
locks; strict;
comment	@# @;


1.25
date	2012.11.17.06.02.46;	author svnexp;	state Exp;
branches;
next	1.24;

1.24
date	2012.09.24.20.55.01;	author ohauer;	state Exp;
branches;
next	1.23;

1.23
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.22;

1.22
date	2012.03.13.16.15.28;	author pgollucci;	state Exp;
branches;
next	1.21;

1.21
date	2012.03.08.18.45.30;	author pgollucci;	state Exp;
branches;
next	1.20;

1.20
date	2012.01.01.16.47.40;	author ohauer;	state Exp;
branches;
next	1.19;

1.19
date	2011.08.20.17.27.50;	author ohauer;	state Exp;
branches;
next	1.18;

1.18
date	2010.09.10.03.51.09;	author pgollucci;	state Exp;
branches;
next	1.17;

1.17
date	2009.10.12.19.55.37;	author lth;	state Exp;
branches;
next	1.16;

1.16
date	2009.06.19.09.49.57;	author lth;	state Exp;
branches;
next	1.15;

1.15
date	2009.03.28.20.45.10;	author skv;	state Exp;
branches;
next	1.14;

1.14
date	2008.04.17.14.29.43;	author araujo;	state Exp;
branches;
next	1.13;

1.13
date	2007.02.20.05.33.40;	author kuriyama;	state Exp;
branches;
next	1.12;

1.12
date	2006.05.02.08.52.30;	author lth;	state Exp;
branches;
next	1.11;

1.11
date	2005.10.06.14.09.56;	author lth;	state Exp;
branches;
next	1.10;

1.10
date	2005.04.30.11.10.25;	author lth;	state Exp;
branches;
next	1.9;

1.9
date	2004.08.06.17.37.00;	author leeym;	state Exp;
branches;
next	1.8;

1.8
date	2004.06.01.12.32.32;	author lth;	state Exp;
branches;
next	1.7;

1.7
date	2003.10.30.13.04.22;	author foxfair;	state Exp;
branches;
next	1.6;

1.6
date	2003.05.21.10.43.18;	author tobez;	state Exp;
branches;
next	1.5;

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

1.4
date	2003.04.11.02.17.22;	author leeym;	state Exp;
branches;
next	1.3;

1.3
date	2003.03.01.01.32.56;	author leeym;	state Exp;
branches;
next	1.2;

1.2
date	2003.02.21.14.01.26;	author knu;	state Exp;
branches;
next	1.1;

1.1
date	2002.03.25.13.42.29;	author kuriyama;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Switch exporter over
@
text
@# Created by: Lars Thegler <lars@@thegler.dk>
# $FreeBSD: head/www/p5-CGI-SpeedyCGI/Makefile 304797 2012-09-24 20:55:01Z ohauer $

PORTNAME=	CGI-SpeedyCGI
PORTVERSION=	2.22
PORTREVISION=	7
CATEGORIES=	www perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	lth@@FreeBSD.org
COMMENT=	Speed up perl CGI scripts by running them persistently

MAKE_JOBS_UNSAFE=	yes
PERL_CONFIGURE=	yes

OPTIONS_DEFINE=	APACHE
OPTIONS_DEFAULT=APACHE
APACHE_DESC=	Build mod_speedycgi

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE=	22
PLIST_SUB+=	APACHE=""
.else
PLIST_SUB+=	APACHE="@@comment "
CONFIGURE_ENV+=	WITHOUT_APACHE=yes
.endif

.include <bsd.port.pre.mk>

post-patch:
	@@${PERL} -pi -e 's,apxs -q,${APXS} -q,;' \
		${WRKSRC}/src/SpeedyMake.pl
	@@${PERL} -pi -e 's,APXS=apxs,APXS=${APXS},;' \
		${WRKSRC}/mod_speedycgi/Makefile.tmpl
	${CP} ${FILESDIR}/speedy_dump.c ${WRKSRC}/speedy_dump/
.if ${PERL_LEVEL} >= 501000
	@@${REINPLACE_CMD} -i '' -e 's=New(123,=Newx(=g' \
		${WRKSRC}/src/speedy_backend_main.h
.endif

post-configure:
	@@${PERL} -pi -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g;' \
		${WRKSRC}/Makefile ${WRKSRC}/*/Makefile

post-build:
	@@cd ${WRKSRC}/speedy_dump && ${CC} ${CFLAGS} -o speedy_dump \
		-I../src speedy_dump.c

post-install:
	@@${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suidperl
	@@${CHMOD} 4755 ${PREFIX}/bin/speedy_suidperl
	@@${INSTALL_PROGRAM} ${WRKSRC}/speedy_dump/speedy_dump \
		${PREFIX}/bin/speedy_dump

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


1.24
log
@SVN rev 304797 on 2012-09-24 20:55:01Z by ohauer

- USE_APACHE s/22+/22/

some additional cleanups/fixes
- adopt new Makefile header
- convert to optionsNG
- use BROKEN instead IGNORE in bsd.apache.mk

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


1.23
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:	CGI-SpeedyCGI
# Date created:				Sun Mar 10 16:44:06 CET 2002
# Whom:					Lars Thegler <lars@@thegler.dk>
#
a2 1
#
d17 3
a19 1
OPTIONS=	APACHE "Enable mod_speedycgi" On
d21 1
a21 1
.include <bsd.port.pre.mk>
d23 2
a24 2
.if !defined(WITHOUT_APACHE)
USE_APACHE=	22+
d31 2
@


1.22
log
@- Revert ports/165605 as requested by portmgr@@

Note: devel/p5-B-Size and devel/p5-Devel-Arena
where intentionally not restored.

PR:             ports/165605
Approved by:    portmgr (bapt)
Feature safe:   yes (I sure hope so)
@
text
@d26 1
a26 1
USE_APACHE=	20+
@


1.21
log
@- Remove ports that only work with < perl 5.12 (devel/p5-B-Size, devel/p5-Devel-Arena)
- Remove conditionals for PERL_LEVEL < 501200
- Remove regression-test targets b/c this will be centralized in Mk/bsd.perl.mk
- Other minor cleanups
  RUN_DEPENDS = ${BUILD_DEPENDS} -> RUN_DEPENDS:= ${BUILD_DEPENDS}

PR:             ports/165605
Submitted by:   pgollucci (myself)
Approved by:    portmgr (linimon)
Exp Run by:     linimon
Tested by:      make index
@
text
@d39 1
d42 1
@


1.20
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@a38 1
.if ${PERL_LEVEL} >= 501000
a40 1
.endif
@


1.19
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d26 1
a26 1
USE_APACHE=	13+
@


1.18
log
@- Fix pkg-plist for WITH_APACHE

PR:             ports/149684
Submitted by:   ohauer
Approved by:    maintainer timeout (lth ; 26 days)
@
text
@d10 1
a10 1
PORTREVISION=	6
d26 1
a26 1
USE_APACHE=	1.3+
@


1.17
log
@Avoid segfault on perl 5.10

PR:		ports/139259
Submitted by:	Vivek Khera <vivek@@khera.org>
Obtained from:	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537996
@
text
@d10 1
a10 1
PORTREVISION=	5
@


1.16
log
@Mark MAKE_JOBS_UNSAFE=yes

PR:		ports/135551
Submitted by:	pgollucci
@
text
@d10 1
a10 1
PORTREVISION=	4
@


1.15
log
@Introduce Perl 5.10.0
@
text
@d18 1
@


1.14
log
@- Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_CPAN} to CPAN.

PR:		ports/122674
Submitted by:	Philip M. Gollucci <pgollucci@@p6m7g8.com>
Reworked by:	araujo (myself)
Approved by:	portmgr (pav)
@
text
@d38 4
@


1.13
log
@- Add a simple program to dump status file (/tmp/speedy.6.*.F).
  Original distribution contains similar utility (speedy_dump.pl), but
  I cannot compile (actually c2ph) it, so I reinvent a wheel with C.

Approved by:	lth (maintainer)
@
text
@d12 1
a12 2
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	CGI
@


1.12
log
@Fix building of mod_speedycgi.

PR:		ports/91212
Submitted by:	Rong-En Fan <rafan@@infor.org>
@
text
@d10 1
a10 1
PORTREVISION=	3
d38 1
d44 4
d51 2
@


1.11
log
@Added patch to fix SF#1279867, 'error messages from die() are lost'.

Obtained from:	http://sourceforge.net/tracker/index.php?func=detail&aid=1279867&group_id=2208&atid=102208
@
text
@d10 1
a10 1
PORTREVISION=	2
d21 2
d25 4
a28 3
# define WITHOUT_APACHE to prevent mod_speedycgi from being built even if Apache is installed

.if !exists(${APXS}) || defined(WITHOUT_APACHE)
a30 11
.else
PLIST_SUB+=	APACHE=""
.if exists(${APXS})
APXS_WORKS!=	${APXS} -q TARGET 2>/dev/null || ${ECHO} no
.endif
.if exists(${APXS}) && ${APXS_WORKS} != no
AP_LIBEXEC!=	${APXS} -q LIBEXECDIR
.else
AP_LIBEXEC?=	${PREFIX}/libexec/apache
.endif
PLIST_SUB+=	AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
@


1.10
log
@Make the module build honor the APXS variable.

PR:		ports/79810
Noticed by:	Jeremy Reed <reed@@reedmedia.net>
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.9
log
@Perl 5.8.4 and above add several security check when doing setuid.
One of these checks is that the interpreter must have string "perl" with it.

http://sourceforge.net/mailarchive/forum.php?thread_id=4823748&forum_id=7581

- rename speedy_suid to speedy_suidperl (or speedyperl_suid will be fine, too)
- utilize ECHO
- replace all /usr/local with PREFIX will cause some problems when PREFIX
  isn't /usr/local (missing PERL5 libraries and modules... blah blah...)
- bump PORTREVISION

PR:		69970
Submitted by:	leeym
Reviewed by:	lth
@
text
@a22 2
APXS?=		${LOCALBASE}/sbin/apxs

d41 6
@


1.8
log
@Change of email address.

Approved by:	erwin (mentor)
@
text
@d10 1
d33 1
a33 1
APXS_WORKS!=	${APXS} -q TARGET 2>/dev/null || echo no
a44 1
		     -e 's,/usr/local,${PREFIX},g;' \
d48 2
a49 2
	@@${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suid
	@@${CHMOD} 4755 ${PREFIX}/bin/speedy_suid
@


1.7
log
@PR:		57925
Submitted by:	Cheng-Lung Sung <clsung@@dragon2.net>
Reviewed by:	[1]
Approved by:
Obtained from:
MFC after:
Upgrade p5-CGI-SpeedyCGI to 2.22

[1] Actually use the patch provided by the maintainer.
@
text
@d15 1
a15 1
MAINTAINER=	lars@@thegler.dk
@


1.6
log
@Fix coredumps.

PR:		52522
Submitted by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	2.21
PORTREVISION=	3
d20 22
d43 3
a45 1
	@@${PERL} -pi.bak -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g' ${WRKSRC}/*/Makefile
d51 1
a51 1
.include <bsd.port.mk>
@


1.5
log
@Fix PREFIX under perl-5.005
bump PORTREVISION

PR:		51507
Submitted by:	leeym
Approved by:	Lars Thegler <lars@@thegler.dk>
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.4
log
@add SUID support, which is required by mail/openwebmail
bump PORTREVISION

PR:		50441
Submitted by:	leeym
Reviewed by:	lars@@thegler.dk (MAINTAINER)
Approved by:	lars@@thegler.dk (MAINTAINER)
@
text
@d10 1
a10 1
PORTREVISION=	1
d20 3
@


1.3
log
@Update port www/p5-CGI-SpeedyCGI to version 2.21
disable installing mod_speedycgi.

PR:		46723
Submitted by:	Lars Thegler <lars@@thegler.dk>
Reviewed by:	petef, tobez
@
text
@d10 1
a18 1
#SITE_PERL=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
d20 4
@


1.2
log
@De-pkg-comment.
@
text
@d9 1
a9 1
PORTVERSION=	2.11
@


1.1
log
@Add p5-CGI-SpeedyCGI 2.11,
speed up perl CGI scripts by running them persistently.

PR:		ports/35741
Submitted by:	Lars Thegler <lars@@thegler.dk>
@
text
@d16 1
@

