1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Add VuXML Query Tool (vxquery) a simple utility for selecting entries

from a VuXML document by package name and version.
This commit is contained in:
Jacques Vidrine 2004-02-12 14:24:01 +00:00
parent b73c2468c3
commit 3bc45b7c07
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=100762
5 changed files with 48 additions and 0 deletions

30
security/vxquery/Makefile Normal file
View File

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

View File

@ -0,0 +1,2 @@
MD5 (vxquery-0.1.tar.bz2) = 44929e63237d3de5f7a59687ec968ff5
SIZE (vxquery-0.1.tar.bz2) = 124165

View File

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

View File

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

View File

@ -0,0 +1 @@
bin/vxquery