summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-06-14 16:57:08 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-06-14 16:57:08 +0000
commit10e0fc75b288ee2d3ff9f5afdb1fc0748762945c (patch)
tree475725645c8e57ab7fa1baace2133590278e820a /security
parentCommitted (with some fixups), thanks! (diff)
Point all vulnerabilities to the base URL, so that entries
look a little more official. Pointed out by: Matthew George <mdg@secureworks.net>
Notes
Notes: svn path=/head/; revision=111471
Diffstat (limited to 'security')
-rw-r--r--security/portaudit-db/Makefile2
-rw-r--r--security/portaudit-db/files/packaudit.sh15
2 files changed, 14 insertions, 3 deletions
diff --git a/security/portaudit-db/Makefile b/security/portaudit-db/Makefile
index bae0f1ecd46d..a14df35ecfbc 100644
--- a/security/portaudit-db/Makefile
+++ b/security/portaudit-db/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= portaudit-db
-PORTVERSION= 0.1.1
+PORTVERSION= 0.1.2
CATEGORIES= security
DISTFILES=
diff --git a/security/portaudit-db/files/packaudit.sh b/security/portaudit-db/files/packaudit.sh
index 778f781ca670..0ec066ae7d26 100644
--- a/security/portaudit-db/files/packaudit.sh
+++ b/security/portaudit-db/files/packaudit.sh
@@ -97,7 +97,18 @@ cd "$TMPDIR" || exit 1
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$VUXMLDIR/vuln.xml"
echo "# This part is in the public domain"
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$PORTAUDITDBDIR/database/portaudit.xml"
- $CAT "$PORTAUDITDBDIR/database/portaudit.txt"
+ $AWK -F\| '
+ /^(#|$)/ {
+ print
+ next
+ }
+ {
+ if ($4)
+ print $1 FS $2 FS "'"$BASEURL"'" $4 ".html" FS $4
+ else
+ print
+ }
+ ' "$PORTAUDITDBDIR/database/portaudit.txt"
} | $AWK -F\| -v XLIST_FILE="$XLIST_FILE" '
BEGIN {
while((getline < XLIST_FILE) > 0)
@@ -109,7 +120,7 @@ cd "$TMPDIR" || exit 1
next
}
{
- if (!ignore[$4])
+ if (!($4 in ignore))
print $1 "|" $2 "|" $3
}' > auditfile
echo "#CHECKSUM: MD5 `$MD5 < auditfile`" >> auditfile