diff options
author | eik <eik@FreeBSD.org> | 2004-06-15 00:57:08 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-06-15 00:57:08 +0800 |
commit | d409f8fe3557465764823c039b52ec514b2af870 (patch) | |
tree | 4cd183f0674f4dfce915692e81903f403d7cdb11 /security/portaudit-db | |
parent | 736756fe94e5151ced11dc121fdadf9dbc926e61 (diff) | |
download | freebsd-ports-gnome-d409f8fe3557465764823c039b52ec514b2af870.tar.gz freebsd-ports-gnome-d409f8fe3557465764823c039b52ec514b2af870.tar.zst freebsd-ports-gnome-d409f8fe3557465764823c039b52ec514b2af870.zip |
Point all vulnerabilities to the base URL, so that entries
look a little more official.
Pointed out by: Matthew George <mdg@secureworks.net>
Diffstat (limited to 'security/portaudit-db')
-rw-r--r-- | security/portaudit-db/Makefile | 2 | ||||
-rw-r--r-- | security/portaudit-db/files/packaudit.sh | 15 |
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 |