aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-06-28 09:16:35 +0800
committereik <eik@FreeBSD.org>2004-06-28 09:16:35 +0800
commit50956360efe4343d3863cce1acd07d364bd97845 (patch)
tree702be9884296ccf60788f85544ffb54752f3d832 /security
parent1b5d2f618663a8d75f7597ba4b146777fc5e9331 (diff)
downloadfreebsd-ports-graphics-50956360efe4343d3863cce1acd07d364bd97845.tar.gz
freebsd-ports-graphics-50956360efe4343d3863cce1acd07d364bd97845.tar.zst
freebsd-ports-graphics-50956360efe4343d3863cce1acd07d364bd97845.zip
diversify url conversion
Diffstat (limited to 'security')
-rw-r--r--security/portaudit-db/database/portaudit2vuxml.pl22
1 files changed, 21 insertions, 1 deletions
diff --git a/security/portaudit-db/database/portaudit2vuxml.pl b/security/portaudit-db/database/portaudit2vuxml.pl
index 11a04f5e22d..d352bb2f866 100644
--- a/security/portaudit-db/database/portaudit2vuxml.pl
+++ b/security/portaudit-db/database/portaudit2vuxml.pl
@@ -117,7 +117,27 @@ if (@pkg) {
print " <references>\n";
foreach (split ' ', $url) {
- print " <url>$_</url>\n";
+ if (m'^http://cve\.mitre\.org/cgi-bin/cvename\.cgi\?name=(.+)$') {
+ print " <cvename>$1</cvename>\n"
+ }
+ elsif (m'^(http://www\.securityfocus\.com/archive/.+)$') {
+ print " <mlist>$1</mlist>\n"
+ }
+ elsif (m'^http://www\.securityfocus\.com/bid/(.+)$') {
+ print " <bid>$1</bid>\n"
+ }
+ elsif (m'^(http://(?:article\.gmane\.org|lists\.netsys\.com|marc\.theaimsgroup\.com)/.+)$') {
+ print " <mlist>$1</mlist>\n"
+ }
+ elsif (m'^http://www\.kb\.cert\.org/vuls/id/(.+)$') {
+ print " <certvu>$1</certvu>\n"
+ }
+ elsif (m'^http://www\.cert\.org/advisories/(.+)\.html$') {
+ print " <certsa>$1</certsa>\n"
+ }
+ else {
+ print " <url>$_</url>\n";
+ }
}
print " </references>\n";