Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2009 16:51:45 GMT
From:      Ganael Laplanche <ganael.laplanche@martymac.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/136138: Port fix: net/ldapscripts - honor PREFIX
Message-ID:  <200906281651.n5SGpjgo079036@www.freebsd.org>
Resent-Message-ID: <200906281700.n5SH0C5A067698@freefall.freebsd.org>

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

>Number:         136138
>Category:       ports
>Synopsis:       Port fix: net/ldapscripts - honor PREFIX
>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 Jun 28 17:00:11 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ganael Laplanche
>Release:        7-STABLE
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 7.2-STABLE FreeBSD 7.2-STABLE #1: Thu Jun 11 08:40:15 UTC 2009     martymac@home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
This patch makes the net/ldapscripts port honor PREFIX's value.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -aurN ldapscripts.orig/Makefile ldapscripts/Makefile
--- ldapscripts.orig/Makefile	2009-06-28 16:35:01.440505789 +0000
+++ ldapscripts/Makefile	2009-06-28 16:38:46.346572342 +0000
@@ -47,9 +47,10 @@
 PORTDOCS=	README CHANGELOG COPYING VERSION TODO
 
 # Unset 'all' target set by default to 'help'
-# and set paths to OpenLDAP binaries
+# Set PREFIX and paths to OpenLDAP binaries
 post-patch:
 	${REINPLACE_CMD} "s|^all:.*|all:|g" ${WRKSRC}/Makefile
+	${REINPLACE_CMD} "s|^PREFIX = .*|PREFIX = ${PREFIX}|g" ${WRKSRC}/Makefile
 	${REINPLACE_CMD} \
 	-e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${LOCALBASE}/bin/ldapsearch\"|g" \
 	-e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${LOCALBASE}/bin/ldapadd\"|g" \


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



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