From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 20 15:40:16 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAA1416A55B for ; Fri, 20 Aug 2004 15:40:15 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE9FB43D2F for ; Fri, 20 Aug 2004 15:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7KFeFYL026640 for ; Fri, 20 Aug 2004 15:40:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7KFeF9R026639; Fri, 20 Aug 2004 15:40:15 GMT (envelope-from gnats) Resent-Date: Fri, 20 Aug 2004 15:40:15 GMT Resent-Message-Id: <200408201540.i7KFeF9R026639@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ying-Chieh Chen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0DDE16A4CE for ; Fri, 20 Aug 2004 15:38:59 +0000 (GMT) Received: from alumni.csie.nctu.edu.tw (alumni.csie.nctu.edu.tw [140.113.209.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63EE843D46 for ; Fri, 20 Aug 2004 15:38:59 +0000 (GMT) (envelope-from yinjieh@csie.nctu.edu.tw) Received: from alumni.csie.nctu.edu.tw (yinjieh@localhost [127.0.0.1]) i7KFcnWM054949 for ; Fri, 20 Aug 2004 23:38:49 +0800 (CST) Received: (from yinjieh@localhost) by alumni.csie.nctu.edu.tw (8.12.11/8.12.3/Submit) id i7KFcnfu054948; Fri, 20 Aug 2004 23:38:49 +0800 (CST) Message-Id: <200408201538.i7KFcnfu054948@alumni.csie.nctu.edu.tw> Date: Fri, 20 Aug 2004 23:38:49 +0800 (CST) From: Ying-Chieh Chen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/70727: [UPDATE] Enable OPTIONS feature of ports/www/rnews X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ying-Chieh Chen List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2004 15:40:16 -0000 >Number: 70727 >Category: ports >Synopsis: [UPDATE] Enable OPTIONS feature of ports/www/rnews >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Aug 20 15:40:15 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Ying-Chieh Chen >Release: FreeBSD 4.10-STABLE i386 >Organization: NCTU CSIE >Environment: System: FreeBSD alumni 4.10-STABLE FreeBSD 4.10-STABLE #25: Fri Jul 2 07:46:15 CST 2004 wcpan@ccduty:/bsdhome/bsd4/obj/bsdhome/bsd4/src/sys/CSIEBSD i386 >Description: Enable OPTIONS feature of ports/www/rnews >How-To-Repeat: Apply the patch. >Fix: --- rnews.patch begins here --- diff -ruN /usr/ports/www/rnews/Makefile rnews/Makefile --- /usr/ports/www/rnews/Makefile Sun Aug 1 00:06:41 2004 +++ rnews/Makefile Fri Aug 20 20:27:06 2004 @@ -14,12 +14,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A server-side rss aggregator written in php with mysql -.if defined(WITH_PHP3) -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3 -.else -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 -.endif - USE_MYSQL= yes NO_BUILD= yes @@ -27,12 +21,14 @@ magpierss/CHANGES magpierss/ChangeLog magpierss/INSTALL \ magpierss/NEWS magpierss/README magpierss/TROUBLESHOOTING -pre-everything:: -.if !defined(WITH_PHP3) - @${ECHO_MSG} "" - @${ECHO_MSG} "Press CTRL-C and define WITH_PHP3 if you want" - @${ECHO_MSG} "to use RNEWS with PHP3. PHP4 is used by default." - @${ECHO_MSG} "" +OPTIONS= PHP3 "use RNEWS with PHP3 (Default is PHP4)" off + +.include + +.if defined(WITH_PHP3) +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3 +.else +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 .endif post-patch: @@ -61,4 +57,4 @@ @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/www/rnews/magpierss/cache @${SED} "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE} -.include +.include --- rnews.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: