Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  4 Mar 2006 23:17:15 -0800 (PST)
From:      Linh Pham <question+fbsdports@closedsrc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sergei@FreeBSD.org
Subject:   ports/94085: Update port: security/base with PHP dependency fixes
Message-ID:  <20060305071715.AEB6145021@q.closedsrc.org>
Resent-Message-ID: <200603050720.k257K6kn090569@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94085
>Category:       ports
>Synopsis:       Update port: security/base with PHP dependency fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 05 07:20:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Linh Pham
>Release:        FreeBSD 6.0-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD q.internal.closedsrc.org 6.0-RELEASE-p3 FreeBSD 6.0-RELEASE-p3 #7: Thu Jan 19 21:46:45 PST 2006 question@q.internal.closedsrc.org:/usr/obj/usr/src/sys/Q i386
>Description:
Added session PHP extension as a dependency by using the USE_PHP flag in the
Makefile, also added WITH_MYSQL and WITH_PGSQL flags to include the
respective PHP extensions as dependencies.

I'm not sure if how I handled it in the Makefile is optimal or recommended.
I would like it if someone could review the changes and provide feedback,
if time/resources permit.

I have bumped the port from 1.2.2 to 1.2.2_1.
>How-To-Repeat:
>Fix:

--- base-1.2.2_1.diff begins here ---
diff -ruN /usr/ports/security/base/Makefile ./base/Makefile
--- /usr/ports/security/base/Makefile	Tue Jan 17 18:42:15 2006
+++ ./base/Makefile	Sat Mar  4 23:05:55 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	base
 PORTVERSION=	1.2.2
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	secureideas
@@ -18,13 +19,37 @@
 		${ADODB_DIR}/adodb.inc.php:${PORTSDIR}/databases/adodb \
 		${LOCALBASE}/share/pear/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph
 
-USE_PHP=	yes
-USE_REINPLACE=	yes
+USE_PHP=	session gettext
+WANT_PHP_PEAR=	yes
 
 ADODB_DIR=	${LOCALBASE}/share/adodb
 
 SUB_FILES=	pkg-message
 DOCS=		docs/CHANGELOG docs/CREDITS docs/README docs/TODO docs/UPGRADE
+
+.if defined(WITH_MYSQL)
+	USE_PHP+=	mysql
+.endif
+
+.if defined(WITH_PGSQL)
+	USE_PHP+=	pgsql
+.endif
+
+pre-fetch:
+.if !defined(WITH_MYSQL)
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "   *********************************************"
+	@${ECHO_MSG} "   To enable support for MySQL databases,"
+	@${ECHO_MSG} "   build this port with WITH_MYSQL=YES"
+	@${ECHO_MSG} "   *********************************************"
+.endif
+.if !defined(WITH_PGSQL)
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "   *********************************************"
+	@${ECHO_MSG} "   To enable support for PostgreSQL databases,"
+	@${ECHO_MSG} "   build this port with WITH_PGSQL=YES"
+	@${ECHO_MSG} "   *********************************************"
+.endif
 
 do-build:
 	@${REINPLACE_CMD} -e 's,DBlib_path = "",DBlib_path = "${ADODB_DIR}",' \
--- base-1.2.2_1.diff ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060305071715.AEB6145021>