diff options
author | erwin <erwin@FreeBSD.org> | 2006-08-04 20:34:50 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2006-08-04 20:34:50 +0800 |
commit | 983dc15ba8f877d94d8e2b8c777deb8199f4ec99 (patch) | |
tree | b75af0a340e3a5fb325b96ab4419867bc2a7a996 /ports-mgmt | |
parent | 0aec5ee33513f1341433ac3950105867e7edbae9 (diff) | |
download | freebsd-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-deinstall | 4 | ||||
-rw-r--r-- | ports-mgmt/pkg_install-devel/pkg-install | 4 |
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 |