From owner-svn-ports-branches@freebsd.org Wed Aug 5 22:25:09 2015 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC6359B34AD; Wed, 5 Aug 2015 22:25:09 +0000 (UTC) (envelope-from junovitch@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C207194B; Wed, 5 Aug 2015 22:25:09 +0000 (UTC) (envelope-from junovitch@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t75MP95S072700; Wed, 5 Aug 2015 22:25:09 GMT (envelope-from junovitch@FreeBSD.org) Received: (from junovitch@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t75MP74P072695; Wed, 5 Aug 2015 22:25:07 GMT (envelope-from junovitch@FreeBSD.org) Message-Id: <201508052225.t75MP74P072695@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: junovitch set sender to junovitch@FreeBSD.org using -f From: Jason Unovitch Date: Wed, 5 Aug 2015 22:25:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r393625 - in branches/2015Q3/textproc/elasticsearch: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 22:25:09 -0000 Author: junovitch Date: Wed Aug 5 22:25:07 2015 New Revision: 393625 URL: https://svnweb.freebsd.org/changeset/ports/393625 Log: MFH: r393624 textproc/elasticsearch: update 1.6.0 -> 1.7.0 - Add NO_ARCH - Apply minor cleanup to rc scripts PR: 201834 Security: CVE-2015-5377 Security: fb3668df-32d7-11e5-a4a5-002590263bf5 Security: CVE-2015-5531 Security: ae8c09cb-32da-11e5-a4a5-002590263bf5 Approved by: ports-secteam (feld), feld (mentor) Modified: branches/2015Q3/textproc/elasticsearch/Makefile branches/2015Q3/textproc/elasticsearch/distinfo branches/2015Q3/textproc/elasticsearch/files/elasticsearch-plugin.in branches/2015Q3/textproc/elasticsearch/files/elasticsearch.in branches/2015Q3/textproc/elasticsearch/pkg-plist Directory Properties: branches/2015Q3/ (props changed) Modified: branches/2015Q3/textproc/elasticsearch/Makefile ============================================================================== --- branches/2015Q3/textproc/elasticsearch/Makefile Wed Aug 5 22:18:29 2015 (r393624) +++ branches/2015Q3/textproc/elasticsearch/Makefile Wed Aug 5 22:25:07 2015 (r393625) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= elasticsearch -PORTVERSION= 1.6.0 +PORTVERSION= 1.7.0 CATEGORIES= textproc java devel MASTER_SITES= http://download.elasticsearch.org/${PORTNAME}/${PORTNAME}/ \ http://mirrors.rit.edu/zi/ @@ -15,6 +15,7 @@ LICENSE= APACHE20 RUN_DEPENDS= java-sigar>=0:${PORTSDIR}/java/sigar USES= cpe +NO_ARCH= yes USE_JAVA= yes NO_BUILD= yes JAVA_VERSION= 1.7+ @@ -32,7 +33,7 @@ JARS= elasticsearch-${PORTVERSION}.jar asm-commons-4.1.jar \ apache-log4j-extras-1.2.17.jar \ antlr-runtime-3.5.jar \ - groovy-all-2.4.0.jar \ + groovy-all-2.4.4.jar \ jna-4.1.0.jar \ jts-1.13.jar \ log4j-1.2.17.jar \ Modified: branches/2015Q3/textproc/elasticsearch/distinfo ============================================================================== --- branches/2015Q3/textproc/elasticsearch/distinfo Wed Aug 5 22:18:29 2015 (r393624) +++ branches/2015Q3/textproc/elasticsearch/distinfo Wed Aug 5 22:25:07 2015 (r393625) @@ -1,2 +1,2 @@ -SHA256 (elasticsearch-1.6.0.tar.gz) = dc336c83394b2f2f72f362e0f959a4cfdec2109aa3de15668401afeab0b02d2e -SIZE (elasticsearch-1.6.0.tar.gz) = 28401477 +SHA256 (elasticsearch-1.7.0.tar.gz) = 6fabed2db09e1b88587df15269df328ecef33e155b3c675a2a6d2299bda09c95 +SIZE (elasticsearch-1.7.0.tar.gz) = 28501532 Modified: branches/2015Q3/textproc/elasticsearch/files/elasticsearch-plugin.in ============================================================================== --- branches/2015Q3/textproc/elasticsearch/files/elasticsearch-plugin.in Wed Aug 5 22:18:29 2015 (r393624) +++ branches/2015Q3/textproc/elasticsearch/files/elasticsearch-plugin.in Wed Aug 5 22:25:07 2015 (r393625) @@ -5,7 +5,8 @@ name=elasticsearch rcvar=elasticsearch_enable -load_rc_config $name + +load_rc_config ${name} : ${elasticsearch_config:="%%PREFIX%%/etc/elasticsearch/elasticsearch.yml"} Modified: branches/2015Q3/textproc/elasticsearch/files/elasticsearch.in ============================================================================== --- branches/2015Q3/textproc/elasticsearch/files/elasticsearch.in Wed Aug 5 22:18:29 2015 (r393624) +++ branches/2015Q3/textproc/elasticsearch/files/elasticsearch.in Wed Aug 5 22:25:07 2015 (r393625) @@ -27,7 +27,8 @@ name=elasticsearch rcvar=elasticsearch_enable -load_rc_config $name + +load_rc_config ${name} : ${elasticsearch_enable:="NO"} : ${elasticsearch_user:=%%SEARCHUSER%%} @@ -47,7 +48,6 @@ pidfile="/var/run/${name}.pid" ES_LIB="%%PREFIX%%/lib/elasticsearch" ES_CLASSPATH=$ES_LIB/elasticsearch-%%PORTVERSION%%.jar:$ES_LIB/*:$ES_LIB/sigar/* - java_options=" -server \ -Xms${elasticsearch_min_mem} \ -Xmx${elasticsearch_max_mem} \ @@ -71,7 +71,8 @@ stop_cmd="elasticsearch_stop" command="/usr/sbin/daemon" command_args="-f %%LOCALBASE%%/bin/java -Des.pidfile=${pidfile} ${elasticsearch_props} ${java_options} org.elasticsearch.bootstrap.Elasticsearch" -elasticsearch_precmd() { +elasticsearch_precmd() +{ touch ${pidfile} chown ${elasticsearch_user}:${elasticsearch_group} ${pidfile} /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 750 ${elasticsearch_tmp} @@ -79,12 +80,14 @@ elasticsearch_precmd() { /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 750 /var/log/elasticsearch } -elasticsearch_console () { +elasticsearch_console() +{ %%LOCALBASE%%/bin/java -Des.foreground=yes ${elasticsearch_props} ${java_options} org.elasticsearch.bootstrap.Elasticsearch } -elasticsearch_stop() { +elasticsearch_stop() +{ rc_pid=$(elasticsearch_check_pidfile $pidfile) if [ -z "$rc_pid" ]; then @@ -97,7 +100,8 @@ elasticsearch_stop() { kill ${rc_pid} 2> /dev/null } -elasticsearch_status() { +elasticsearch_status() +{ rc_pid=$(elasticsearch_check_pidfile $pidfile) if [ -z "$rc_pid" ]; then @@ -108,7 +112,8 @@ elasticsearch_status() { echo "${name} is running as pid ${rc_pid}." } -elasticsearch_check_pidfile() { +elasticsearch_check_pidfile() +{ _pidfile=$1 if [ -z "$_pidfile" ]; then err 3 'USAGE: elasticsearch_check_pidfile pidfile' @@ -126,5 +131,5 @@ elasticsearch_check_pidfile() { echo -n $_pid fi } -load_rc_config ${name} + run_rc_command "$1" Modified: branches/2015Q3/textproc/elasticsearch/pkg-plist ============================================================================== --- branches/2015Q3/textproc/elasticsearch/pkg-plist Wed Aug 5 22:18:29 2015 (r393624) +++ branches/2015Q3/textproc/elasticsearch/pkg-plist Wed Aug 5 22:25:07 2015 (r393625) @@ -8,7 +8,7 @@ lib/elasticsearch/apache-log4j-extras-1. lib/elasticsearch/asm-4.1.jar lib/elasticsearch/asm-commons-4.1.jar lib/elasticsearch/elasticsearch-%%PORTVERSION%%.jar -lib/elasticsearch/groovy-all-2.4.0.jar +lib/elasticsearch/groovy-all-2.4.4.jar lib/elasticsearch/jna-4.1.0.jar lib/elasticsearch/jts-1.13.jar lib/elasticsearch/log4j-1.2.17.jar