Commit graph

121 commits

Author SHA1 Message Date
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