2002-03-25 13:42:29 +00:00
|
|
|
# New ports collection makefile for: CGI-SpeedyCGI
|
|
|
|
# Date created: Sun Mar 10 16:44:06 CET 2002
|
|
|
|
# Whom: Lars Thegler <lars@thegler.dk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= CGI-SpeedyCGI
|
2003-10-30 13:04:22 +00:00
|
|
|
PORTVERSION= 2.22
|
2002-03-25 13:42:29 +00:00
|
|
|
CATEGORIES= www perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
|
|
MASTER_SITE_SUBDIR= CGI
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2004-06-01 12:32:33 +00:00
|
|
|
MAINTAINER= lth@FreeBSD.org
|
2003-02-21 14:08:24 +00:00
|
|
|
COMMENT= Speed up perl CGI scripts by running them persistently
|
2002-03-25 13:42:29 +00:00
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
2003-10-30 13:04:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
|
|
|
|
|
|
|
# define WITHOUT_APACHE to prevent mod_speedycgi from being built even if Apache is installed
|
|
|
|
|
|
|
|
.if !exists(${APXS}) || defined(WITHOUT_APACHE)
|
|
|
|
PLIST_SUB+= APACHE="@comment "
|
|
|
|
CONFIGURE_ENV+= WITHOUT_APACHE=yes
|
|
|
|
.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}\///}
|
|
|
|
.endif
|
|
|
|
|
2003-04-29 15:58:06 +00:00
|
|
|
post-configure:
|
2003-10-30 13:04:22 +00:00
|
|
|
@${PERL} -pi -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g;' \
|
|
|
|
-e 's,/usr/local,${PREFIX},g;' \
|
|
|
|
${WRKSRC}/Makefile ${WRKSRC}/*/Makefile
|
2003-04-29 15:58:06 +00:00
|
|
|
|
2003-04-11 02:17:22 +00:00
|
|
|
post-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suid
|
|
|
|
@${CHMOD} 4755 ${PREFIX}/bin/speedy_suid
|
|
|
|
|
2003-10-30 13:04:22 +00:00
|
|
|
.include <bsd.port.post.mk>
|