ports/183412: [PATCH] ports-mgmt/porttools: Allow using another ports tree
Mathieu Arnold
mat at FreeBSD.org
Mon Oct 28 17:00:01 UTC 2013
>Number: 183412
>Category: ports
>Synopsis: [PATCH] ports-mgmt/porttools: Allow using another ports tree
>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 Oct 28 17:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mathieu Arnold
>Release: FreeBSD 9.2-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC
>Description:
/usr/ports may not be the reference tree you want to use, allow users to
customize that.
Port maintainer (joemann at beefree.free.de) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:
--- porttools-0.99_9.patch begins here ---
Index: files/patch-port.in
===================================================================
--- files/patch-port.in (revision 18768)
+++ files/patch-port.in (working copy)
@@ -1,6 +1,6 @@
--- port.in.orig 2009-09-10 04:59:59.000000000 +0900
-+++ port.in 2012-12-27 19:30:02.000000000 +0900
-@@ -19,7 +19,7 @@
++++ port.in 2013-10-28 17:50:13.000000000 +0100
+@@ -19,12 +19,15 @@
ORGANIZATION=""
BUILDROOT="/tmp"
ARCHIVE_DIR=""
@@ -8,4 +8,12 @@
+ DIFF_MODE="SVN"
DIFF_VIEWER="more"
PORTLINT_FLAGS="abct"
++ PORTSDIR="/usr/ports"
EOF
+ fi
+
++PORTSDIR="/usr/ports"
++
+ # Reading configuration file
+ . ${PORTTOOLS}
+
Index: files/patch-util_diff.in
===================================================================
--- files/patch-util_diff.in (revision 18768)
+++ files/patch-util_diff.in (working copy)
@@ -1,5 +1,5 @@
--- util_diff.in.orig 2009-09-10 04:59:59.000000000 +0900
-+++ util_diff.in 2012-12-31 21:44:44.000000000 +0900
++++ util_diff.in 2013-10-28 17:48:33.000000000 +0100
@@ -14,7 +14,8 @@
# Determine if this is a new port
if [ "${MODE}" = "" ]
@@ -24,24 +24,24 @@
+ if [ "${DIFF_MODE}" = "" ]
then
- DIFF_MODE="/usr/ports"
-+ if [ -d /usr/ports/.svn ]
++ if [ -d ${PORTSDIR}/.svn ]
+ then
+ DIFF_MODE="SVN"
+ else
-+ DIFF_MODE="/usr/ports"
++ DIFF_MODE="${PORTSDIR}"
+ fi
+ echo "Default diff mode is ${DIFF_MODE}"
+ elif [ "${DIFF_MODE}" = "SVN" ]
+ then
+ # If there is no .svn directory then
-+ # fallback to diffing against /usr/ports tree
-+ if [ ! -d /usr/ports/.svn ]
++ # fallback to diffing against ${PORTSDIR} tree
++ if [ ! -d ${PORTSDIR}/.svn ]
+ then
+ echo "Diff mode was set to ${DIFF_MODE}, but there's no .svn directory"
-+ echo -n "Trying /usr/ports ... "
-+ if [ -d /usr/ports ]
++ echo -n "Trying ${PORTSDIR} ... "
++ if [ -d ${PORTSDIR} ]
+ then
-+ DIFF_MODE="/usr/ports"
++ DIFF_MODE="${PORTSDIR}"
+ echo "found"
+ else
+ echo "not found - please choose an approriate diff mode"
--- porttools-0.99_9.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list