Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2011 07:47:45 GMT
From:      Gvozdikov Veniamin <g.veniamin@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/158795: [PATCH] Update: www/glpi fix depends and options
Message-ID:  <201107110747.p6B7ljdK073923@red.freebsd.org>
Resent-Message-ID: <201107110750.p6B7o8PL087132@freefall.freebsd.org>

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

>Number:         158795
>Category:       ports
>Synopsis:       [PATCH] Update: www/glpi fix depends and options
>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 Jul 11 07:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Gvozdikov Veniamin
>Release:        FreeBSD 8.2-RELEASE
>Organization:
>Environment:
FreeBSD y.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0 r219081M: Wed Mar 2 08:29:52 CET 2011 root@www4:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Added depends: mbstring and options to ldap, imap support.
>How-To-Repeat:

>Fix:
diff -up glpi.orig/Makefile glpi/Makefile
--- glpi.orig/Makefile	2011-07-11 15:27:56.228204384 +0000
+++ glpi/Makefile	2011-07-11 15:37:08.748681148 +0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	glpi
 DISTVERSION=	0.78.1
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://glpi-project.org/IMG/gz/ \
 		http://download.gna.org/kanicule/freebsd/distfiles/
@@ -14,7 +15,7 @@ MASTER_SITES=	http://glpi-project.org/IM
 MAINTAINER=	mathias@monnerville.com
 COMMENT=	Free IT and asset management software
 
-USE_PHP=	mysql pcre session xml json
+USE_PHP=	mysql mbstring pcre session xml json
 WANT_PHP_WEB=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
@@ -24,8 +25,19 @@ CPIOARGS=	--quiet -pdum -R
 
 GLPIDIR?=	www/${PORTNAME}
 
+OPTIONS=	LDAP "With LDAP support" off \
+		IMAP "With imap support" off
+
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_LDAP)
+USE_PHP+=	ldap
+.endif
+
+.if defined(WITH_IMAP)
+USE_PHP+=	imap
+.endif
+
 post-extract:
 	@${FIND} ${WRKSRC} -name '*~' -delete
 

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



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