Commit Graph

558 Commits

Author SHA1 Message Date
krion
c2aa29b013 MFC: lib.h: 1.58
date: 2006/04/17 11:15:29;  author: krion;  state: Exp;  lines: +5 -3
  Add INDEX-7 and remove trailing spaces.
2006-05-14 07:06:37 +00:00
krion
82bf3bef5d MFC: main.c: 1.38
date: 2006/04/17 10:58:45;  author: krion;  state: Exp;  lines: +6 -1
  Use bzip2(1) by default to compress package tarball on
  __FreeBSD_version >= 500039.

  Submitted by:   Alex Lyashkov <umka@sevcity.net>
2006-05-14 07:01:47 +00:00
krion
feaf609fc2 MFC: sign.c: 1.5, x509.c: 1.5
date: 2006/03/15 01:19:23;  author: krion;  state: Exp;  lines: +13 -10
  Close descriptor in retrieve_x509_marker function.

  PR:             bin/71594
  Submitted by:   Dan Lukes <dan@obluda.cz>
2006-05-14 06:57:58 +00:00
krion
d433ebce18 MFC: add.h: 1.14, main.c: 1.67, perform.c: 1.80, pkg_add.1: 1.71
date: 2006/03/09 14:49:19;  author: phk;  state: Exp;  lines: +6 -1
  Add -F option to not fail on already installed packages.

  Submitted by:   Eugene Grosbein <eugen@grosbein.pp.ru>
2006-05-14 06:52:24 +00:00
scottl
fa872b0d99 Set pointer to 6.1-STABLE.
Approved by: re
2006-05-06 07:44:56 +00:00
krion
846e0cb061 MFC: perform.c: 1.15
date: 2006/02/12 16:09:33;  author: krion;  state: Exp;  lines: +5 -4
  Fix pkg_version with the -o argument to print the origin.

Approved by:	re (scottl)
2006-02-22 16:28:42 +00:00
krion
be897ab3b0 MFC: pkg_add.1:1.70
date: 2006/01/29 20:30:55;  author: krion;  state: Exp;  lines: +1 -1
  Fix typo.
2006-01-31 18:33:59 +00:00
flz
491b3507c0 MFC:
Add -K option to pkg_add and pkg_info.
  This option saves packages to PKGDIR (if defined or current directory by default)
  as they are downloaded.
  Silent a warning when -n is used and package has a +DISPLAY file.

      src/usr.sbin/pkg_install/info/perform.c: rev 1.53 -> 1.54
      src/usr.sbin/pkg_install/add/main.c: rev 1.65 -> 1.66
      src/usr.sbin/pkg_install/lib/lib.h: rev 1.56 -> 1.57
      src/usr.sbin/pkg_install/info/pkg_info.1: rev 1.55 -> 1.56
      src/usr.sbin/pkg_install/add/add.h: rev 1.12 -> 1.13
      src/usr.sbin/pkg_install/add/pkg_add.1: rev 1.68 -> 1.69
      src/usr.sbin/pkg_install/add/perform.c: rev 1.78 -> 1.79
      src/usr.sbin/pkg_install/info/info.h: rev 1.28 -> 1.29
      src/usr.sbin/pkg_install/lib/url.c: rev 1.4 -> 1.5
      src/usr.sbin/pkg_install/info/main.c: rev 1.48 -> 1.49
2006-01-16 19:51:41 +00:00
krion
742f52a8cb MFC: add/extract.c:1.44 create/perform.c:1.82 create/pkg_create.1:1.70 create/pl.c:1.28
info/show.c:1.40 lib/plist.c:1.51

  date: 2006/01/07 22:10:57;  author: krion;  state: Exp;  lines: +10 -3
  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
2006-01-10 22:17:08 +00:00
krion
7ba5cae87f MFC: pkg_info.1:1.55
date: 2005/11/23 10:31:59;  author: krion;  state: Exp;  lines: +4 -1
  Document PKG_PATH enviroment variable.

  Prodded by:     Mark Andrews <Mark_Andrews AT isc DOT org>
2005-11-26 20:58:43 +00:00
krion
b84a59c16c MFC: add.h:1.12, main.c:1.65, perform.c:1.78, pkg_add.1:1.67
date: 2005/11/12 11:45:01;  author: krion;  state: Exp;  lines: +9 -2
  Add -P flag, it does the same as the -p option, except that the
  given prefix is also used recursively for the dependency packages,
  if any.  If the -P flag appears after any -p flag on the
  command line, it overrides it's effect, causing pkg_add to use the
  given prefix recursively.

  PR:             bin/75742
  Submitted by:   Frerich Raabe <raabe AT kde DOT org>
2005-11-17 18:08:58 +00:00
krion
fcf279ed57 MFC: create.h:1.26, main.c:1.37, perform.c:1.81, pkg_create.1:1.69
date: 2005/11/08 20:48:26;  author: krion;  state: Exp;  lines: +1 -0
  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.
  These new options are only meaningful when using the -b flag of pkg_create(1),
  and that the default for the -b parameter is now to do glob matching, as in
  other pkg_foo utilities that support package patterns.

  Submitted by:   mux
2005-11-11 08:08:04 +00:00
krion
52d44b2349 MFC: perform.c:1.14 test-pkg_version.sh:1.6
date: 2005/10/10 12:35:30;  author: krion;  state: Exp;  lines: +9 -4
  * pkg_version(1) exits if INDEX files is not found and -I is not
    specified.  The result is that the package will be listed with a '?'
    as if it was not found within the INDEX file, so fix this behaviour.
  * Remove trailing spaces.

  PR:             bin/87136
  Submitted by:   Sean Farley <sean-freebsd at farley dot org>

Approved by:	re
2005-10-29 15:49:01 +00:00
krion
1a3c5849ac MFC: delete/main.c:1.27 info/main.c:1.48
Fix pkg_info(1) and pkg_delete(1) to handle properly packages which
  names start with a digit.

  PR:             bin/76858
  Submitted by:   Matthew D. Fuller <fullermd@over-yonder dot net>

Approved by:	re
2005-10-29 15:27:12 +00:00
murray
9588946104 MFC: look for packages in the packages-6-release directory when
appropriate.

Reviewed by:	portmgr (kris@)
Approved by:	re (scottl@)
2005-10-27 18:36:13 +00:00
krion
1f7ce2bb5e MFC: 1.20
date: 2005/09/24 21:41:47;  author: krion;  state: Exp;  lines: +1 -1
  Do not bitch about bsdpan modules not having origin.

  Based on PR:    bin/82269
  Submitted by:   Steven Hartland <killing at multiplay dot co dot uk>
  MFC after:      3 days

Approved by:	re (kensmith)
2005-09-27 13:39:06 +00:00
krion
79857f671c MFC: 1.39
date: 2005/09/24 19:41:56;  author: krion;  state: Exp;  lines: +1 -1
    Remove '\n' since it's redundant in case if file doesn't exist while
    running 'pkg_info -g'

    Based on PR:    bin/42609
    Submitted by:   Jeff King <peff-freebsd at peff dot net>
    MFC after:      3 days

Approved by:	re (kensmith)
2005-09-27 13:37:53 +00:00
krion
7be509ace2 MFC: main.c:1.6, perform.c:1.13, pkg_version.1:1.36, version.h:1.5
date: 2005/07/27 07:55:12;  author: krion;  state: Exp;  lines: +12 -2
  Add -o/-O options to pkg_version:

   -o  Show the origin recorded on package generation instead of the
       package name.

   -O  Only list packages whose registered origin is origin.

Approved by:	re (kensmith)
2005-07-29 18:16:06 +00:00
kensmith
82510c3511 Retro-fit packages-5.4-release entry.
Approved by:	re (implicit)
2005-07-11 16:14:21 +00:00
jmg
2b127a2a33 remove a few uses of the word `really'
Reviewed by:	hrs
Approved by:	re (scottl)
MFC after:	1 week
2005-06-27 17:10:22 +00:00
ru
358a6ebffe Fix last commit.
Approved by:	re (blanket)
2005-06-22 12:15:16 +00:00
krion
bf5c726c06 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)
2005-06-14 15:05:43 +00:00
ru
f4251aff5d Markup fixes.
Approved by:	re (blanket)
2005-06-14 12:26:36 +00:00
des
2bb8de20fe Remove kludges intended to support src trees with partial obj trees.
Discussed with:	ru
2005-06-10 06:12:53 +00:00
sobomax
4761ca06ab 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
2005-06-06 03:24:14 +00:00
cperciva
a2e5c5c0f4 Add an -I option to pkg_version:
-I  Use only the index file for determining if a package is out of
      date.  This is much faster than using the version number from a
      port's Makefile, at the expense of potentially giving an incor-
      rect result if the index file is out of date.

Without this option, the index file is only consulted if "make -V PKGNAME"
cannot be used.

Approved by:	portmgr (krion)
2005-05-24 08:26:44 +00:00
marcus
9811c5568e Change the PATH for pkg_add to be the same used for pointyhat package builds.
This will give our users and porters a more consistent experience between
installing ports and installing packages.

Discussed with:	portmgr
2005-03-19 19:20:19 +00:00
ru
6b6b8c04f6 Expand contractions. 2005-02-13 23:45:54 +00:00
ru
1541af42f1 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ru
c05985f13f Sort sections. 2005-01-18 20:02:45 +00:00
ru
6cc4b6c220 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
ru
16dc33fabf Scheduled mdoc(7) sweep. 2005-01-11 11:47:22 +00:00
ru
6888bfb10e Add -q to usage() and mark the "index" argument as optional. 2005-01-11 11:23:59 +00:00
paul
d7b7506d38 Update the INDEX file to INDEX-6 2005-01-04 17:13:16 +00:00
paul
f6e5473a51 Use INDEX-6 for versions of FreeBSD > 600000 2005-01-04 16:18:55 +00:00
ru
f4c44b761b NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
ru
5db2b9d5b3 For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
obrien
a4ca4e84c4 Add a -q flag to pkg_version. It suppresses the output of <,=,>.
This makes it possible to "portupgrade `pkg_version -q -l '<'`".
2004-10-18 05:34:54 +00:00
obrien
3cbb3acdbd Set the real limits on 5-current, add 5-stable, add 6-current. 2004-10-17 14:36:30 +00:00
ru
12ae2e3522 Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this. 2004-08-12 20:06:01 +00:00
eik
3b431d2c42 typo
Approved by:	ru
2004-08-11 15:47:13 +00:00
eik
844af523e2 FWIIW, make the `test' target in pkg_install/version actually work. 2004-08-11 15:46:10 +00:00
cperciva
e629b37603 Join the 21st century: Cryptography is no longer an optional component
of releases.  The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by:	re (scottl), markm
Discussed on:	freebsd-current, in late April 2004
2004-08-06 07:27:08 +00:00
stefanf
7cdc27d942 Use the length modifier 'll' instead of 'q' to print long longs. 2004-07-28 16:03:13 +00:00
kan
bc35f3d1a7 Downgrade WARNS level to more tolerable value. Attempt to fix
casts as lvalue usage whenever possible.
2004-07-28 07:19:15 +00:00
ru
ac606e7e88 Eliminated double whitespace. 2004-07-03 18:35:53 +00:00
ru
6294018a20 Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
eik
3883d10711 - pkg_add spawns itself as argv[0] when installing dependent packages, to
enable the use as a port on older systems

- use absolute paths in all calls to external programs, to account for strange
  PATH settings

- use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on
  FreeBSD 4.x as a port.

- conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the
  pkg_install tools can be kept in sync on 4.x and 5.x

- Bump PKG_INSTALL_VERSION

Reviewed by:	portmgr (bento run)
MFC after:	4 weeks
2004-06-29 19:06:42 +00:00
eik
7a7a88ae41 - pkg_info: flag -r: (show packages this packages depends on (documentation change))
- pkg_info: new flag -j (show the requirements script)

- pkg_info: fix verbose output when used on packages

- better handling of corrupt entries in /var/db/pkg

- differ between corrupt entires and packages not installed

- various small fixes

PR:		56989, 57016, 57029, 26468
2004-06-29 18:59:19 +00:00
eik
9dccb05c73 - pkg_create: new flag -S (clean room installation)
- pkg_create: checksum meta files too

PR:		66032
2004-06-29 18:56:59 +00:00