Point all vulnerabilities to the base URL, so that entries

look a little more official.

Pointed out by:	Matthew George <mdg@secureworks.net>
This commit is contained in:
Oliver Eikemeier 2004-06-14 16:57:08 +00:00
parent 643a3e07da
commit 10e0fc75b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111471
4 changed files with 28 additions and 6 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= portaudit-db
PORTVERSION= 0.1.1
PORTVERSION= 0.1.2
CATEGORIES= security
DISTFILES=

View file

@ -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

View file

@ -6,7 +6,7 @@
#
PORTNAME= portaudit-db
PORTVERSION= 0.1.1
PORTVERSION= 0.1.2
CATEGORIES= security
DISTFILES=

View file

@ -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