Source-Changes archive

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

CVS commit: [pkgviews] src/usr.sbin/pkg_install



Module Name:    src
Committed By:   jlam
Date:           Sun Aug 17 04:55:24 UTC 2003

Modified Files:
        src/usr.sbin/pkg_install/add [pkgviews]: add.h main.c perform.c
            pkg_add.1
        src/usr.sbin/pkg_install/lib [pkgviews]: lib.h version.h
        src/usr.sbin/pkg_install/view [pkgviews]: pkg_view.1 pkg_view.sh

Log Message:
Teach pkg_add(1) to add the package to the default view when it's
finished copying the files into place.  Correctly distinguish between
"overwrite" and "pkgviews" packages to decide whether to add it to a
view.  Make pkg_add(1) understand three new flags to facilitate this
new behaviour:
------------------------------
OPTIONS
    -L      Don't add the package to any views after installation.

    -W viewbase
             Set viewbase as the base directory for the managed views.
             The default viewbase directory is set by pkg_view(1).

    -w view
            Set the view to which packages should be added after
            installation.  The default view is the empty view but may
            be overridden by the PKG_VIEW environment variable.

ENVIRONMENT
    PKG_VIEW
            The default view can be specified in the PKG_VIEW
            environment variable.
------------------------------
Also alphabetize the options and flags in both the source code and the
man page so they're easier to read.

Change the flags on pkg_view(1) to match similar flags in pkg_add(1),
so "-v" now means "be verbose" while the "-W" and "-w" flags set the
viewbase and view, respectively.  PKG_VIEWBASE may be set in the
environment to override the default viewbase value (/usr/pkg).  Drop
all references to "-p" and PREFIX (which are now "-W" and PKG_VIEWBASE).

Bump the pkg_install version to 20030809.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.5.6.1 src/usr.sbin/pkg_install/add/add.h
cvs rdiff -r1.25.2.2 -r1.25.2.3 src/usr.sbin/pkg_install/add/main.c
cvs rdiff -r1.70.2.3 -r1.70.2.4 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.33.4.1 -r1.33.4.2 src/usr.sbin/pkg_install/add/pkg_add.1
cvs rdiff -r1.43.2.3 -r1.43.2.4 src/usr.sbin/pkg_install/lib/lib.h
cvs rdiff -r1.13.4.8 -r1.13.4.9 src/usr.sbin/pkg_install/lib/version.h
cvs rdiff -r1.1.2.7 -r1.1.2.8 src/usr.sbin/pkg_install/view/pkg_view.1
cvs rdiff -r1.1.2.20 -r1.1.2.21 src/usr.sbin/pkg_install/view/pkg_view.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index