summaryrefslogtreecommitdiff
path: root/devel/rt3
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-01 18:44:57 +0000
committerrillig <rillig>2006-10-01 18:44:57 +0000
commit7308622bb34957462b110200e257794156da0874 (patch)
treedaadbe8ea879d6eda1f0a3c54076d832b5d32b8e /devel/rt3
parent89f2a57e2244e576fd5585c589451161c4bd54fc (diff)
downloadpkgsrc-7308622bb34957462b110200e257794156da0874.tar.gz
Made the dependency to SpeedyCGI optional, disabled by default. Bumped
PKGREVISION.
Diffstat (limited to 'devel/rt3')
-rw-r--r--devel/rt3/Makefile17
-rw-r--r--devel/rt3/PLIST4
-rw-r--r--devel/rt3/options.mk4
3 files changed, 18 insertions, 7 deletions
diff --git a/devel/rt3/Makefile b/devel/rt3/Makefile
index 05b8b71826c..e9e960f30c5 100644
--- a/devel/rt3/Makefile
+++ b/devel/rt3/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2006/10/01 14:24:30 rillig Exp $
+# $NetBSD: Makefile,v 1.23 2006/10/01 18:44:57 rillig Exp $
DISTNAME= rt-3.4.5
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= devel
MASTER_SITES= http://download.bestpractical.com/pub/rt/release/
@@ -51,7 +51,6 @@ DEPENDS+= p5-XML-RSS>=1.05:../../textproc/p5-XML-RSS
DEPENDS+= p5-HTTP-Server-Simple>=0.07:../../www/p5-HTTP-Server-Simple
DEPENDS+= p5-HTTP-Server-Simple-Mason>=0.09:../../www/p5-HTTP-Server-Simple-Mason
DEPENDS+= p5-Text-WikiFormat>=0.72:../../textproc/p5-Text-WikiFormat
-DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI
# Mailgate dependencies:
DEPENDS+= p5-HTML-Tree>=3.18:../../www/p5-HTML-Tree
@@ -68,6 +67,18 @@ DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI
.elif !empty(PKG_OPTIONS:Mfastcgi)
DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI
.endif
+.if !empty(PKG_OPTIONS:Mspeedycgi)
+DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI
+PLIST_SUBST+= IF_SPEEDYCGI=""
+.else
+MAKE_FLAGS+= RT_SPEEDYCGI_HANDLER=""
+PLIST_SUBST+= IF_SPEEDYCGI="@comment "
+
+.PHONY: rm-speedycgi
+post-install: rm-speedycgi
+rm-speedycgi:
+ rm -f ${PREFIX}/bin/mason_handler.scgi
+.endif
# Back-end dependencies
.if !empty(PKG_OPTIONS:Mmysql)
diff --git a/devel/rt3/PLIST b/devel/rt3/PLIST
index 7a204c4f9cc..295eac0d67a 100644
--- a/devel/rt3/PLIST
+++ b/devel/rt3/PLIST
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.5 2006/06/03 10:40:34 seb Exp $
+@comment $NetBSD: PLIST,v 1.6 2006/10/01 18:44:57 rillig Exp $
bin/mason_handler.fcgi
-bin/mason_handler.scgi
+${IF_SPEEDYCGI}bin/mason_handler.scgi
bin/mason_handler.svc
bin/rt
bin/rt-crontool
diff --git a/devel/rt3/options.mk b/devel/rt3/options.mk
index 11f306dc89f..c8ce377c23d 100644
--- a/devel/rt3/options.mk
+++ b/devel/rt3/options.mk
@@ -1,10 +1,10 @@
-# $NetBSD: options.mk,v 1.2 2006/05/01 09:38:08 cube Exp $
+# $NetBSD: options.mk,v 1.3 2006/10/01 18:44:57 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.rt
PKG_OPTIONS_REQUIRED_GROUPS= backend frontend
PKG_OPTIONS_GROUP.backend= mysql oracle pgsql sqlite
PKG_OPTIONS_GROUP.frontend= modperl1 modperl2 \
- fastcgi
+ fastcgi speedycgi
PKG_SUGGESTED_OPTIONS= mysql fastcgi
PKG_OPTIONS_LEGACY_OPTS= backend-mysql:mysql backend-pgsql:pgsql \