Date: Fri, 27 Oct 2006 02:58:38 +0800 (CST) From: Rong-En Fan <rafan@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ale@FreeBSD.org Subject: ports/104838: [PATCH] sysutils/portconf: auto detect real path of /usr/ports Message-ID: <200610261858.k9QIwcMJ074538@svm.csie.ntu.edu.tw> Resent-Message-ID: <200610261900.k9QJ0alT004739@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 104838 >Category: ports >Synopsis: [PATCH] sysutils/portconf: auto detect real path of /usr/ports >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: Thu Oct 26 19:00:36 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 6.2-PRERELEASE amd64 >Organization: NTU CSIE >Environment: >Description: Make make.conf auto detect where the real path of /usr/ports is. If your /usr/ports is a symlink, portconf can still work. Port maintainer (ale@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- portconf-1.2_1.patch begins here --- Index: Makefile =================================================================== RCS file: /big/freebsd-cvsup/ncvs/ports/sysutils/portconf/Makefile,v retrieving revision 1.3 diff -u -u -r1.3 Makefile --- Makefile 6 Sep 2006 12:50:31 -0000 1.3 +++ Makefile 26 Oct 2006 18:57:12 -0000 @@ -9,6 +9,7 @@ PORTNAME= portconf PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= # none DISTFILES= # none Index: pkg-install =================================================================== RCS file: /big/freebsd-cvsup/ncvs/ports/sysutils/portconf/pkg-install,v retrieving revision 1.1 diff -u -u -r1.1 pkg-install --- pkg-install 9 Jun 2006 08:17:35 -0000 1.1 +++ pkg-install 26 Oct 2006 18:57:12 -0000 @@ -7,7 +7,12 @@ cat >> ${MAKE_CONF} << EOF # Begin portconf settings # Do not touch these lines -.if !empty(.CURDIR:M/usr/ports*) && exists(${PKG_PREFIX}/libexec/portconf) +.if !empty(\${PORTSDIR}) +_PORTSDIR!= /bin/realpath \${PORTSDIR} +.else +_PORTSDIR!= /bin/realpath /usr/ports +.endif +.if \${.CURDIR:M\${_PORTSDIR}*} != "" && exists(${PKG_PREFIX}/libexec/portconf) _PORTCONF!=${PKG_PREFIX}/libexec/portconf .for i in \${_PORTCONF:S/|/ /g} \${i:S/%/ /g} --- portconf-1.2_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610261858.k9QIwcMJ074538>