aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2006-08-04 20:34:50 +0800
committererwin <erwin@FreeBSD.org>2006-08-04 20:34:50 +0800
commit983dc15ba8f877d94d8e2b8c777deb8199f4ec99 (patch)
treeb75af0a340e3a5fb325b96ab4419867bc2a7a996 /ports-mgmt
parent0aec5ee33513f1341433ac3950105867e7edbae9 (diff)
downloadfreebsd-ports-gnome-983dc15ba8f877d94d8e2b8c777deb8199f4ec99.tar.gz
freebsd-ports-gnome-983dc15ba8f877d94d8e2b8c777deb8199f4ec99.tar.zst
freebsd-ports-gnome-983dc15ba8f877d94d8e2b8c777deb8199f4ec99.zip
Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support for DESTDIR undefined. This does allow us to start testing ports with DESTDIR set, but this is as of yet not supported. Although this has been extensively tested on pointyhat, this is a very intrusive change and some cases may have been overlooked. Please contact Gabor and me if you find any. PR: 100555 Submitted by: gabor Sponsored by: Google Summer of Code 2006
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/pkg_install-devel/pkg-deinstall4
-rw-r--r--ports-mgmt/pkg_install-devel/pkg-install4
2 files changed, 4 insertions, 4 deletions
diff --git a/ports-mgmt/pkg_install-devel/pkg-deinstall b/ports-mgmt/pkg_install-devel/pkg-deinstall
index 08ffba959763..32c71c3ad15f 100644
--- a/ports-mgmt/pkg_install-devel/pkg-deinstall
+++ b/ports-mgmt/pkg_install-devel/pkg-deinstall
@@ -10,9 +10,9 @@ BACKUPDIR=/var/backups
PREFIX=${PKG_PREFIX:-/usr/local}
if [ "${PREFIX}" = "/usr" ]; then
- MANPREFIX="${PREFIX}/share"
+ MANPREFIX="${TARGETDIR}/share"
else
- MANPREFIX="${PREFIX}"
+ MANPREFIX="${TARGETDIR}"
fi
case $2 in
diff --git a/ports-mgmt/pkg_install-devel/pkg-install b/ports-mgmt/pkg_install-devel/pkg-install
index 72ac81eaf581..f29172829e88 100644
--- a/ports-mgmt/pkg_install-devel/pkg-install
+++ b/ports-mgmt/pkg_install-devel/pkg-install
@@ -13,9 +13,9 @@ TOOLS="add check create delete info sign update version"
PREFIX=${PKG_PREFIX:-/usr/local}
if [ "${PREFIX}" = "/usr" ]; then
- MANPREFIX="${PREFIX}/share"
+ MANPREFIX="${TARGETDIR}/share"
else
- MANPREFIX="${PREFIX}"
+ MANPREFIX="${TARGETDIR}"
fi
case $2 in