From 983dc15ba8f877d94d8e2b8c777deb8199f4ec99 Mon Sep 17 00:00:00 2001 From: erwin Date: Fri, 4 Aug 2006 12:34:50 +0000 Subject: 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 --- ports-mgmt/pkg_install-devel/pkg-deinstall | 4 ++-- ports-mgmt/pkg_install-devel/pkg-install | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ports-mgmt') 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 -- cgit