diff options
author | nectar <nectar@FreeBSD.org> | 2004-02-12 22:24:01 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2004-02-12 22:24:01 +0800 |
commit | 967b54aa837781c9c57805a2100b2c616045ac91 (patch) | |
tree | c6bf9777523505c6d7cc1c6ba5492f7f27657286 /security | |
parent | 5b652b203a78065ebb45dee28ebfc9842c9a43df (diff) | |
download | freebsd-ports-gnome-967b54aa837781c9c57805a2100b2c616045ac91.tar.gz freebsd-ports-gnome-967b54aa837781c9c57805a2100b2c616045ac91.tar.zst freebsd-ports-gnome-967b54aa837781c9c57805a2100b2c616045ac91.zip |
Add VuXML Query Tool (vxquery) a simple utility for selecting entries
from a VuXML document by package name and version.
Diffstat (limited to 'security')
-rw-r--r-- | security/vxquery/Makefile | 30 | ||||
-rw-r--r-- | security/vxquery/distinfo | 2 | ||||
-rw-r--r-- | security/vxquery/files/pkg_check.sh | 10 | ||||
-rw-r--r-- | security/vxquery/pkg-descr | 5 | ||||
-rw-r--r-- | security/vxquery/pkg-plist | 1 |
5 files changed, 48 insertions, 0 deletions
diff --git a/security/vxquery/Makefile b/security/vxquery/Makefile new file mode 100644 index 000000000000..b1c79af280ad --- /dev/null +++ b/security/vxquery/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: vxquery +# Date created: 2004/02/11 +# Whom: nectar@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= vxquery +PORTVERSION= 0.1 +CATEGORIES= security textproc +MASTER_SITES= http://www.vuxml.org/files/ + +MAINTAINER= nectar@FreeBSD.org +COMMENT= VuXML Query Tool + +USE_BZIP2= YES +USE_SIZE= YES +GNU_CONFIGURE= YES + +# FreeBSD 5.x systems have expat in the base system. +.include <bsd.port.pre.mk> +.if ${OSVERSION} < 501111 +CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include" +LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2 +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/object/vxquery ${PREFIX}/bin/vxquery + +.include <bsd.port.post.mk> diff --git a/security/vxquery/distinfo b/security/vxquery/distinfo new file mode 100644 index 000000000000..6355b93f6fd8 --- /dev/null +++ b/security/vxquery/distinfo @@ -0,0 +1,2 @@ +MD5 (vxquery-0.1.tar.bz2) = 44929e63237d3de5f7a59687ec968ff5 +SIZE (vxquery-0.1.tar.bz2) = 124165 diff --git a/security/vxquery/files/pkg_check.sh b/security/vxquery/files/pkg_check.sh new file mode 100644 index 000000000000..bd79868393dd --- /dev/null +++ b/security/vxquery/files/pkg_check.sh @@ -0,0 +1,10 @@ +#! /bin/sh +LS="/bin/ls" +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" && "${LS}") | "${VXQUERY}" -f - -t "${FORMAT}" "${VULN_XML}" diff --git a/security/vxquery/pkg-descr b/security/vxquery/pkg-descr new file mode 100644 index 000000000000..d2f7fcdefde4 --- /dev/null +++ b/security/vxquery/pkg-descr @@ -0,0 +1,5 @@ +The VuXML Query Tool, vxquery, is a simple utility for selecting +entries from a VuXML document by package name and version. + +Suggested usage: +/bin/ls /var/db/pkg | vxquery -f - /usr/ports/textproc/vuxml/vuln.xml diff --git a/security/vxquery/pkg-plist b/security/vxquery/pkg-plist new file mode 100644 index 000000000000..e7f181bbe06c --- /dev/null +++ b/security/vxquery/pkg-plist @@ -0,0 +1 @@ +bin/vxquery |