diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-03 13:56:28 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-03 13:56:28 +0000 |
commit | 1abf04d143a26ac579754ce2fdb729af1a6381f4 (patch) | |
tree | 3f98c7859b426be0047e4cfc67d2c21ae4a7035b | |
parent | ae3144e637dc24353cf6e81937d6d105acfc4798 (diff) | |
download | pkgsrc-1abf04d143a26ac579754ce2fdb729af1a6381f4.tar.gz |
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.
-rw-r--r-- | mk/bsd.pkg.defaults.mk | 6 | ||||
-rw-r--r-- | mk/bsd.pkg.mk | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/mk/bsd.pkg.defaults.mk b/mk/bsd.pkg.defaults.mk index e40b8268912..892f6a19bc8 100644 --- a/mk/bsd.pkg.defaults.mk +++ b/mk/bsd.pkg.defaults.mk @@ -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. diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index bfa57cf77e0..fd8d6837164 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -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 |