pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/audit-packages Use an ${OPSYS}-specific messa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0002cc937bc0
branches:  trunk
changeset: 505085:0002cc937bc0
user:      agc <agc%pkgsrc.org@localhost>
date:      Thu Dec 29 23:47:55 2005 +0000

description:
Use an ${OPSYS}-specific message file for DragonFly, to get the right
local security information.

With thanks to Joerg Sonnenberger for the DragonFly help, and Trevor
Kendall for the original report.

diffstat:

 security/audit-packages/MESSAGE.DragonFly |  23 +++++++++++++++++++++++
 security/audit-packages/Makefile          |   8 +++++++-
 2 files changed, 30 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r 67cc44535b22 -r 0002cc937bc0 security/audit-packages/MESSAGE.DragonFly
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/audit-packages/MESSAGE.DragonFly Thu Dec 29 23:47:55 2005 +0000
@@ -0,0 +1,23 @@
+===========================================================================
+$NetBSD: MESSAGE.DragonFly,v 1.1 2005/12/29 23:47:55 agc Exp $
+
+You may wish to have the vulnerabilities file downloaded daily so that
+it remains current.  This may be done by adding an appropriate entry
+to the root users crontab(5) entry.  For example the entry
+
+# download vulnerabilities file
+0 3 * * * ${PREFIX}/sbin/download-vulnerability-list >/dev/null 2>&1
+
+will update the vulnerability list every day at 3AM. You may wish to do
+this more often than once a day.
+
+In addition, you may wish to run the package audit from the daily
+security script.  This may be accomplished by adding the following
+lines to /etc/period/security/NNN.audit-packages, where NNN is a
+number specifying the order of execution.
+
+if [ -x ${PREFIX}/sbin/audit-packages ]; then
+        ${PREFIX}/sbin/audit-packages
+fi
+
+===========================================================================
diff -r 67cc44535b22 -r 0002cc937bc0 security/audit-packages/Makefile
--- a/security/audit-packages/Makefile  Thu Dec 29 23:43:51 2005 +0000
+++ b/security/audit-packages/Makefile  Thu Dec 29 23:47:55 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2005/11/21 10:39:50 agc Exp $
+# $NetBSD: Makefile,v 1.64 2005/12/29 23:47:55 agc Exp $
 
 DISTNAME=      audit-packages-1.41
 CATEGORIES=    security pkgtools
@@ -24,6 +24,12 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "DragonFly"
+MESSAGE_SRC=   ${PKGDIR}/MESSAGE.DragonFly
+.else
+MESSAGE_SRC=   ${PKGDIR}/MESSAGE
+.endif
+
 do-build:
        @for f in audit-packages audit-packages.0 audit-packages.8      \
                download-vulnerability-list; do                         \



Home | Main Index | Thread Index | Old Index