pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/rt3 Made the dependency to SpeedyCGI optional, d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b6219446e2d
branches:  trunk
changeset: 519338:5b6219446e2d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Oct 01 18:44:57 2006 +0000

description:
Made the dependency to SpeedyCGI optional, disabled by default. Bumped
PKGREVISION.

diffstat:

 devel/rt3/Makefile   |  17 ++++++++++++++---
 devel/rt3/PLIST      |   4 ++--
 devel/rt3/options.mk |   4 ++--
 3 files changed, 18 insertions(+), 7 deletions(-)

diffs (68 lines):

diff -r 353246bb8cbf -r 5b6219446e2d devel/rt3/Makefile
--- a/devel/rt3/Makefile        Sun Oct 01 15:56:53 2006 +0000
+++ b/devel/rt3/Makefile        Sun Oct 01 18:44:57 2006 +0000
@@ -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-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 @@
 .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 -r 353246bb8cbf -r 5b6219446e2d devel/rt3/PLIST
--- a/devel/rt3/PLIST   Sun Oct 01 15:56:53 2006 +0000
+++ b/devel/rt3/PLIST   Sun Oct 01 18:44:57 2006 +0000
@@ -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 -r 353246bb8cbf -r 5b6219446e2d devel/rt3/options.mk
--- a/devel/rt3/options.mk      Sun Oct 01 15:56:53 2006 +0000
+++ b/devel/rt3/options.mk      Sun Oct 01 18:44:57 2006 +0000
@@ -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 \



Home | Main Index | Thread Index | Old Index