pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Add support for @pkgdir for non-destdir ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/735c33bc35f2
branches:  trunk
changeset: 557900:735c33bc35f2
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Apr 24 14:02:41 2009 +0000

description:
Add support for @pkgdir for non-destdir installation.

diffstat:

 mk/flavor/pkg/install.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 6a513fe5bb6b -r 735c33bc35f2 mk/flavor/pkg/install.mk
--- a/mk/flavor/pkg/install.mk  Fri Apr 24 14:00:25 2009 +0000
+++ b/mk/flavor/pkg/install.mk  Fri Apr 24 14:02:41 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.13 2008/11/29 13:54:45 rillig Exp $
+# $NetBSD: install.mk,v 1.14 2009/04/24 14:02:41 joerg Exp $
 #
 # _flavor-check-conflicts:
 #      Checks for conflicts between the package and installed packages.
@@ -69,5 +69,7 @@
        esac
        ${RUN}${_FULL_DEPENDS_CMD} |                                    \
                ${SORT} -u | ${_REGISTER_DEPENDENCIES} ${PKGNAME}
+       ${RUN}${GREP} '^@pkgdir ' < ${_PKG_DBDIR}/${PKGNAME}/+CONTENTS | \
+           while read tag dir; do ${MKDIR} ${PREFIX}/$$dir; done
 
 _flavor-install-clean: .PHONY _flavor-clean-metadata



Home | Main Index | Thread Index | Old Index