Don't require a particular version of libexpat. Use sh(1)'s `echo *'

instead of spawning off ls(1) in pkg_check.sh.

Approved by:	maintainer
This commit is contained in:
Mikhail Teterin 2004-08-17 16:52:19 +00:00
parent fc85b19c7a
commit 6146e0e3f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116534
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ GNU_CONFIGURE= YES
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 501111
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include"
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
.endif
do-install:

View file

@ -1,5 +1,4 @@
#! /bin/sh
LS="/bin/ls"
VXQUERY="vxquery"
PORTSDIR="${PORTSDIR:-/usr/ports}"
PKGDIR="${PKGDIR:-/var/db/pkg}"
@ -7,4 +6,5 @@ FORMAT="${FORMAT:-text}"
VULN_XML="${VULN_XML:-${PORTSDIR}/security/vuxml/vuln.xml}"
set -e
(cd "$PKGDIR" && "${LS}") | "${VXQUERY}" -f - -t "${FORMAT}" "${VULN_XML}"
cd "$PKGDIR"
echo * | "${VXQUERY}" -f - -t "${FORMAT}" "${VULN_XML}"