pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Don't restrict the user to only the default view. ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/272ec9ea49b7
branches: trunk
changeset: 460731:272ec9ea49b7
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Sep 03 13:56:28 2003 +0000
description:
Don't restrict the user to only the default view. Also allow user to
customize the default view through setting DEFAULT_VIEW in /etc/mk.conf.
diffstat:
mk/bsd.pkg.defaults.mk | 6 +++++-
mk/bsd.pkg.mk | 5 ++---
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 88a356125318 -r 272ec9ea49b7 mk/bsd.pkg.defaults.mk
--- a/mk/bsd.pkg.defaults.mk Wed Sep 03 13:42:44 2003 +0000
+++ b/mk/bsd.pkg.defaults.mk Wed Sep 03 13:56:28 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.defaults.mk,v 1.177 2003/09/02 06:59:41 jlam Exp $
+# $NetBSD: bsd.pkg.defaults.mk,v 1.178 2003/09/03 13:56:28 jlam Exp $
#
# A file providing defaults for pkgsrc and the packages collection.
@@ -153,6 +153,10 @@
# Possible: any directories
# Default: none
+DEFAULT_VIEW?= ""
+# This is the default view to which packages are added after installation.
+# Default: "" (the empty view)
+
PKG_INSTALLATION_PREFS?= overwrite pkgviews
# This is a whitespace-separated list of installation types to try when
# building a package, in order of preference.
diff -r 88a356125318 -r 272ec9ea49b7 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Wed Sep 03 13:42:44 2003 +0000
+++ b/mk/bsd.pkg.mk Wed Sep 03 13:56:28 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1254 2003/09/02 23:38:56 seb Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1255 2003/09/03 13:56:29 jlam Exp $
#
# This file is in the public domain.
#
@@ -4440,8 +4440,7 @@
BUILD_VIEWS?= yes
.endif
-# XXX Only support the standard view.
-PKGVIEWS= ""
+PKGVIEWS+= ${DEFAULT_VIEW}
# Fake installation of package so that user can pkg_delete it later.
# Also, make sure that an installed package is recognized correctly in
Home |
Main Index |
Thread Index |
Old Index