Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2014 09:49:03 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374181 - head/textproc/elasticsearch
Message-ID:  <201412070949.sB79n3Pb092985@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Dec  7 09:49:03 2014
New Revision: 374181
URL: https://svnweb.freebsd.org/changeset/ports/374181
QAT: https://qat.redports.org/buildarchive/r374181/

Log:
  Fix a symlink by copying the logic from java/sigar

Modified:
  head/textproc/elasticsearch/Makefile

Modified: head/textproc/elasticsearch/Makefile
==============================================================================
--- head/textproc/elasticsearch/Makefile	Sun Dec  7 09:47:43 2014	(r374180)
+++ head/textproc/elasticsearch/Makefile	Sun Dec  7 09:49:03 2014	(r374181)
@@ -3,7 +3,7 @@
 
 PORTNAME=	elasticsearch
 PORTVERSION=	1.4.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc java devel
 MASTER_SITES=	http://download.elasticsearch.org/${PORTNAME}/${PORTNAME}/ \
 		http://mirrors.rit.edu/zi/
@@ -63,6 +63,24 @@ GROUPS=		${SEARCHGROUP}
 ELASTIC_DBDIR=	/var/db/elasticsearch
 ELASTIC_LOGDIR=	/var/log/elasticsearch
 
+.if ${OPSYS} == FreeBSD
+.  if ${OSVERSION} >= 1000000
+PLATFORM_VER=	1
+.  elif ${OSVERSION} >= 900000
+PLATFORM_VER=	9
+.  elif ${OSVERSION} >= 800000
+PLATFORM_VER=	8
+.  elif ${OSVERSION} >= 700000
+PLATFORM_VER=	7
+.  elif ${OSVERSION} >= 600000
+PLATFORM_VER=	6
+.  else
+BROKEN=		Unsupported FreeBSD version
+.  endif
+.else
+BROKEN=		${OPSYS} platform is not supported
+.endif
+
 SIGAR_LIBNAME=	libsigar-${ARCH:S,i386,x86,}-freebsd-${PLATFORM_VER}.so
 
 SUB_LIST=	SEARCHUSER=${SEARCHUSER} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412070949.sB79n3Pb092985>