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.
This commit is contained in:
jlam 2003-09-03 13:56:28 +00:00
parent 1a67402f7c
commit 1a2276974b
2 changed files with 7 additions and 4 deletions

View file

@ -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 @@ DISTDIR?= ${_PKGSRCDIR}/distfiles
# 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.

View file

@ -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 @@ print-PLIST:
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