summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/version
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2001-09-18 17:56:44 +0000
committerbmah <bmah@FreeBSD.org>2001-09-18 17:56:44 +0000
commite0b6c6ba368ae45214caaed6aaf603d11a1e2154 (patch)
tree5b71bcda08f94cc283aa76a1d68fce59d40d4082 /usr.sbin/pkg_install/version
parent8fc7300a95e7a67875fbaddc3d784cab4b6cbfb5 (diff)
downloadFreeBSD-src-e0b6c6ba368ae45214caaed6aaf603d11a1e2154.zip
FreeBSD-src-e0b6c6ba368ae45214caaed6aaf603d11a1e2154.tar.gz
Support the use of ${PORTSDIR} to find a ports tree INDEX file in
an other-than-default location. PR: bin/30350 Submitted by: "NINOMIYA Hideyuki <NINOMIYA Hideyuki" <nin@jp.FreeBSD.org> MFC after: 3 days
Diffstat (limited to 'usr.sbin/pkg_install/version')
-rwxr-xr-xusr.sbin/pkg_install/version/pkg_version.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/version/pkg_version.pl b/usr.sbin/pkg_install/version/pkg_version.pl
index 9c1b91d..c65d2d4 100755
--- a/usr.sbin/pkg_install/version/pkg_version.pl
+++ b/usr.sbin/pkg_install/version/pkg_version.pl
@@ -45,8 +45,8 @@ $OriginCommand = '/usr/sbin/pkg_info -qo';
$GetPkgNameCommand = 'make -V PKGNAME';
#$IndexFile = "ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/INDEX";
-$PortsDirectory = '/usr/ports';
-$IndexFile = '/usr/ports/INDEX';
+$PortsDirectory = $ENV{PORTSDIR} || '/usr/ports';
+$IndexFile = "$PortsDirectory/INDEX";
$ShowCommandsFlag = 0;
$DebugFlag = 0;
$VerboseFlag = 0;
OpenPOWER on IntegriCloud