summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-12-29 23:47:55 +0000
committeragc <agc@pkgsrc.org>2005-12-29 23:47:55 +0000
commit1d11f1bba16035aaddc79db0a48294c79eb42af2 (patch)
tree54c4f672a2c82e0c11a5d0837b56f182a259ecc3
parent59057266bc5a095f22571f10fa622af9bcd8b6eb (diff)
downloadpkgsrc-1d11f1bba16035aaddc79db0a48294c79eb42af2.tar.gz
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.
-rw-r--r--security/audit-packages/MESSAGE.DragonFly23
-rw-r--r--security/audit-packages/Makefile8
2 files changed, 30 insertions, 1 deletions
diff --git a/security/audit-packages/MESSAGE.DragonFly b/security/audit-packages/MESSAGE.DragonFly
new file mode 100644
index 00000000000..78f70358f0f
--- /dev/null
+++ b/security/audit-packages/MESSAGE.DragonFly
@@ -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 --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index 6fcfbcafc4d..76c0a4a45d8 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -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 @@ SKIP_AUDIT_PACKAGES= yes
.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 \