aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-FCGI-Spawn/Makefile
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2010-04-14 21:48:02 +0800
committerskreuzer <skreuzer@FreeBSD.org>2010-04-14 21:48:02 +0800
commit7f36a47256edca067c2590607d92dcf4ab683a2f (patch)
tree2d260e3920ebead56f8b02969569e2ff74908f05 /www/p5-FCGI-Spawn/Makefile
parentd6841923014fc4aceaa2468002008aabe0ba5d10 (diff)
downloadfreebsd-ports-gnome-7f36a47256edca067c2590607d92dcf4ab683a2f.tar.gz
freebsd-ports-gnome-7f36a47256edca067c2590607d92dcf4ab683a2f.tar.zst
freebsd-ports-gnome-7f36a47256edca067c2590607d92dcf4ab683a2f.zip
Update to 0.16.1
PR: ports/144262 Submitted by: Peter Vereshagin <peter@vereshagin.org>
Diffstat (limited to 'www/p5-FCGI-Spawn/Makefile')
-rw-r--r--www/p5-FCGI-Spawn/Makefile37
1 files changed, 34 insertions, 3 deletions
diff --git a/www/p5-FCGI-Spawn/Makefile b/www/p5-FCGI-Spawn/Makefile
index 50eb93cb18b0..2871b1f8a574 100644
--- a/www/p5-FCGI-Spawn/Makefile
+++ b/www/p5-FCGI-Spawn/Makefile
@@ -6,18 +6,49 @@
#
PORTNAME= FCGI-Spawn
-PORTVERSION= 0.15.1
+PORTVERSION= 0.16.1
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= peter@vereshagin.org
-COMMENT= Process manager/(CGI-like)application server for FastCGI protocol
+COMMENT= FastCGI server for CGI-like applications multiprocessing
RUN_DEPENDS= ${SITE_PERL}/FCGI/ProcManager.pm:${PORTSDIR}/www/p5-FCGI-ProcManager
PERL_CONFIGURE= yes
+USE_RC_SUBR+= fcgi_spawn
+
MAN3= FCGI::Spawn.3
+MAN1= fcgi_spawn.1
+
+OPTIONS= MYSQL "MySQL dependency to run on RC start" off \
+ PGSQL "PgSQL dependency to run on RC start" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL)
+# RUN_DEPENDS+= mysql-server>=0:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
+SUB_LIST+= MYSQL=mysql
+. else
+SUB_LIST+= MYSQL=
+.endif
+
+.if defined(WITH_PGSQL)
+# RUN_DEPENDS+= postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
+SUB_LIST+= PGSQL=postgresql
+. else
+SUB_LIST+= PGSQL=
+.endif
+
+post-install:
+ ${ECHO} ${WITH_MYSQL} ${SUB_LIST}
+ @${MKDIR} ${PREFIX}/etc/fcgi_spawn
+ @${INSTALL_DATA} ${WRKSRC}/fcgi_spawn.conf.sample ${PREFIX}/etc/fcgi_spawn
+ @${MKDIR} ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+ @${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/Bugzilla.CGI.pm.fcgi.spawn.patch ${WRKSRC}/CGI.pm.fcgi.spawn.patch \
+ ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>