ports/146898: [PATCH] net-mgmt/ap13-torrus: use KNOBS and std pkg names

Philip M. Gollucci pgollucci at frieza.p6m7g8.net
Mon May 24 01:20:04 UTC 2010


>Number:         146898
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/ap13-torrus: use KNOBS and std pkg names
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 24 01:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Philip M. Gollucci
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD frieza.p6m7g8.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Mon Apr 26 16:20:00 EDT 2010
>Description:
- also, p5-libapreq2 pulls in mod_perl2

Port maintainer (corsmith at gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- ap13-torrus-1.0.8_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/torrus/Makefile,v
retrieving revision 1.8
diff -u -u -r1.8 Makefile
--- Makefile	28 Mar 2010 06:41:58 -0000	1.8
+++ Makefile	24 May 2010 01:11:06 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	torrus
 PORTVERSION=	1.0.8
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF
 
@@ -26,20 +26,12 @@
 LIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2 \
 		db-4.3.0:${PORTSDIR}/databases/db43
 
-.if !defined(WITH_MOD_PERL)
-.if defined(WITH_APACHE2)
-WITH_MOD_PERL=	2
+.if defined(WITH_MODPERL2)
+USE_APACHE= 2.0+
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/APR/Request.pm:${PORTSDIR}/www/p5-libapreq2
 .else
-WITH_MOD_PERL=	1
-.endif
-.endif
-.if ${WITH_MOD_PERL} == 1
-PKGNAMESUFFIX=	-mod_perl
+USE_APACHE= 1.3
 RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
-.elif ${WITH_MOD_PERL} == 2
-PKGNAMESUFFIX=	-mod_perl2
-RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2 \
-		${SITE_PERL}/${PERL_ARCH}/APR/Request.pm:${PORTSDIR}/www/p5-libapreq2
 .endif
 
 USE_PERL5_RUN=	5.8.1+
@@ -78,12 +70,12 @@
 	@${ECHO_CMD}
 	@${ECHO_CMD} "This port supports either mod_perl 1 or mod_perl 2"
 	@${ECHO_CMD}
-	@${ECHO_CMD} "  WITH_MOD_PERL=1  Enables mod_perl 1.x support (DEFAULT)"
-	@${ECHO_CMD} "  WITH_MOD_PERL=2  Enables mod_perl 2.x support"
+	@${ECHO_CMD} "  mod_perl 1.x support (DEFAULT)"
+	@${ECHO_CMD} "  WITH_MODPERL2=yes  Enables mod_perl 2.x support"
 	@${ECHO_CMD}
-.if ${WITH_MOD_PERL} == 1
+.if !defined(WITH_MODPERL2)
 	@${ECHO_CMD} "Enabling mod_perl 1.x support."
-.elif ${WITH_MOD_PERL} == 2
+.else
 	@${ECHO_CMD} "Enabling mod_perl 2.x support."
 .endif
 	@${ECHO_CMD}
--- ap13-torrus-1.0.8_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list