Commit graph

63 commits

Author SHA1 Message Date
agc
fd7082ab6c Update audit-packages to version 1.41
Fix PR 31957 - only report that we're using @PKG_SYSCONFDIR@/audit-packages.conf
if we're in verbose mode.
2005-11-21 10:39:50 +00:00
erh
2ef746f045 Add several new command line options so audit-packages can be used as part of
the improved ALLOW_VULNERABILITIES support.  This now has the ability to:
  -p : Only check a single package
  -i : Provide a list of vulnerabilities to ignore
  -K : Specify an alternate pkg dbdir.
Bump the version to 0.40.
2005-11-16 20:47:55 +00:00
erh
f4784bf7f4 Use OWN_DIRS to make sure the PKGVULNDIR is created as part of the package. 2005-10-31 21:33:19 +00:00
agc
5fc617a44c Update audit-packages to version 1.39
Give the audit-pacakges a "-d" option to download the vulnerabilities file
with downloaad-vulnerability-list before scanning the installed packages.

Update the documentation accordingly.

Get rid of some inconsistent style problems in the audit-packages script.
2005-10-20 10:26:54 +00:00
rillig
37af9335f3 Fixed the number of backslashes in the version checking code. 2005-08-04 12:02:59 +00:00
tron
fda69917ef There is no need to use package revision for this package. Therefore bump
version number to 1.37.
2005-06-20 09:29:44 +00:00
adrianp
ba932c9f98 - Use ${FIND} as opposed to hardcoding 'find'
- Bump to nb1
- ok'ed wiz@
2005-06-19 12:14:39 +00:00
dillo
66b495711b Require pkg_info with ranges support, bump version to 1.36.
Reviewed by wiz.
2005-06-09 15:34:52 +00:00
dillo
cfba2ea655 Add a file format version to pkg-vulnerabilities, and check for
its compatiblity.  Bump version to 1.35

Done during the freeze to have the support on the branch.
Okayed by wiz.
2005-06-07 19:17:01 +00:00
dillo
c93f327f0f fix quoting. bump version to 1.34.
reviewed by wiz and agc.
2005-05-21 16:36:37 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
be89ba1f29 Add PKGVULNDIR to BUILD_DEFS. 2005-02-19 11:22:05 +00:00
agc
696d63a6c2 Update audit-packages to 1.33:
In download-vulnerability-list, first set the PKGVULNDIR, then create
the directory if it doesn't already exist.

Pointed out by Geert Hendrickx on tech-pkg@
2005-02-11 16:51:16 +00:00
jlam
17c3aafac1 * Make PKGSRC_TOPDIR a private variable by renaming it to _PKGSRC_TOPDIR,
as it's only used internally by bsd.prefs.mk.

* Make _PKGSRCDIR a public variable by renaming it to PKGSRCDIR.
  Also, generate its value from ${_PKGSRC_TOPDIR} so it's less fragile
  than the old method of stripping off the last two components of
  ${.CURDIR}.  PKGSRCDIR may now be used after bsd.prefs.mk is defined.

* Change all references to _PKGSRCDIR to PKGSRCDIR.
2004-10-07 02:01:37 +00:00
agc
defa9a1be3 Update audit-packages to 1.32, with fixes for the problems mentioned
in PR 25654 from Hauke Fath.

Take any non-standard values from audit-packages.conf file in
audit-packages as well as download-vulnerability-list.

Fix the pre-formatted documentation so that filenames to be
substituted are not formatted with the bold or underline "overstrikes"
on ttys, so that the correct sed substitutions take place at package
install time.
2004-06-06 08:28:54 +00:00
reed
d76aeb8d58 Add explanation of -v switch to man page. (Okay'd by agc@.)
audit-packages version is now 1.31.
2004-05-17 19:28:19 +00:00
wiz
2e6bec7127 Make it a separate warning if downloading the file
failed completely. Welcome to 1.30.
2004-04-14 09:04:15 +00:00
jschauma
91eda1f72c Rethink the nroff dilemma:
only regen on SunOS or AIX - the pre-generated pages _are_ mandoc type
pages, so we can use them on more platforms than just Irix.
2004-04-11 18:14:53 +00:00
jschauma
fde5d4152b Do this the right way: regen audit-packages.0 and then substitute as
regular
2004-04-09 16:06:59 +00:00
jschauma
18657fa1bb Add a pre-formatted catman page which is only used (copied into place)
under IRIX.  Other OS regen the catman page.

This addresses PR pkg/23452.

Since just depending on textproc/groff would pull in a large number of
packages (such as perl, ghostscript, tiff etc.), and since this is a very
important package that should NOT depend on all this gunk, Jeremy C. Reed
suggested this solution.

Ok agc.
2004-04-09 15:30:57 +00:00
jlam
56a6d12f07 Update security/audit-packages to 1.29. Changes from version 1.28 include
supporting using the FreeBSD "fetch" command to get the vulnerabilities
list.  Patch provided in PR 24371 by Michal Pasternak.
2004-02-09 03:56:34 +00:00
agc
3ad1bdbf06 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:18:15 +00:00
jlam
a442099d05 This package never invokes the toolchain so it doesn't need buildlink[23].
Define NO_BUILDLINK to signify this to bsd.pkg.mk.
2004-01-19 15:15:08 +00:00
jlam
22645a942c bl3ify 2004-01-05 11:28:07 +00:00
agc
7ae16542a6 Update audit-packages to 1.28.
By popular demand, add a -v switch to audit-packages(8) which enables the
check for a package vulnerabilities file being unchanged for over 7 days.
To enable the check, -v must be specified on the command line:

	% audit-packages
	% audit-packages -v
	*** WARNING - /usr/distfiles/pkg-vulnerabilities more than a week old, continuing...
	%
2004-01-01 23:35:28 +00:00
erh
f3612f2fde AIX doesn't have mandoc, just like SunOS. 2003-12-12 21:40:32 +00:00
agc
a0207fa135 Whitespace fix, cosmetic only 2003-12-12 15:08:21 +00:00
agc
2dd92849cd Update audit-packages to version 1.27.
Difference from previous version (1.26):
+ if the vulnerability list is older than a week, just display a warning
message - don't consider this a fatal error.
2003-12-11 17:10:21 +00:00
martti
ac3fc97117 Updated audit-packages to 1.26
Added support for audit-packages.conf. This file can be used
to define environment variables (e.g. FETCH_ARGS).
2003-12-03 04:58:01 +00:00
agc
49338b43ac Update audit-packages to 1.25.
+ get rid of unnecessary awk invocation in audit-packages, use shell
  construction instead, pointed out by enami tsugutomo. Cuts system and
  user execution times for audit-packages in half.
+ add (4-clause) licences to audit-packages and download-vulnerability-list
+ check integrity of pkg-vulnerabilities file in audit-packages by using
  the same construct as in download-vulnerability-list
+ CSE in error checking in audit-packages
+ properly terminate a case expression in download-vulnerability-list
2003-10-18 10:16:57 +00:00
agc
de7fca8939 Update audit-packages to 1.24:
Simplify quoting syntax in the awk command, so that gawk-3.1.3 (as found in
NetBSD-current) doesn't have a problem with a malformed escape sequence.

With thanks to Johnny Lam for testing with an older version of gawk.
2003-10-17 09:45:28 +00:00
agc
4842dd4749 Update audit-packages to 1.23.
Use the first word of ${FETCH_CMD} to determine which utility is used.

Addresses PR 22760 from Todd Vierling.
2003-09-16 09:06:03 +00:00
agc
1cbfd70c0e Update audit-packages to 1.22:
Make an informational message clearer.
2003-09-16 07:21:01 +00:00
seb
336d68c05a Update to version 1.21.
download-vulnerability-list(8) now needs digest(1).
Hence put digest package as a runtime dependency of audit-packages
package.
2003-09-12 12:57:10 +00:00
agc
4b67b74873 Update audit-packages to 1.20.
Support wget and curl as FETCH_CMDs, as discussed in PR 19103.
2003-09-09 17:31:34 +00:00
tron
1665e3992f Fix inconsistent filename for "pkg-vulnerabilities" file in
"audit-packages" script. Bump package version again.
2003-09-03 15:06:59 +00:00
agc
d61816fcb2 Update audit-packages to 1.18.
Changes from previous version:

+ rely on an embedded sha1 digest to tell whether the vulnerabilities
  file has been damaged in transit or received successfully, rather than
  trusting that the file will not grow smaller

+ use the new filename "pkg-vulnerabilities"

+ use definitions from defs.${OPSYS}.mk in the download-vulnerability-list
  script

+ at installation time, don't rely on "ln -sf" to DTRT - explicitly call
  "rm -f" before attempting the symbolc link

With thanks to seb@ for testing.
2003-09-02 10:20:27 +00:00
agc
47409ab810 Update audit-packages to 1.17.
Instead of using the number of bytes to determine whether or not the
file has shrunk, use the number of lines.  This will allow for
spelling corrections, login name of committers being shorter than
others, etc.  This is a temporary measure until a better distribution
mechanism is used.  Suggested by David Brownlee.
2003-08-22 10:11:57 +00:00
martti
8cee801716 COMMENT should start with a capital letter. 2003-07-21 17:10:16 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
aymeric
4e85e41fb2 Remove NO_MTREE=yes
It broke installation of audit-packages as the first package in the system.
Okayed by Alistair.
2003-07-09 13:01:59 +00:00
wiz
1072aade83 -f the symlinks. Requested by Jeremy C. Reed. 2003-06-12 19:52:26 +00:00
wiz
6dacb668a8 Add man page supplied by Jeremy C. Reed in PR 21865, with some fixes by me.
Bump to 1.16.
2003-06-12 06:59:30 +00:00
seb
cef8d73c43 Update to version 1.15.
The directory ${PKGVULNDIR)} holding the 'vulnerabilities' file
which default value is determined at configure time can now be
overridden at runtime from the environment.

As a side effect the strings substituted at configure time in
files/{audit-packages,download-vulnerability-list} are now of the
form '@VAR@' and not '${VAR}'.
2003-05-21 14:07:45 +00:00
jmmv
92e726795a Make the PKGVULNDIR variable more generic, so one can choose where to
store the vulnerabilities file.  This variable was already recognized by
audit-packages but not by bsd.pkg.mk which hardcoded DISTDIR.
2003-04-25 20:05:18 +00:00
jmmv
0916498c1b Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz. 2003-03-29 12:40:00 +00:00
wiz
99b08f151f Add chmod a+r after downloading the new vulnerability file.
Addresses part of pkg/17368.
Bump to 1.14.
2002-07-04 23:51:26 +00:00
kim
c1bd0953b5 Make sure we get the grandchild output before the script exits. 2002-06-04 23:01:34 +00:00
lukem
7780aa8486 Store vulnerabilities file in ${PKGVULNDIR} instead of ${DISTDIR}, in case
the latter is not appropriate.  The former defaults to the latter.
Bump version to 1.12.  Per discussion with Alistair Crooks.
2002-04-26 12:45:23 +00:00
agc
919d708cb0 Make sure this package installs properly. Pointed out in mail by
Toru TAKAMIZU <ttaka@ma1.seikyou.ne.jp>
2002-02-06 13:05:48 +00:00