Commit graph

29 commits

Author SHA1 Message Date
adrianp
64dfe76316 Rename PKGTOOLS_VER to PKGTOOLS_VERSION and use that everywhere
Export PKGTOOLS_VERSION so that genreadme.awk can use it
This will sync the output between './mkreadme' and 'make readme'
2007-10-20 13:35:12 +00:00
adrianp
583342970a The code for the pkg_install<20070714 vulnerability checks used in the
README.html generation are broken.  It will not find vulnerabilities in any
packages that have complex names in the pkg-vulnerabilties file.
e.g. php{4,5}-perl and sun-{jdk,jre}15
Post pkg_install-20070714 this is now fixed and only currently known
vulnerabilities are shown in the generated README.html files for packages.

You will need to update to pkg_install>=20070714 to get this fix.
2007-08-29 23:26:30 +00:00
martti
5867247b54 Remove trailing spaces. 2007-05-28 11:07:00 +00:00
adrianp
e345235eb8 * Add an extra -V option to mkreadme to support a non-standard PKGVULNDIR
* Add the necessary changes to allow genreadme.awk to process the v1.1.0
  format pkg-vulnerabilities file.
* Changes are fully backward compatable i.e. mkreadme should be able to
  parse v1.0.0 and v1.1.0 format files.
2007-02-18 00:08:36 +00:00
martti
e2610fb8c8 Remove trailing tabs. 2006-12-15 13:15:06 +00:00
martti
2cc4216d5e Remove trailing spaces. 2006-12-15 12:46:23 +00:00
dmcmahill
63bfc354d4 Allow the binpkg-cache script to also generate pkg_summary.gz files
if requested.  Suggested by Joerg Sonnenberger.
2006-07-28 02:41:07 +00:00
salo
27e4f856bf Back to pkg-vulnerabilities format 1.0.0. 2006-04-15 15:00:24 +00:00
dmcmahill
d188673373 Rework the way the vulnerabilities list is displayed a bit to
remove the vulnerability ID from the pkg-vulnerabilities file
which managed to creep into the README.html output.
2006-01-17 23:52:17 +00:00
dmcmahill
f372299bb4 Fix a bug which caused the README.html generation to fail when the packages
directory did not exist.  Now the generation completes with a warning that
no binary packages were found.  Reported in PR pkg/32351.
2006-01-05 22:19:42 +00:00
dmcmahill
78adb68b24 pass down FIND to genreadme.awk and binpkg-cache 2005-05-22 01:37:31 +00:00
dmcmahill
84ada91a3b get rid of a spurious %%SUBDIR%% which found its way into the generated category README.html 2005-05-20 21:48:45 +00:00
dmcmahill
69dfa5b1c2 Rework how the lookup of binary packages in the cache is performed.
As data for a given binary package is loaded, increment a count
stored with PKGPATH as the index.  Then use a psuedo-multidimensional
array with PKGPATH and the # as the index.  This allows for much
faster lookups and scales linearly with the number of packages.
The old way scaled as the product of the number of pkgsrc entries
and the total number of binary packages.  Not a pretty value.

This makes the actual README.html generation part run about 3x faster.

Approach suggested by soda.
2005-05-20 04:39:44 +00:00
dmcmahill
49e27f3b48 make local variables in a few functions be local 2005-05-19 21:11:24 +00:00
dmcmahill
e6574d0456 allow spaces after the "=" in the .pkgcache files. This was noted with
some of the older packages on ftp.netbsd.org.  For example,
pkg_info -B ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5.2/vax/All/cascade-1.4.tgz
will give

OPSYS= NetBSD

instead of

OPSYS=NetBSD
2005-05-19 11:46:40 +00:00
dmcmahill
6d38639554 if the top level package cache file does not exist then exit with
a fatal error.  Noted by Christian Hattemer.
2005-05-19 03:50:39 +00:00
dmcmahill
832614bc4c Rework the README.html generation code. Major changes are:
- completely redo the code which decides on the machine architecture,
  operating system, and operating system version for the binary packages.
  The old way just used to directory names to take a guess.  The new
  way creates a cache file containing meta-data for all the binary packages
  in each "All" directory.  This cache file is consulted when generating
  the lists of available binary packages.  The meta-data is obtained with
  pkg_info so it should always be correct even if you do something silly
  like mix OS_VERSION or MACHINE_ARCH packages up in the same directory.

  Among the benefits are:  works when PACKAGES is not $PKGSRC/packages,
  works with a more or less arbitrary subdirectory structure, works
  when there are subdirectories for multiple operating systems.

  This portion of the fix should address PR25390.

  The cache files are only updated when the contents of an "All" directory
  changes or if the cache file format changes.  There is some room for
  improving the updating of the cache files, but its not too bad the way
  it is.

- fix up some of the awk code so that generadme.awk works with Solaris
  nawk as well as NetBSD's nawk and gawk (for pre-2.0 systems).

- remove some "if ! foo" shell constructs to increase portability.

- be more consistent with what variables get passed to mkreadme from
  make and which ones are determined automatically.  Mostly this meant
  moving stuff into mkreadme to make it easier to run it standalone.
2005-05-17 21:46:59 +00:00
wiz
d4e8b44315 Retire buildlink2, now that all packages using it have been converted to
buildlink3.
2004-07-06 22:49:16 +00:00
dmcmahill
592bab0b32 s/vulnerabilities/pkg-vulnerabilites 2003-09-11 03:00:21 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
dmcmahill
4e909683e7 when there are no build depends, indicate this with "none" instead of
having an empty list.  Do the same for run depends.  Suggested by
Christian Hattemer in a private email.
2003-03-21 12:49:58 +00:00
dmcmahill
58b8bccbc6 - fix a bug in the HOMEPAGE link when the URL contains an ampersand
- fix a bug in which caused only packages listed as DEPENDS to show
  up in the 'packages needed to build' section.  Now the BUILD_DEPENDS
  are also shown.  Thanks to Christian Hattemer for noting this.

- fix a bug which caused error messages claiming that category and top
  level README.html files could not be created even though they were
  created.  This bug only showed up if an old README.html file did not
  exist.  As part of this, clean up and unify the code which handles
  comparing the new README.html file to a possibly pre-existing one and
  only copying it over if there is a change.
2003-03-19 20:46:55 +00:00
dmcmahill
8dbf77cd41 fix a few 'strings split across lines' bugs which caused some dependencies
to be dropped from the README.html files.  Problem of missing dependencies
noted by Christian Hattemer in a private email.
2003-03-19 02:12:11 +00:00
wiz
620d99bab0 Open/close HTML mark-up in the correct order. Noted by Kevin P. Neal. 2003-02-09 14:59:12 +00:00
yyamano
274016a5d7 Add backslash for a line continuation to fix "make readme" error
on darwin. Approved by mcmahill.
2003-02-08 06:47:52 +00:00
dmcmahill
dd9d9f18d5 fix a bug introduced by the last commit where a string was accidentally
split across a line.  Thanks to Greg Woods for catching this.
2003-01-20 01:31:21 +00:00
dmcmahill
e2438ae141 Many white space and indenting fixes to bring this more in line with
/usr/share/misc/style.  Prompted by a private email from Greg Woods,
woods at weird dot com.
2003-01-18 04:28:57 +00:00
dmcmahill
a89746c11a avoid the use of the gensub() function as it is a gawk extension not
found in other awk implementations.  Patch provided by Greg Woods,
woods at weird dot com, via private email.
2003-01-15 00:40:50 +00:00
dmcmahill
98812f4595 move bulk/{mkreadme,genreadme.awk} to scripts/ as this is a more suitable
location.  They are not really part of the bulk build stuff.
2003-01-04 21:13:34 +00:00
Renamed from mk/bulk/genreadme.awk (Browse further)