History log of /freebsd-10-stable/usr.sbin/pkg_install/create/pkg_create.1
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 243554 26-Nov-2012 eadler

Provide an option to users to shoot themselves in the foot.

Reviewed by: bapt
Approved by: cperciva
MFC after: 1 month


# 228990 30-Dec-2011 uqs

Spelling fixes for usr.sbin/


# 213718 12-Oct-2010 flz

- Add support for xz compression to pkg_create, bzip2 remains the default
compression algorithm.
- Bump PKG_INSTALL_VERSION to 20101012.

Submitted by: mm
MFC after: 1 month


# 179433 30-May-2008 flz

- Add long options to pkg_install.
- Remove check for '-?' as it's not listed in authorized options.
- Bump PKG_INSTALL_VERSION to 20080530.


# 179352 27-May-2008 keramida

Add a -n option to pkg_create(1), to inhibit duplicate work.

When run without this option, multiple runs of `pkg_create -Rb' will
recreate common packages multiple times. This can take a lot of time
for large packages. With the -n option `pkg_create -b' checks with
stat(2) and skips packages that already exist.

Note that this may *not* be safe of the existing output file is not
really a package, or if it has been corrupted, modified or otherwise
tinkered with between subsequent pkg_create runs. For this and POLA
reasons, the default behavior is to *rebuild* the packages, and the -n
option can be used when we know it is `safe' to run in no-regenerate
mode.

Inspired by: A post to freebsd-questions
by Matthias Apitz &lt; matthias.apitz at oclc.org &gt;
Reviewed by: marcus, flz
Approved by: marcus
MFC after: 2 weeks


# 174475 09-Dec-2007 krion

Backout previous commit, since it's done without maintainers
approval. These changes were approved by adding it as port to
ports/ tree, but not for src/. I talked to PR submitter and miwi@
some days ago and explained the reasons for it, the both were agree
to add it to ports/ only.


# 174472 09-Dec-2007 obrien

Add the 'pkg_search' script.
This makes it easier to figure what packages you want to install.

Submitted by: Matthias Schmidt <schmidtm @ mathematik . uni-marburg . de>


# 154102 07-Jan-2006 krion

When using @cwd %%FOO%%, we must ensure to return in the original
prefix later, but doing so with @cwd %%OLDPREFIX%% (having
PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
list. That's not really a problem when dealing with ports but that's
a problem with packages since pkg_add -p option only overrides the
first @cwd occurrence.

This patch allow us to use @cwd without any argument. If no
directory argument is given, it will set current working directory
to the first prefix given by the @cwd command.

PR: bin/77212
Submitted by: flz


# 152210 08-Nov-2005 krion

Introduce 3 new options for pkg_create(1), -x for using basic
regular expressions for pkg-name, -E for extended regexps and -G for
exact matching.

Submitted by: mux
MFC after: 3 days


# 147632 27-Jun-2005 jmg

remove a few uses of the word `really'

Reviewed by: hrs
Approved by: re (scottl)
MFC after: 1 week


# 147527 22-Jun-2005 ru

Fix last commit.

Approved by: re (blanket)


# 147381 14-Jun-2005 krion

Implement @noinst field which has at the moment the same meaning and
function as @comment has. But will be valid only for files and not
for md5 sums, rcsid's and comments in the future.

Submitted by: flz
Approved by: re@ (scottl)


# 147377 14-Jun-2005 ru

Markup fixes.

Approved by: re (blanket)


# 147043 06-Jun-2005 sobomax

Add -R modifier for the mode when pkg_create(8) creates package file
from the locally installed package. When this modifier is specified
pkg_create(8) will also create package files for all packages on
which that locally installed package depends.

MFC after: 5 days


# 141851 13-Feb-2005 ru

Expand contractions.


# 141846 13-Feb-2005 ru

Expand *n't contractions.


# 131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 131277 29-Jun-2004 eik

- pkg_create: new flag -S (clean room installation)

- pkg_create: checksum meta files too

PR: 66032


# 119490 26-Aug-2003 roam

Clarify the order of arguments passed to the pre-/post-install script
in the description of the pkg_create -i command-line option.

PR: 55477
Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu>
MFC after: 5 weeks


# 113594 17-Apr-2003 kris

* Add explicit conflict-checking to the package tools. Packages can
register a list of other packages with which they conflict (via the
-C option to pkg_create), and they will refuse to install (unless -f is
specified) if one of the listed packages is already present.

* Update documentation for the new feature as well as fleshing out some
existing documentation.

* Bump PKG_INSTALL_VERSION so this feature can be tested for.

Submitted by: Sergey Matveychuk <sem@ciam.ru>
PR: bin/47145
MFC after: 2 weeks


# 108317 27-Dec-2002 schweikh

english(4) police.


# 101338 04-Aug-2002 knu

Drop support for the .tbz2 suffix. One would not want pkg_create(1)
to create "pkgname.tbz" when one specifies "pkgname.tbz2".

MFC after: 1 week


# 97832 04-Jun-2002 obrien

Grammar nit.

Submitted by: keramida


# 97563 30-May-2002 ru

mdoc(7) police: markup nits.


# 96759 16-May-2002 eric

Remove cross reference to pkg_update(1).

Submitted by: dd


# 96076 05-May-2002 sobomax

New feature: allow origins of all dependencies be recorded into package list
using new `@comment DEPORIGIN:...' directive. This would allow us to make
many neat things including:

- easier binary upgrades;
- source upgrades without using external tools by simply extending
bsd.port.mk and pkg_install tools;
- mixed-mode upgrades (source + binary);
- depreciate and deorbit silly +REQUIRED_BY files in the near future.

This feature is no-op until appropriate bsd.port.mk patch is committed, and
even when it is already committed packages generated will remain 100%
compatible with old set of pkg_install tools (module all those neat
features, of course).

MFC after: 6 days


# 95161 20-Apr-2002 obrien

Improve the Bzip2 handling.

Sponsored by: FreeBSD Mall, Inc.


# 89393 15-Jan-2002 keramida

Add pkg_update to the SEE_ALSO manpage of pkg_create.

PR: docs/33666
Submitted by: Tom Rhodes <darklogik@pittgoth.com>


# 84671 08-Oct-2001 sobomax

(forced)

Forgot to mention: creation of a full-fleged package archive requires some
changes in bsd.ports.mk, because currently it doesn't install some files
that are usually packed into the package archive (+MTREE_DIRS, +DISPLAY
and so on). Support for this will be committed later.


# 84670 08-Oct-2001 sobomax

- Allow package archive to be created from a locally installed package. This
allows for an easy way to backup old version of port prior to installing
a new one;
- silence compiler warnings by killing some unused variables and adding
all includes necessary.

MFC after: 2 weeks


# 79755 15-Jul-2001 dd

Remove whitespace at EOL.


# 79537 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


# 73233 28-Feb-2001 ru

Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.


# 72776 20-Feb-2001 jkh

Use the more logical author syntax from pkg_version and quote
email addresses properly.


# 71898 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


# 71376 22-Jan-2001 sobomax

Use .Pa instead of .Dq.

Submitted by: ru


# 71373 22-Jan-2001 sobomax

- Add ability to handle bzip2-compressed packages;
- fix cosmetics to shut-up compiler in -pedantic mode (axe several unused vars
and provide default clause in several switch() statements).

No response from: -ports


# 71263 19-Jan-2001 ru

mdoc(7) police: removed leading whitespaces that are not inside
Bd/Ed; these hardly degrade the quality of the produced output.


# 70403 27-Dec-2000 ru

Prepare for mdoc(7)NG.


# 68716 14-Nov-2000 ru

Use Fx macro wherever possible.


# 67454 23-Oct-2000 sobomax

Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to record
a path of the port from which package has been created within FreeBSD Ports
Collection and will be used to improve pkg_version(1) and similar tools.

Reviewed by: ports@FreeBSD.org, jkh
Approved by: jkh


# 57673 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 57628 29-Feb-2000 jhb

Add cross references to pkg_version(1) in all the other pkg_* man pages.
Also, add a cross reference to pkg_info(1) in pkg_version(1). Finally,
in pkg_version(1), don't put a period at the end of the list of see also
man pages.

Noticed by: Matt Ayres <matta@fast.net>


# 57528 27-Feb-2000 kris

pkg_create doesn't use more(1) for displaying +DISPLAY files, it
just cats it to stdout.


# 56885 29-Jan-2000 chris

Grammar fix: ``Different than'' should be ``different from''.


# 51142 11-Sep-1999 max

Document the fact that pkg_add/delete passes INSTALL/DEINSTALL
respectively to rscript.


# 50741 01-Sep-1999 jkh

Use the appropriate macro for double quotes rather than using double
quotes.

Submitted by: Alexey Zelkin <phantom@cris.net>
PR: 13436


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 49824 15-Aug-1999 mpp

Various man page cleanup:

- Sort xrefs.
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlined in mdoc(7).
- Other misc mdoc cleanup.

PR: doc/13144
Submitted by: Alexey M. Zelkin <phantom@cris.net>


# 41866 16-Dec-1998 jkh

Make it possible to have separate install scripts as well as have
an on-delete script.

Submitted by: Rajesh Vaidheeswarran <rv@fore.com>


# 37166 26-Jun-1998 jkoshy

Document environment variables used by pkg_{add,create,info}. These
include PKG_TMPDIR, TMPDIR, PKG_DBDIR. Add a FILES section to these
manual pages.

PR: docs/7064


# 36322 24-May-1998 steve

Loosely document the '-s' commandline option.

PR: 6713


# 34809 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


# 30221 08-Oct-1997 charnier

Use err(3). Cosmetics in usage string and man page.


# 29889 27-Sep-1997 hoek

Document pkg_add's dependency auto-install. While I'm here, fix
a couple typos, and consistent double-spacing after sentences.

This is actually a spinoff from the "ports-current discontinued"
blow-up some time ago.

Ack'd by: jkh


# 27137 01-Jul-1997 jkh

Change the naming conventions for preserve'd files and also document
the option in pkg_create. Now preserved files start with a . and are
named .<filename>.<pkgname>.backup so that their purpose is more clear.

Note that just using the preserve option without proper pkg_deps
is also foolish since packages being deleted in the incorrect order with
preserve on can generate some odd results.


# 26745 19-Jun-1997 jkh

Fix multiple documentation bogons.
PR: 3798
Submitted by: Jan Kuriyama <kuriyama@opt.phys.waseda.ac.jp>


# 25394 02-May-1997 max

Minor typo.
PR: 3473
Submitted by: Josh Gilliam <soil@quick.net>


# 22997 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 15135 08-Apr-1996 mpp

Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.


# 14045 12-Feb-1996 mpp

Another round of man page cleanups.

Down to only about 100 items left to cleanup! :-)


# 7986 21-Apr-1995 jkh

1. Add proper dependencies to the library in my Makefiles. This was pointed
out by Bruce.
2. Add a "feature" to pkg_create (OK, OK, it's a miserable hack!) to get
it to dump its internal packing list out so that the `fake-pkg' rule in
bsd.port.mk can generate a more meaningful packing list.


# 7713 09-Apr-1995 jkh

Add true support for dependency lists.

1. pkg_create now has a -P argument for specifying dependencies on the
command line.
2. pkg_add will honor dependencies and chain-load them automatically if
it finds the required package(s) in the same directory as the package
that is being loaded. For best results, install packages from a directory
containing all the packages you'll possibly need
(like /usr/ports/packages/all).

2 remaining flaws:

1. pkg_add looks in one place (where you were when you loaded the primary
pkg) for depended packages. If you can come up with a search path scheme
that's not a total hack - be my guest!

2. Recursive dependency expansion can result in the name of a dep being
listed more than once. This doesn't bother pkg_add since it checks
for package existance with pkg_info and will skip already-loaded packages.
I don't know how/if pkg_delete handles this yet, however. I need to look
into it.


# 5410 05-Jan-1995 jkh

Whoops! How embarassing. Just now noticed that I forget to update the .Os
lines. Done.


# 5408 05-Jan-1995 jkh

Fix misleading typo in description of @unexec.


# 4997 05-Dec-1994 jkh

More changes from John T. Kohl. Man pages, mostly.
Submitted by: jtkohl


# 2331 28-Aug-1994 jkh

Add @srcdir option for customizing creation of packages.
Submitted by: jkh


# 1520 19-May-1994 alm

Add `-h' option to force tar to follow symbolic links


# 1337 05-Apr-1994 jkh

Add -N and -Y flags for auto-answer feature.


# 478 18-Sep-1993 jkh

Doc new % sequence expansion for command execution.
Fixed bad verbose message.


# 445 12-Sep-1993 jkh

Added and doc'd -X flag to pkg_create that allows you to specify an exclude
list for the final package.


# 403 06-Sep-1993 jkh

Doc'd option for current directory prefix in @exec


# 383 05-Sep-1993 jkh

Made staging area configurable rather than assuming /tmp (-t)


# 379 03-Sep-1993 jkh

Lots of misc tweaks, support for arbitrary separators in pkg_info, more
intelligent name handling in pkg_create. Most of these files are changed
because of rcsid's being different in my cvs tree and freefall's (foo).


# 328 25-Aug-1993 jkh

This commit was generated by cvs2svn to compensate for changes in r327,
which included commits to RCS files with non-trunk default branches.


# 327 25-Aug-1993 jkh

The release version of my package install suite. Please see man pages
for info.