Commit graph

239 commits

Author SHA1 Message Date
Aleksey Cheusov
bdbf222398 rewritten with more "standard" macroses 2008-11-06 22:07:19 +00:00
Aleksey Cheusov
09ae270e01 updated to 0.20.1
ficed: when reading DESCR files failed bad error message was output
   (`` instead of real filename)
2008-11-06 19:07:14 +00:00
Aleksey Cheusov
65bd586e36 .Bd -literal for things that should not be wrapped 2008-11-05 22:34:17 +00:00
Aleksey Cheusov
39a82a3106 more tasks 2008-11-02 17:15:06 +00:00
Aleksey Cheusov
b7354c1c27 fixed: pkglint warning 2008-10-28 09:10:39 +00:00
Aleksey Cheusov
80d3c07378 fix in version normalizing 2008-10-27 21:58:01 +00:00
Aleksey Cheusov
5249d2728b version -> 0.20.0
Regression test framework appeared (run 'bmake test').
  Regression tests for most utilities.

  FIXED: Broken pkg_src_summary -m.
  Affected versions: 0.17.0-0.19.0

  pkg_summary4view: /usr/bin/awk -f --> runawk
2008-10-26 11:17:46 +00:00
Aleksey Cheusov
cbd20d9224 fixed: broken pkg_src_summary -m
my-show-var shoud be placed after 'VARIANTS7+= ...'
2008-10-26 11:07:45 +00:00
Aleksey Cheusov
26abc22bd4 mode-sh for Emacs editor 2008-10-26 11:06:19 +00:00
Aleksey Cheusov
7f3fbdb154 pkg_summary4view: /usr/bin/awk -f --> runawk
This fixes problem with stupid Solaris's oawk, *%$*%$*%$*^$*%$
tests/test.sh: yet another fix for Solaris' stupid /bin/sh, (&^%*&^%*&%$
2008-10-23 18:25:48 +00:00
Aleksey Cheusov
eb1a1cd29d fix in regression tests 2008-10-23 18:16:19 +00:00
Aleksey Cheusov
cfc24c46eb Regression tests for 'pkg_refresh_summary', 'pkg_src_summary' and
'pkg_summary4view'
2008-10-23 16:10:19 +00:00
Aleksey Cheusov
84a8975f3f regression tests for pkg_micro_src_summary 2008-10-23 15:42:00 +00:00
Aleksey Cheusov
9184eb14a7 regression tests for pkg_list_all_pkgs 2008-10-23 15:11:56 +00:00
Aleksey Cheusov
77395d389a On Solaris pkgsrc shell replacement is used
instead of native sh*t (/bin/sh), Gr-r-r-r /-)
2008-10-22 22:16:19 +00:00
Aleksey Cheusov
dd1b973b3f Heh. Lots of todo tasks are already done :-) 2008-10-22 21:24:42 +00:00
Aleksey Cheusov
99d40b2577 package now has TEST_TARGET=test
more regression tests for pkg_cmp_summary
2008-10-22 20:17:40 +00:00
Aleksey Cheusov
9cd4efa573 initial regression tests 2008-10-22 19:20:38 +00:00
Aleksey Cheusov
899ed33d44 updated to 0.19.0
all scripts are preprocessed before installation
  (sed 's,@@bindir@@,${BINDIR},g' etc.)

  pkg_src_summary: fix for packages having more than one file listed
  in DESCR_SRC

  FIX for pkg_src_summary -p: For a huge number of packages 'make
  plist' fails because this stage requires package's sources
  extracted.  Now 'make plist' failures are not critical,
  i.e. summary for such package is generated in any case.

  fix in pkg_src_fetch_var.in: comments are removed
  PKGNAME=pkgname-ver ### trtrtr -> PKGNAME=pkgname-ver

  fix in pkg_micro_src_summary: If PKGREVISION is set to 0 (or empty)
  in Makefile (bug?), then nb0 is *not* added to PKGNAME
2008-10-22 19:15:14 +00:00
Aleksey Cheusov
2b4f4e17f0 yet another todo 2008-10-22 19:10:06 +00:00
Aleksey Cheusov
3ce7961fa1 After some thoughts I remove @@bindir@@ etc. from scripts 2008-10-22 19:09:38 +00:00
Aleksey Cheusov
4eb64c0b76 the same as previous commit but for PKGREVISION=.
`nb' should added to PKGNAME
2008-10-13 19:17:23 +00:00
Aleksey Cheusov
677090e38b pkg_micro_src_summary: If PKGREVISION is set to 0 in Makefile, then
nb0 is *not* added to PKGNAME
2008-10-13 19:14:11 +00:00
Aleksey Cheusov
f59cb05bb6 fix: comments are removed
PKGNAME=pkgname-ver ### trtrtr -> PKGNAME=pkgname-ver
2008-10-12 13:47:41 +00:00
Aleksey Cheusov
713350ca98 FIX for pkg_src_summary -p: For a huge number of packages 'make plist'
failes because this stage requires package's sources extracted.
   I made failure of 'make plist' not critical, i.e. summary for given
   package is generated in any case.
2008-10-11 10:21:35 +00:00
Aleksey Cheusov
f9d9cec756 executable are prefixed with @@bindir@@
awk modules - with @@awkmoddir@@
version -> 0.18.1
pkg_src_summary: fix for packages having more than one file listed in
   DESCR_SRC
2008-10-11 08:52:06 +00:00
Aleksey Cheusov
eb337c1b3e updated to 0.18.0 (intermediate release)
all scripts are preprocessed before installation
    (sed 's,@@bindir@@,${BINDIR},g' etc.)
2008-10-05 20:10:10 +00:00
Aleksey Cheusov
35f26665e7 update to 0.17.2
FIX: pkg_src_summary may fail for packages when fields contain
  quotes (e.g. COMMENT field for devel/apache-ant15/Makefile rev. 1.10)
2008-10-04 11:49:12 +00:00
Aleksey Cheusov
646a291ea2 updated to version 0.17.1
FIX for -A option: strip ending / symbol from dependencies
    (DEPENDS and BUILD_DEPENDS)

    www/typo3/Makefile revision 1.5
        DEPENDS+=   ...  ../../archivers/php-zlib/
                                                ^^^
                                                /
            extra slash character here --------/
2008-09-30 20:56:05 +00:00
Aleksey Cheusov
4912ffd205 update to 0.17.0
pkg_src_summary:

     Fields with empty values (like NOT_FOR=) are not printed.

     The following fields are added to the default list of fields
     generated by pkg_src_summary: NO_BIN_ON_FTP, NO_SRC_ON_FTP,
     NO_BIN_ON_CDROM, NO_SRC_ON_CDROM.

     New field ALLSRCFILES (also generated by default) - sum of
     DISTFILES and PATCHFILES prepanded with DIST_SUBDIR.

  pkg_grep_summary:

     pkg_grep_summary FIELD 'fvalue == ""' also matches packages
     with no FIELD at all. That is no field becomes synonym to
     FIELD=

     new option -e
        pkg_grep_summary -e FIELD is shorter equivalent for
        pkg_grep_summary FIELD 'fvalue == ""'
2008-09-19 23:41:59 +00:00
Aleksey Cheusov
54e1d03a68 added: -e option to pkg_grep_summary.
pkg_grep_summary -e NO_BIN_ON_FTP <equivalent_to>
   pkg_grep_summary NO_BIN_ON_FTP 'fvalue == ""'

empty field ( e.g. NO_BIN_ON_FTP= ) is equivalent to absent field.
   For example 'pkg_grep_summary -e NO_BIN_ON_FTP' now matches
   the following package summaries

     PKGNAME=dictem-0.82
     PKGPATH=textproc/dictem

     PKGNAME=distbb-0.19.1
     PKGPATH=wip/distbb
2008-09-19 21:06:11 +00:00
Aleksey Cheusov
4890d76df7 version -> 0.16.1
-h option added to pkg_list_all_pkgs
2008-09-15 18:27:00 +00:00
Aleksey Cheusov
a0a433bcde notes about PSS_OPTIONS environment variable 2008-09-13 14:17:51 +00:00
Aleksey Cheusov
dd5e5e9e5a spell checks and minor fixes 2008-09-13 10:18:11 +00:00
Aleksey Cheusov
4b6fcf25bf updates in NEWS 2008-09-13 08:31:55 +00:00
Aleksey Cheusov
b00d8c5be7 version -> 0.16.0 2008-09-13 08:23:06 +00:00
Aleksey Cheusov
75d0c1876c Code that moves/add ASSIGNMENTS to PKGPATH is separated into a separate
script "pkg_assignments2pkgpath". One application for it is distbb.
pkg_src_summary: PKGPATH enriched with variable assignments and passed
   to pkg_src_summary may contain spaces. They should be represented
   as ~.

   Example: pkg_src_summary \
     sysutils/mc:PKG_OPTIONS.mc=-x11~-subshell~-slang~-samba~ncurses~-edit
2008-09-13 08:20:54 +00:00
Aleksey Cheusov
200c67824a PSS_FIELDS is exported BEFORE recursive calls for -M and -m 2008-09-07 19:16:38 +00:00
Aleksey Cheusov
7ad7a55f22 version -> 0.15.0
Major changes

     pkg_grep_summary: in order to support summaries for multi-variant
     packages it is strongly recommented to use 'fvalue' variable in
     condition, not $2. Man page and README update accordingly.

     pkg_cmp_summary: -m option added for comparing summaries for
     multi-variant packages
     (PKGPATH=category/name:variable_assignments format).

pkg_cmp_summary -m implies -p
2008-09-07 18:17:38 +00:00
Aleksey Cheusov
4ccdd36754 FIX. Previous commits broke pkg_grep_summary 2008-09-07 17:18:08 +00:00
Aleksey Cheusov
6ddfd3350d version -> 0.14.1
FIX in pkg_src_summary: I forgot that grep's exit status may be 1 which is
    fatal if 'set -e'
pkg_cmp_summary:
    support for multi-variant package summaries.
    Option -m added for this.
pkg_grep_summary: in order to support summaries for multi-variant packages
    it is strongly recommented to use 'fvalue' variable in condition
    instead of '$2'. Man page and README update accordingly.
2008-09-07 16:53:32 +00:00
Aleksey Cheusov
d20d451093 version -> 0.14.0
Major changes

   pkg_src_summary: added option -M which implies -m and moves/adds
   ASSIGNMENTS field to PKGPATH.

     Example:

	0 ~>export PSS_FIELDS='PKGPATH PKGNAME'
	0 ~>pkg_src_summary -M lang/lua www/php-apc www/ap2-python
	PKGPATH=lang/lua
	PKGNAME=lua-5.1.3nb1

	PKGPATH=www/php-apc:PHP_VERSION_REQD=4
	PKGNAME=php4-apc-4.4.8.3.0.16

	PKGPATH=www/php-apc:PHP_VERSION_REQD=5
	PKGNAME=php5-apc-5.2.6.3.0.16

	PKGPATH=www/ap2-python:PKG_APACHE=apache2,PYTHON_VERSION_REQD=25
	PKGNAME=ap2-py25-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache2,PYTHON_VERSION_REQD=24
	PKGNAME=ap2-py24-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache2,PYTHON_VERSION_REQD=23
	PKGNAME=ap2-py23-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache22,PYTHON_VERSION_REQD=25
	PKGNAME=ap22-py25-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache22,PYTHON_VERSION_REQD=24
	PKGNAME=ap22-py24-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache22,PYTHON_VERSION_REQD=23
	PKGNAME=ap22-py23-python-3.2.10

	0 ~>
2008-09-06 22:37:17 +00:00
Aleksey Cheusov
e5ccfc7415 version -> 0.13.1
VARIANTS7 is reimplemented through pbulk's mk/pbulk/pbulk-index.mk.
   I hope this API it will not change...
2008-09-06 21:27:33 +00:00
Aleksey Cheusov
8a04b48f68 version -> 0.13.0, NEWS updated accordingly
Major changes:

   -----------------
   pkg_src_summary: new option -m added that generates summary
   for all variants of multi-variant packages
   (Python {23,24,25}, PHP {4,5}, Apache {1.3,2,2.2} etc.)

     Example:

        0 ~>export PSS_FIELDS='PKGPATH PKGNAME'
        0 ~>time -p ./pkg_src_summary -m lang/lua www/php-apc www/ap2-python
        PKGPATH=lang/lua
        PKGNAME=lua-5.1.3nb1

        PKGPATH=www/php-apc
        PKGNAME=php4-apc-4.4.8.3.0.16
     => ASSIGNMENTS=PHP_VERSION_REQD=4

        PKGPATH=www/php-apc
     => PKGNAME=php5-apc-5.2.6.3.0.16
     => ASSIGNMENTS=PHP_VERSION_REQD=5

        PKGPATH=www/ap2-python
     => PKGNAME=ap2-py25-python-3.2.10
     => ASSIGNMENTS=PYTHON_VERSION_REQD=25 PKG_APACHE=apache2

        PKGPATH=www/ap2-python
     => PKGNAME=ap22-py25-python-3.2.10
     => ASSIGNMENTS=PYTHON_VERSION_REQD=25 PKG_APACHE=apache22

        PKGPATH=www/ap2-python
        PKGNAME=ap2-py24-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=24 PKG_APACHE=apache2

        PKGPATH=www/ap2-python
        PKGNAME=ap22-py24-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=24 PKG_APACHE=apache22

        PKGPATH=www/ap2-python
        PKGNAME=ap2-py23-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=23 PKG_APACHE=apache2

        PKGPATH=www/ap2-python
        PKGNAME=ap22-py23-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=23 PKG_APACHE=apache22

        0 ~>

     See lines with '=>'.

   -----------------
   pkg_src_summary: the following format of input PKGPATH is supported:
   real_pkgpath[:var1=value1[,var2=value2[...]]]

     Example:

        0 ~>export PSS_FIELDS='PKGNAME PKGPATH DEPENDS BUILD_DEPENDS'
        0 ~>pkg_src_summary textproc/dictem:EMACS_TYPE=xemacs
     => PKGNAME=xemacs-dictem-0.82
        PKGPATH=textproc/dictem
     => DEPENDS=dict-client>=1.9.14:../../textproc/dict-client xemacs>=21.4<21.5:../../editors/xemacs xemacs>=21.4<21.5:../../editors/xemacs
        BUILD_DEPENDS= checkperms>=1.1:../../sysutils/checkperms
     => ASSIGNMENTS=EMACS_TYPE=xemacs

        0 ~>pkg_src_summary www/ap2-wsgi:PYTHON_VERSION_DEFAULT=23,PKG_APACHE_DEFAULT=apache2
     => PKGNAME=ap2-py23-wsgi-1.3
        PKGPATH=www/ap2-wsgi
     => DEPENDS=  python23>=2.3:../../lang/python23 apache>=2.0.51<2.2:../../www/apache2  python23>=2.3.5nb6:../../lang/python23 apache>=2.0.61nb2:../../www/apache2
        BUILD_DEPENDS= libtool-base>=1.5.18nb5:../../devel/libtool-base perl>=5.0:../../lang/perl5  checkperms>=1.1:../../sysutils/checkperms
     => ASSIGNMENTS=PYTHON_VERSION_DEFAULT=23 PKG_APACHE_DEFAULT=apache2

        0 ~>

     See lines with '=>'.
2008-09-06 20:31:30 +00:00
Aleksey Cheusov
03e99ba5f4 version -> 0.13alpha2
-m is fully implemented

  example:

      0 ~>time -p ./pkg_src_summary -m lang/lua www/php-apc www/ap2-python
      PKGPATH=lang/lua
      PKGNAME=lua-5.1.3nb1

      PKGPATH=www/php-apc
      PKGNAME=php4-apc-4.4.8.3.0.16
      ASSIGNMENTS=PHP_VERSION_REQD=4

      PKGPATH=www/php-apc
      PKGNAME=php5-apc-5.2.6.3.0.16
      ASSIGNMENTS=PHP_VERSION_REQD=5

      PKGPATH=www/ap2-python
      PKGNAME=ap2-py25-python-3.2.10
      ASSIGNMENTS=PYTHON_VERSION_REQD=25 PKG_APACHE=apache2

      PKGPATH=www/ap2-python
      PKGNAME=ap22-py25-python-3.2.10
      ASSIGNMENTS=PYTHON_VERSION_REQD=25 PKG_APACHE=apache22

      PKGPATH=www/ap2-python
      PKGNAME=ap2-py24-python-3.2.10
      ASSIGNMENTS=PYTHON_VERSION_REQD=24 PKG_APACHE=apache2

      PKGPATH=www/ap2-python
      PKGNAME=ap22-py24-python-3.2.10
      ASSIGNMENTS=PYTHON_VERSION_REQD=24 PKG_APACHE=apache22

      PKGPATH=www/ap2-python
      PKGNAME=ap2-py23-python-3.2.10
      ASSIGNMENTS=PYTHON_VERSION_REQD=23 PKG_APACHE=apache2

      PKGPATH=www/ap2-python
      PKGNAME=ap22-py23-python-3.2.10
      ASSIGNMENTS=PYTHON_VERSION_REQD=23 PKG_APACHE=apache22

      0 ~>
2008-09-06 19:26:34 +00:00
Aleksey Cheusov
de9fbb5d8a VARIANTS7:
PHP_VERSION_DEFAULT    -> PHP_VERSION_REQD
   PYTHON_VERSION_DEFAULT -> PYTHON_VERSION_REQD
   PKG_APACHE_DEFAULT     -> PKG_APACHE
2008-09-06 17:20:26 +00:00
Aleksey Cheusov
98b8610e67 version -> 0.13alpha1
The following format of input PKGPATH is supported:
        real_pkgpath[:var1=value1[,var2=value2[...]]]

  Example:

      0 ~>pkg_src_summary textproc/dictem:EMACS_TYPE=xemacs
      PKGPATH=textproc/dictem
   => PKGNAME=xemacs-dictem-0.82
   => ASSIGNMENTS=EMACS_TYPE=xemacs

      0 ~>pkg_src_summary www/ap2-wsgi:PYTHON_VERSION_DEFAULT=23,PKG_APACHE_DEFAULT=apache2
      PKGPATH=www/ap2-wsgi
   => PKGNAME=ap2-py23-wsgi-1.3
   => ASSIGNMENTS=PYTHON_VERSION_DEFAULT=23 PKG_APACHE_DEFAULT=apache2

      0 ~>

Initial support for building src_summary for multi-variant packages (-m),
    new special artificial output field VARIANTS7 is supported.
    Unfortunately pkgsrc developers declined this idea

    http://mail-index.netbsd.org/tech-pkg/2008/07/20/msg001320.html

    VARIANTS7 because I hope they will change their mind.

  Example:

      0 ~>./pkg_src_summary -a 'VARIANTS7' www/ap2-wsgi
      PKGPATH=www/ap2-wsgi
      PKGNAME=ap22-py24-wsgi-1.3
   => VARIANTS7=PYTHON_VERSION_DEFAULT=25,24,23 PKG_APACHE_DEFAULT=apache2,apache22

      0 ~>./pkg_src_summary -a 'VARIANTS7' lang/lua
      PKGPATH=lang/lua
      PKGNAME=lua-5.1.3nb1
   => VARIANTS7=

      0 ~>./pkg_src_summary -a 'VARIANTS7' www/php-apc
      PKGPATH=www/php-apc
      PKGNAME=php5-apc-5.2.6.3.0.16
   => VARIANTS7=PHP_VERSION_DEFAULT=4,5

      0 ~>
2008-09-06 17:17:27 +00:00
Aleksey Cheusov
d51725888a When used incorrectly, usage message is output 2008-09-06 16:05:20 +00:00
Aleksey Cheusov
779f52d762 one todo for pkg_src_summary 2008-07-28 19:15:58 +00:00
Aleksey Cheusov
ae92d8d3a4 minor fix 2008-07-07 14:36:33 +00:00
Aleksey Cheusov
288e355c8b release notes 2008-07-07 14:27:10 +00:00
Aleksey Cheusov
51c3bb7985 version -> 0.12.0
- added: pkg_grep_summary
   - do not depend on wip/paexec, install it manually
   - fixes in usage message of pkg_grep_summary
2008-07-07 14:25:26 +00:00
Aleksey Cheusov
75d3ef4ae2 fixed: UNPRIVILEGED and DESTDIR installation stage 2008-06-15 14:07:19 +00:00
Aleksey Cheusov
1549b5ac3e no problems with 'pkg_src_summary -A' + paexec
Latest paexec-0.9.0 is required
version -> 0.11.1
2008-06-15 13:42:36 +00:00
Aleksey Cheusov
c7387c00c2 fixed: '-A + PSS_SLAVES + PSS_TRANSPORT' didn't work
There are still some issues
version -> 0.11.1
2008-06-14 23:13:26 +00:00
Aleksey Cheusov
92e97aeb46 Version 0.11.0
pkg_src_summary:

      -d, -D and -A options for generating summary of the specified
      packages and their dependancies.  -d is for DEPENDS
      dependancies, -D is for BUILD_DEPENDS and -A is for both. See
      pkg_src_summary(1) for details.
2008-06-14 12:38:53 +00:00
Aleksey Cheusov
1f46a7b4b0 minor fix 2008-06-14 10:30:21 +00:00
Aleksey Cheusov
d653a0d02f upgraded to version 0.10.0
added: pkg_summary-utils(7) that describes what pkg_summary-utils
   project is. All tools refer to it in its manual pages and
   pkg_summary-utils(7) refers to manual pages of all tools.

   pkg_src_summary:

      a list of fields listed in -f|--fields option may be separated
      by comma, not only space.

      PSS_OPTIONS environment variable specifies default options to be
      placed in front of any explicit options. See man page for the
      sample.

      -a and -r options added for adding and removing the specified
      fields to/from the list of fields generated by default.
      See man page for the samples.

   pkg_update_src_summary:

      a list of fields listed in -f|--fields option may be separated
      by comma, not only space.
2008-06-14 10:27:34 +00:00
Aleksey Cheusov
0063ab1c53 added: -a and -r options
added: PSS_OPTIONS environment variable
minor fixes in man page
2008-06-14 09:26:09 +00:00
Aleksey Cheusov
d11c345409 comma is also allowed as fields separator 2008-06-14 08:51:39 +00:00
Aleksey Cheusov
28945ad237 update to version 0.9.0
ADDED: CVS_CHECKSUM field to pkg_src_summary. This gives a way to
   compare two pkgsrc trees by comparing their pkg_src_summaries
   comparing not only an information about package versions but also
   an information about CVS files and their revisions.

      new script added: 'cvs_checksum' that analyses local cvs
      repository and lists all files in it with their revisions and,
      optionally, calculates a checksum for all this. Run
      'cvs_checksum -h' for more information. CKSUM environment
      variable sets a checksum program, by default, standard 'cksum'.

      pkg_src_summary can generate new field: CVS_CHECKSUM, a checksum
      calculated by 'cvs_checksum' program for a package. By default
      CVS_CHECKSUM is NOT generated.

      'pkg_cmp_summary -c' prints '!' (this means "not equal") for
      packages with the same versions but different CVS_CHECKSUM provided
      that CVS_CHECKSUM is set in both compared packages.
2008-06-14 07:41:36 +00:00
Aleksey Cheusov
94838e3ca6 FIXED: -p option. Before running 'bmake plist PLIST=plist_file'
it is necessary to remove plist_file
version -> 0.8.1
2008-06-10 21:32:24 +00:00
Aleksey Cheusov
66e53db4b1 Initial version of script for calculating a checksum for files and cvs tags
from a local cvs repository. This checksum will be a part of
    pkg_src_summary. This is necessary to optionally use
    cvs files/tags in comparing source packages by distbb.

    Currently only package versions are compared by pkg_cmp_summary and
    therefore by distbb too. The problem is that packages are often updated
    without increasing PKGREVISION.
2008-06-10 19:30:58 +00:00
Aleksey Cheusov
05c2480f72 pkg_update_src_summary uses runawk's xgetline.awk module =>
=> latest runawk is needed
++pkgrevision
2008-05-19 21:02:26 +00:00
Aleksey Cheusov
d9cc35ec1a needs latest awk dewey, ++pkgrevision 2008-05-16 16:40:23 +00:00
Aleksey Cheusov
186a130930 requires awk-pkgsrc-dewey>=0.5.5
++pkgrevision
2008-05-15 15:57:11 +00:00
Aleksey Cheusov
3aa9316585 todo list and thoughts 2008-05-14 21:18:58 +00:00
Aleksey Cheusov
f2841905e8 requires latest version of awk-pkgsrc-dewey
minor fixes in TODO
++pkgrevision
2008-05-12 23:13:54 +00:00
Aleksey Cheusov
64c38d02e2 pkg_src_summary:
added option -p|--make-plist for using 'bmake plist'
      instead 'cat PLIST'. @directives are removed.

version -> 0.8.0
2008-05-11 21:53:17 +00:00
Aleksey Cheusov
fdc4c20531 Fields with values (DEPENDS - noe dependancies, NOTFOR - no
restrictions etc.) are not output at all.
2008-05-11 19:04:44 +00:00
Aleksey Cheusov
9b6bac75e5 added notes about pkg_grep_summary 2008-05-11 18:56:44 +00:00
Aleksey Cheusov
ebbaa55bfa CONFLICTS field is processed just like DEPENDS 2008-05-11 18:54:59 +00:00
Aleksey Cheusov
357093c545 Multilined DEPENDS field (pkg_summary(5) from binary packages)
now looks nicer - just like in case pkg_src_summary
2008-05-11 18:09:47 +00:00
Aleksey Cheusov
bebc6dcbe0 pkg_summary4view: DESCRIPTION, PLIST, PROVIDES and REQUIRES fields
now look better. "FIELD_NAME:" is not followed by any data on the
same line.  Data are displayed on the next lines.
2008-05-11 17:45:39 +00:00
Aleksey Cheusov
5bceeebea8 fixed: pkg_src_summary pkgpath
PKGREVISION=3
2008-05-11 17:33:31 +00:00
Aleksey Cheusov
f0c80d974b NEWS and TODO files are installed to share/doc/pkg_summary-utils 2008-05-10 20:03:11 +00:00
Aleksey Cheusov
bd171ec04c Distributed pkg_src_summary needs paexec
PKGREVISION=1
2008-05-10 13:49:15 +00:00
Aleksey Cheusov
3eacfd2716 version -> 0.7.0
Major changes:

   pkg_src_summary is now "distributed" tool, i.e. it can build
   src_summary using several processes or machines.
      Examples:

      # for SMP machine
      env PSS_SLAVES=+5 pkg_src_summary ...

      # for machines in a network
      env PSS_SLAVES='host1 host2 host3' \
          PSS_PPERS=5 \
          PSS_TRANSPORT=/usr/bin/ssh pkg_src_summary ...

      PSS_PPERS variable sets a number of packages per slave that
      are built at once, defaults to 10.

   pkg_src_summary: PSS_FIELDS overrides the default
   list of generated fields

   pkg_update_src_summary: -i|--fields options specify a list of
   generated fields.
2008-05-10 11:31:05 +00:00
Aleksey Cheusov
68c98640d8 -i|--fields again 2008-05-10 08:48:22 +00:00
Aleksey Cheusov
63eb8a18f0 fix in processing args (typo) 2008-05-10 08:31:34 +00:00
Aleksey Cheusov
5f36be8ddd fixed a typo 2008-05-10 08:25:21 +00:00
Aleksey Cheusov
3ed8558be7 added: -i|--fields options 2008-05-10 08:24:55 +00:00
Aleksey Cheusov
c9cf52ea56 fix (backslashing) 2008-05-09 23:37:55 +00:00
Aleksey Cheusov
27507fb0b0 In distributed mode every slave processes PPS_PPERS (packages per slave)
packages at once. The default is 10.
2008-05-09 22:37:59 +00:00
Aleksey Cheusov
2dc458238b Environment variable PSS_FIELDS overrides the default list of fields 2008-05-09 22:14:18 +00:00
Aleksey Cheusov
e11ade294a fix for PSS_SLAVES+PSS_TRANSPORT (backslashing fields) 2008-05-09 21:59:58 +00:00
Aleksey Cheusov
f231b8d57b clean-ups 2008-05-09 20:56:18 +00:00
Aleksey Cheusov
1d09cccb0c fix for "restore_order" 2008-05-09 13:55:21 +00:00
Aleksey Cheusov
a018dfc1c1 pkg_src_summary is now "distributed" tool, i.e. it can build
src_summary using several processes or machines.

    Examples:
	# for SMP machine
        env PSS_SLAVES=+5 pkg_src_summary ...
	# for SMP machine
        env PSS_SLAVES=+5 PSS_TRANSPORT='host1 host2' pkg_src_summary ...
2008-05-09 13:14:01 +00:00
Aleksey Cheusov
a8e1934ffc fix for USE_DESTDIR=full 2008-05-09 10:48:45 +00:00
Aleksey Cheusov
8c098d0b6f Version -> 0.6.2
grepping functionality of pkg_grep_summary has been moved to a
   separate file pkg_grep_summary.awk.  Similar code fragments found
   in pkg_refresh_summary and pkg_update_src_summary use
   pkg_grep_summary.awk now.
2008-05-09 10:46:32 +00:00
Aleksey Cheusov
88db120f7e grep_summary_condition() can now return -1 2008-05-09 10:14:12 +00:00
Aleksey Cheusov
d822b29ce5 speed-ups, speedof(pkg_refresh_summary)=speedof(pkg_refresh_summary-0.6.0) 2008-05-08 13:18:53 +00:00
Aleksey Cheusov
ff64c2d309 speed-ups by ~30% 2008-05-08 12:57:45 +00:00
Aleksey Cheusov
785e720af1 pkg_refresh_summary now uses pkg_grep_summary.awk 2008-05-08 12:10:29 +00:00
Aleksey Cheusov
b0d94532fe grepping functionality of pkg_grep_summary has been moved
from pkg_grep_summary.awk (this was idea of pkg_grep_summary).
2008-05-08 11:01:22 +00:00
Aleksey Cheusov
d2e88a949f Version 0.6.1:
README file added. There are available a few examples how to use
   all these tools separately and together . You can use it as a
   titorial.
2008-05-07 20:16:12 +00:00
Aleksey Cheusov
4aa98e3ccf pkg_grep_summary added 2008-05-07 19:00:44 +00:00
Aleksey Cheusov
bfc3bfbdf3 upgrade to version -> 0.6.0:
NEW tool: pkg_grep_summary
     Run 'pkg_grep_summary -h' for a documentation.
2008-05-07 18:56:52 +00:00
Aleksey Cheusov
f9b1134918 more complete documentation 2008-05-07 18:50:13 +00:00
Aleksey Cheusov
82c36e3796 better usage message 2008-05-07 18:42:06 +00:00
Aleksey Cheusov
73a9c736fb ADDED: -h|--help options 2008-05-07 11:03:33 +00:00
Aleksey Cheusov
c8409bd772 Field and condition are checked separately
# usage: pkg_grep_summary <FIELD> <CONDITION>
  # examples:
  #   pkg_grep_summary 'PKGNAME' '$2 ~ /judy/' \
  #         < /srv/pkgsrc/pkg_src_summary.txt
  #   pkg_grep_summary 'DEPENDS' '$2 ~ /pkg_summary/' \
  #         < /srv/pkgsrc/pkg_src_summary.txt
2008-05-07 10:25:18 +00:00
Aleksey Cheusov
7b9c426e04 initial version of utility:
usage: pkg_grep_summary <TRUE_EXPR> [<FALSE_EXPR>]
  example:
    pkg_grep_summary \
       '$1 == "PKGPATH" && $2 ~ /judy/' \
       '$1 == "PKGPATH" && $2 !~ /judy/' < \
            /srv/pkgsrc/pkg_src_summary.txt
2008-05-06 23:03:26 +00:00
Aleksey Cheusov
f3139fc671 pkgrevision -> 1
requires latest awk-pkgsrc-dewey
2008-05-05 13:20:18 +00:00
Aleksey Cheusov
76babb01d6 are -> is 2008-05-04 22:24:29 +00:00
Aleksey Cheusov
98ba15c859 Version 0.5.1, by Aleksey Cheusov
FIXED: pkg_update_summary fails under Linux, Solaris, Interix and
   probably other OSes when there are no binary packages in a specified
   directory.  This happens because xargs works differently on
   NetBSD/FreeBSD and Linux/Solaris/Interix. In NetBSD/FreeBSD xargs's
   command is NOT run at all when there is no input, while on L/S/I it is
   run once without arguments and (pkg_info -X in our case) fails.

   DESCR improved

   Minor fixes in documentation ans NEWS
2008-05-04 22:19:49 +00:00
Aleksey Cheusov
29e1aa512b clean-ups, improvements 2008-05-02 22:39:36 +00:00
Aleksey Cheusov
12a0cc2e4d clean-ups, improvements 2008-05-02 21:49:28 +00:00
Aleksey Cheusov
1e59b35172 better description 2008-05-02 21:40:30 +00:00
Aleksey Cheusov
3ab8cd825a better description 2008-05-02 21:38:32 +00:00
Aleksey Cheusov
6722b803fd bad examples -> better examples 2008-04-27 15:44:44 +00:00
Aleksey Cheusov
3b88b28c96 minor fix in usage message 2008-04-27 15:43:52 +00:00
Aleksey Cheusov
6aba305ddc Version 0.5.0
Major changes:

   Lots of tasks from TODO are implemented.

   pkg_src_fetch_var:
      - minor fixes in comments
      - new options -h|--help for use message
      - new options -f|--fields|-v|--vars for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.

        Example:
          echo 'wip/distbb' | \
          pkg_src_fetch_var -f='PKGNAME PKGPATH DEPENDS BUILD_DEPENDS'

      - bmake '+=' operator is also supported

   pkg_src_summary:
      - new options -h|--help for use message
      - new options -f|--fields for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.
      - 'print-summary-data' pkgsrc target is not used anymore.
        Instead, variable's values are obtained directly by bmake.

        Side effect/incompatibility: NOTFOR and ONLYFOR are set to
        <empty_string> instead of 'any' string in case
        NOT_FOR_PLATFORM and ONLY_FOR_PLATFORM are not specified.

   pkg_micro_src_summary:
      - new options -f|--fields for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.

        Example:
          pkg_micro_src_summary -f 'PKGNAME PKGPATH DEPENDS BUILD_DEPENDS' \
                                   lang/lua wip/distbb
      - In case pkg_src_fetch_var failes pkg_micro_src_summary fallbacks
        to pkg_src_summary.
2008-04-27 11:40:49 +00:00
Aleksey Cheusov
6e62c5a866 minor clean-ups 2008-04-26 21:04:18 +00:00
Aleksey Cheusov
30d85ba675 version -> 0.4.6
fix for pkg_summary4view: doesn't depend on input fields order.
   fix for pkg_src_summary: PKGNAME and PKGPATH are printed first.
2008-04-13 12:03:20 +00:00
Aleksey Cheusov
62f681c20c version -> 0.4.5
Both pkg_micro_src_summary and pkg_src_summary generate
   nicely formatted bmake failures to stderr.
   (will be used by future versions of distbb)
2008-04-12 21:48:22 +00:00
Aleksey Cheusov
a6e23957ba FIX: Converting summary_data to pkg_summary(5) can also fail.
In this case only one package should be skipped, but
    pkg_src_summary should continue its work.
2008-04-12 21:19:57 +00:00
Aleksey Cheusov
48e166cf36 upgrade to 0.4.4
lots of fixes and improvements in manual pages
   minors fixes in utilities
2008-04-12 16:56:28 +00:00
Aleksey Cheusov
8900adb0d3 minor fixes and addons in usage message and man page 2008-04-12 16:52:45 +00:00
Aleksey Cheusov
5f5d92ddc6 lots of minor changes and fixes in man pages 2008-04-12 16:05:00 +00:00
Aleksey Cheusov
a635f1e60c options are checked after cd /usr/pkgsrc 2008-04-12 16:04:08 +00:00
Aleksey Cheusov
3e7003f644 minor corrections 2008-04-12 15:35:43 +00:00
Aleksey Cheusov
10efe9357d minor fix 2008-04-12 15:33:41 +00:00
Aleksey Cheusov
3b62e27baa addons, corrections 2008-04-12 15:33:09 +00:00
Aleksey Cheusov
28e4efdf71 upgrade to 0.4.3:
added:
      - pkg_list_all_pkgs.1
      - pkg_refresh_summary.1
2008-04-12 15:06:01 +00:00
Aleksey Cheusov
64e75700d6 minor addons 2008-04-12 15:00:25 +00:00
Aleksey Cheusov
c3e69fb072 minor addons 2008-04-11 20:29:16 +00:00
Aleksey Cheusov
57f51cd799 initial TODO list:
existing tools:

    pkg_cmp_summary:

    pkg_list_all_pkgs:
       man page
       add -h|--help option

    pkg_micro_src_summary:
       - should fallback 'pkg_src_summary -f' (also to not
                            duplicate paexec-related code)
       add -h|--help option

    pkg_refresh_summary:
       man page

    pkg_src_fetch_var:
       man page
       add -h|-help option

    pkg_src_summary:
       add -h|--help option
       -f|--fields <fields>     - fields to be generated
       'make print-summary-data' -> 'make show-vars VARNAMES=...'
       - distributed summary building using wip/paexec

    pkg_summary4view:
       add -h|--help option

    pkg_update_src_summary:
       add -h|--help option

    pkg_update_summary:

new tools:

    pkg_grep_summary - for powerful grepping
2008-04-11 20:23:19 +00:00
Aleksey Cheusov
a751f1fff3 manual pages updated 2008-04-09 21:41:22 +00:00
Aleksey Cheusov
b967571718 version -> 0.4.2
pkg_src_fetch_var:
      - read PKGPATHs instead of Makefile filenames.
        In order to Makefiles from PKGPATH, PKGSRCDIR environment
        variable is used (/usr/pkgsrc by default).
      - TAB character is used as a fields separator instead of SPC

   pkg_micro_src_summary:
      - added options: -h|--help|-f|--fields
        -f|--fields is for specifying fields to be included
        to the summary, PKGNAME and PKGPATH by default
2008-04-09 21:35:40 +00:00
Aleksey Cheusov
61f18bb5de nothing 2008-04-09 21:31:51 +00:00
Aleksey Cheusov
c79fa71122 my new religion: usage message is sent to stderr 2008-04-09 21:29:18 +00:00
Aleksey Cheusov
650b11bd14 NEWS file added
ADDED: -f|--fields option to pkg_src_fetch_var program
version -> 0.4.1
2008-04-09 20:24:18 +00:00
Aleksey Cheusov
9578edba34 fixed: CONFLICTS statements 2008-04-05 21:03:14 +00:00
Aleksey Cheusov
38d9592d96 further renamings 2008-04-05 10:40:50 +00:00
Aleksey Cheusov
bf74c0e42a fixed: nroff warnings 2008-04-05 10:37:17 +00:00
Aleksey Cheusov
5f22046ac0 pkg_src_update_summary renamed to pkg_update_src_summary
pkg_src_micro_summary  renamed to pkg_micro_src_summary
2008-04-05 10:32:53 +00:00
Aleksey Cheusov
9a9913fb8f Utilities for manipulating pkg_summary(5) files.
My wip/pkg_* packages will be removed later. All those tools are here
   now.
2008-04-05 10:14:15 +00:00