summaryrefslogtreecommitdiffstats
path: root/ports-mgmt/pkg_install-devel
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2006-08-04 12:34:50 +0000
committererwin <erwin@FreeBSD.org>2006-08-04 12:34:50 +0000
commit983dc15ba8f877d94d8e2b8c777deb8199f4ec99 (patch)
treeb75af0a340e3a5fb325b96ab4419867bc2a7a996 /ports-mgmt/pkg_install-devel
parent0aec5ee33513f1341433ac3950105867e7edbae9 (diff)
downloadFreeBSD-ports-983dc15ba8f877d94d8e2b8c777deb8199f4ec99.zip
FreeBSD-ports-983dc15ba8f877d94d8e2b8c777deb8199f4ec99.tar.gz
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/pkg_install-devel')
-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 08ffba9..32c71c3 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 72ac81e..f291728 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
OpenPOWER on IntegriCloud