Date: Thu, 19 Mar 2009 11:18:28 +0100 From: "Ronald Klop" <ronald@echteman.nl> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Cc: ronald@echteman.nl Subject: ports/132806: Make it possible to start ldapbrowser from every directory. [patch] Message-ID: <1237457908.65831@ronald.office.base.nl> Resent-Message-ID: <200903191050.n2JAo1Fo037495@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132806 >Category: ports >Synopsis: Make it possible to start ldapbrowser from every directory. [patch] >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 19 10:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ronald Klop >Release: FreeBSD 7.1-STABLE amd64 >Organization: >Environment: System: FreeBSD 7.1-STABLE #24: Mon Mar 16 14:06:24 CET 2009 root@ronald.office.base.nl:/usr/obj/usr/src/sys/GENERIC >Description: Currently ldapbrowser always chdirs to ${PREFIX}/lib/ldapbrowser. This directory is not writable for the average user and ldapbrowser tries to write in the current directory sometimes. With this change ldapbrowser can been started from every directory, so the user can decide where to put its config files. A small fix. It works here. >How-To-Repeat: >Fix: --- ldapbrowser.diff begins here --- --- Makefile 2009-03-12 14:58:59.000000000 +0100 +++ /tmp/Makefile 2009-03-19 11:13:59.000000000 +0100 @@ -26,0 +27,3 @@ +post-extract:: + @${SED} -i "" -e 's|lbe.jar|${PREFIX}/lib/ldapbrowser/lbe.jar|' ${WRKSRC}/lbe.sh + @@ -30,2 +33,2 @@ - ${ECHO_CMD} "cd ${PREFIX}/lib/ldapbrowser" > ${PREFIX}/bin/ldapbrowser - ${ECHO_CMD} "sh ${PREFIX}/lib/ldapbrowser/lbe.sh" >> ${PREFIX}/bin/ldapbrowser + ${ECHO_CMD} "#! /bin/sh" > ${PREFIX}/bin/ldapbrowser + ${ECHO_CMD} "${PREFIX}/lib/ldapbrowser/lbe.sh -base ${PREFIX}/lib/ldapbrowser" >> ${PREFIX}/bin/ldapbrowser --- ldapbrowser.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?1237457908.65831>