Commit graph

28 commits

Author SHA1 Message Date
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
uebayasi
f79202d866 Change directory before ${FETCH_CMD} as mk/bsd.pkg.mk does. This avoids a
fetch error if FETCH_CMD is e.g. ``curl -O''.  No functional changes.
2002-12-13 11:18:14 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29:55 +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
agc
4854c9d84e Don't hardcode the PKG_DBDIR value at package installation time.
Bump version to 1.11
2001-12-29 10:07:30 +00:00
wiz
1fe04142cc Add RCS Ids. 2001-12-17 18:08:21 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00
wiz
681e1a69a4 Apply patch from pkg/13295; seems not to hurt NetBSD, and should help
Solaris. Bump to 1.10.
2001-06-25 18:31:19 +00:00
wiz
0ebe24556a Fix warning output if new file is smaller than old one.
Noted by Kimmo Suominen. Bump to 1.9.
2001-06-06 23:37:52 +00:00
agc
0db172cd34 Update audit-packages to 1.8:
Fix a problem which occurs if the vulnerability list does not already exist.

This fixes PR 12763 from Brian de Alwis (bsd@cs.ubc.ca), albeit in a
slightly different manner.  (I also added a check for the existence of
the new vulnerabilities file, in case it was not downloaded for some
reason).
2001-04-27 08:40:53 +00:00
agc
15e9ce8614 Update to version 1.7 of audit-packages.
Incorporates the following changes from Anne Bennett
(anne@alcor.concordia.ca) in PR 12538:

(1) Running download-vulnerability-list as it stands from cron will
    spam the sysadmin with ftp output.  Easy to fix: redirect output
    to /dev/null as per the example in pkg/MESSAGE.  Problem: now
    we lose some error messages as well.  Patch: make sure error
    complaints in that script are spouted to STDERR, not STDOUT.
(3) Minor readability issue: set the source location for the
    vulnerability list in a variable at the top of the script.
(4) PR 12457 reported that audit-packages complained spuriously
    when the vulnerability list had not been updated in over a
    week, and suggested touching it as a solution.  This loses
    the information of when the file was really last updated.
    I'd prefer to always "mv" the new file into place, and use
    mtime instead of ctime in the file freshness test.

I did this part of the PR differently, as I was worried about
incomplete vulnerability lists being downloaded, and overwriting an
existing vulnerability list:

(2) ftp failure in download-vulnerability-list is not being detected
    properly by the current "${FETCH_CMD} .. || (complain; exit 1)"
    test.  Patch: test for a non-zero vulnerability file instead.
    Don't forget to remove any zero-length droppings, if any.

We know that the vulnerability list size will increase, and not
decrease, so test the size of the newly-downloaded file.  If the new
file is smaller than the existing file, then a bad transfer has taken
place - log this fact, and remove the new list.
2001-04-24 09:32:13 +00:00
agc
f8d07c2f7f Bump audit-packages to 1.6.
Always touch the downloaded vulnerability list, so that the audit-packages
script doesn't moan erroneously.

From Jim Bernard, in PR 12457.
2001-04-02 10:35:25 +00:00
agc
8f1bcba149 Clean up temporary vulnerabilities file, if it's the same as the existing
one - addresses 2nd part of PR 12457, from Jim Bernard.
2001-03-27 10:54:33 +00:00
agc
d8c525cce1 Update the download-vulnerability-list script to check for the
existence of ${DISTDIR}, and to create it if it doesn't exist.  This
is for machines built with binary packages, which lack pkgsrc, but
this way preserves the location of the vulnerabilities file.

Addresses PR 12367
2001-03-20 10:36:18 +00:00
dmcmahill
4c77a4ccf3 add a MESSAGE suggesting that the package audit be added to /etc/security.local
and the vulnerabilities file be downloaded via cron every day.
2001-02-22 16:56:29 +00:00
wiz
a87738b456 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:42:09 +00:00
itojun
208afaebf0 touch vulnerability list after update, to make audit-package happier
when vulnerability list is not updated for more than a week.
solves PR 11463 (there are other ways to solve this, i'm open to your opinion).
2000-11-11 02:23:00 +00:00
sommerfeld
017538a28b audit-packages 1.2:
check if vulnerabilities file is more than a week old, and whine if it is
	whine to stderr rather than stdout
2000-10-26 17:33:45 +00:00
abs
046885f2bc Update to 1.1 - Give a slightly more friendly error message if vulnerabilities
file not present.
2000-10-02 17:51:07 +00:00
agc
ad84afc499 Initial import of a package to scan a vulnerability list, looking for
installed packages which are insecure and open to exploitation.

The original idea came from Roland Dowdeswell and Bill Sommerfeld, quite
independently, the unorthodox implementation by me.

This package contains two scripts:
(1) download-vulnerability-list, which downloads a list of vulnerable
packages from the NetBSD ftp server, and
(2) audit-packages, which scans all the packages installed on the
local machine, looking for packages which are vulnerable.
2000-09-19 19:23:17 +00:00