pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg package-install with DESTDIR should pass...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/adfaed8c8a71
branches:  trunk
changeset: 554355:adfaed8c8a71
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Feb 13 11:30:07 2009 +0000

description:
package-install with DESTDIR should pass down -A as needed to get
automatic installed handling correct.

diffstat:

 mk/flavor/pkg/package.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r baf80e9f4755 -r adfaed8c8a71 mk/flavor/pkg/package.mk
--- a/mk/flavor/pkg/package.mk  Fri Feb 13 11:21:07 2009 +0000
+++ b/mk/flavor/pkg/package.mk  Fri Feb 13 11:30:07 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: package.mk,v 1.16 2008/01/23 14:07:07 rillig Exp $
+# $NetBSD: package.mk,v 1.17 2009/02/13 11:30:07 joerg Exp $
 
 PKG_SUFX?=             .tgz
 PKGFILE?=              ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
@@ -141,5 +141,8 @@
        @${SED} -e 's|@cwd ${_CROSS_DESTDIR}|@cwd |' ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS > ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS.tmp
        @${MV} ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS.tmp ${_PKG_DBDIR}/${PKGNAME:Q}/+CONTENTS
 .else
-       ${PKG_ADD} ${PKGFILE}
+       case ${_AUTOMATIC:Q}"" in                                       \
+       [yY][eE][sS])   ${PKG_ADD} -A ${PKGFILE} ;;                     \
+       *)              ${PKG_ADD} ${PKGFILE} ;;                        \
+       esac
 .endif



Home | Main Index | Thread Index | Old Index