diff options
author | fjoe <fjoe@FreeBSD.org> | 2007-01-12 02:09:02 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2007-01-12 02:09:02 +0800 |
commit | c60aaac105b558978b8a64afb20ae1075d08b514 (patch) | |
tree | 20bf5eb7637d9fbb213b0ff56a8fe0c8aafad025 | |
parent | ccf06decc0fbe37a6493ec729731b2e71b0ace82 (diff) | |
download | freebsd-ports-gnome-c60aaac105b558978b8a64afb20ae1075d08b514.tar.gz freebsd-ports-gnome-c60aaac105b558978b8a64afb20ae1075d08b514.tar.zst freebsd-ports-gnome-c60aaac105b558978b8a64afb20ae1075d08b514.zip |
- Use nc (netcat) instead of netstat to check if the server has started.
This should fix pointyhat builds.
- IGNORE on FreeBSD 4.x
-rw-r--r-- | databases/virtuoso/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/databases/virtuoso/Makefile b/databases/virtuoso/Makefile index 1ec9c6216372..0033cb82b425 100644 --- a/databases/virtuoso/Makefile +++ b/databases/virtuoso/Makefile @@ -7,7 +7,7 @@ PORTNAME= virtuoso PORTVERSION= 4.5.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -42,6 +42,9 @@ post-patch: -e 's,-lpthreads,${PTHREAD_LIBS},g'\ -e 's,-lruby,-lruby${RUBY_VER:S,.,,},g'\ ${WRKSRC}/configure + ${FIND} ${WRKSRC} -name '*.sh' | ${XARGS} ${GREP} -l 'netstat -an.*grep LISTEN' |\ + ${XARGS} ${REINPLACE_CMD}\ + -e 's,netstat -an.*grep.*$$\([a-zA-Z0-9]*\).*grep LISTEN,${CHECK_PORT},' pre-install: @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL @@ -51,6 +54,17 @@ post-install: .include <bsd.port.pre.mk> +.if ${OSVERSION} < 500000 +IGNORE= requires wchar_t +.endif + +.if ${OSVERSION} < 504000 +CHECK_PORT= ${LOCALBASE}/bin/nc -vz localhost $$\1 2>\&1 | ${GREP} open +BUILD_DEPENDS+= ${NETCAT}:${PORTSDIR}/net/netcat +.else +CHECK_PORT= /usr/bin/nc -z localhost $$\1 +.endif + .if defined(WITH_IMAGEMAGICK) CONFIGURE_ARGS+=--enable-imagemagick=${LOCALBASE} LIB_DEPENDS+= Magick.10:${PORTSDIR}/graphics/ImageMagick |