mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
apply xlist not to the own files
This commit is contained in:
parent
3c50ead8b2
commit
48af6951c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116137
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= portaudit-db
|
||||
PORTVERSION= 0.2.2
|
||||
PORTVERSION= 0.2.3
|
||||
CATEGORIES= security
|
||||
DISTFILES=
|
||||
|
||||
|
@ -102,7 +102,17 @@ cd "$TMPDIR" || exit 1
|
||||
echo "$TESTPORT|$TESTURL|$TESTREASON"
|
||||
echo "# Please refer to the original document for copyright information:"
|
||||
echo "# $VULURL"
|
||||
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$VUXMLDIR/vuln.xml"
|
||||
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$VUXMLDIR/vuln.xml" \
|
||||
| $AWK -F\| -v XLIST_FILE="$XLIST_FILE" '
|
||||
BEGIN {
|
||||
while((getline < XLIST_FILE) > 0)
|
||||
if(!/^(#|$)/)
|
||||
ignore[$1]=1
|
||||
}
|
||||
/^(#|$)/ || !($4 in ignore) {
|
||||
print
|
||||
}
|
||||
'
|
||||
echo "# This part is in the public domain"
|
||||
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$PORTAUDITDBDIR/database/portaudit.xml"
|
||||
$AWK -F\| '
|
||||
@ -118,19 +128,14 @@ cd "$TMPDIR" || exit 1
|
||||
}
|
||||
' "$PORTAUDITDBDIR/database/portaudit.txt"
|
||||
} | $AWK -F\| -v XLIST_FILE="$XLIST_FILE" '
|
||||
BEGIN {
|
||||
while((getline < XLIST_FILE) > 0)
|
||||
if(!/^(#|$)/)
|
||||
ignore[$1]=1
|
||||
}
|
||||
/^(#|$)/ {
|
||||
print
|
||||
next
|
||||
}
|
||||
{
|
||||
if (!($4 in ignore))
|
||||
print $1 "|" $2 "|" $3
|
||||
}' > auditfile
|
||||
print $1 "|" $2 "|" $3
|
||||
}
|
||||
' > auditfile
|
||||
echo "#CHECKSUM: MD5 `$MD5 < auditfile`" >> auditfile
|
||||
$TAR -jcf "$DATABASEDIR/auditfile.tbz" auditfile
|
||||
cd
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= portaudit-db
|
||||
PORTVERSION= 0.2.2
|
||||
PORTVERSION= 0.2.3
|
||||
CATEGORIES= security
|
||||
DISTFILES=
|
||||
|
||||
|
@ -102,7 +102,17 @@ cd "$TMPDIR" || exit 1
|
||||
echo "$TESTPORT|$TESTURL|$TESTREASON"
|
||||
echo "# Please refer to the original document for copyright information:"
|
||||
echo "# $VULURL"
|
||||
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$VUXMLDIR/vuln.xml"
|
||||
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$VUXMLDIR/vuln.xml" \
|
||||
| $AWK -F\| -v XLIST_FILE="$XLIST_FILE" '
|
||||
BEGIN {
|
||||
while((getline < XLIST_FILE) > 0)
|
||||
if(!/^(#|$)/)
|
||||
ignore[$1]=1
|
||||
}
|
||||
/^(#|$)/ || !($4 in ignore) {
|
||||
print
|
||||
}
|
||||
'
|
||||
echo "# This part is in the public domain"
|
||||
$XSLTPROC $XSLTPROC_EXTRA_ARGS --stringparam baseurl "$BASEURL" "$STYLESHEET" "$PORTAUDITDBDIR/database/portaudit.xml"
|
||||
$AWK -F\| '
|
||||
@ -118,19 +128,14 @@ cd "$TMPDIR" || exit 1
|
||||
}
|
||||
' "$PORTAUDITDBDIR/database/portaudit.txt"
|
||||
} | $AWK -F\| -v XLIST_FILE="$XLIST_FILE" '
|
||||
BEGIN {
|
||||
while((getline < XLIST_FILE) > 0)
|
||||
if(!/^(#|$)/)
|
||||
ignore[$1]=1
|
||||
}
|
||||
/^(#|$)/ {
|
||||
print
|
||||
next
|
||||
}
|
||||
{
|
||||
if (!($4 in ignore))
|
||||
print $1 "|" $2 "|" $3
|
||||
}' > auditfile
|
||||
print $1 "|" $2 "|" $3
|
||||
}
|
||||
' > auditfile
|
||||
echo "#CHECKSUM: MD5 `$MD5 < auditfile`" >> auditfile
|
||||
$TAR -jcf "$DATABASEDIR/auditfile.tbz" auditfile
|
||||
cd
|
||||
|
Loading…
Reference in New Issue
Block a user