summaryrefslogtreecommitdiffstats
path: root/security/vxquery/files/pkg_check.sh
blob: ae31df2fc2218ee217c281be5c9e7f4fbd1bf730 (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
VXQUERY="vxquery"
PORTSDIR="${PORTSDIR:-/usr/ports}"
PKGDIR="${PKGDIR:-/var/db/pkg}"
FORMAT="${FORMAT:-text}"
VULN_XML="${VULN_XML:-${PORTSDIR}/security/vuxml/vuln.xml}"

set -e
cd "$PKGDIR"
echo * | "${VXQUERY}" -f - -t "${FORMAT}" "${VULN_XML}"
OpenPOWER on IntegriCloud