ports/136138: Port fix: net/ldapscripts - honor PREFIX
Ganael Laplanche
ganael.laplanche at martymac.com
Sun Jun 28 17:00:12 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list