From owner-svn-ports-head@freebsd.org Fri Dec 2 12:01:14 2016 Return-Path: Delivered-To: svn-ports-head@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 B5E6EC62D5B; Fri, 2 Dec 2016 12:01:14 +0000 (UTC) (envelope-from tj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 781281F23; Fri, 2 Dec 2016 12:01:14 +0000 (UTC) (envelope-from tj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB2C1Drk095157; Fri, 2 Dec 2016 12:01:13 GMT (envelope-from tj@FreeBSD.org) Received: (from tj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB2C1DRh095150; Fri, 2 Dec 2016 12:01:13 GMT (envelope-from tj@FreeBSD.org) Message-Id: <201612021201.uB2C1DRh095150@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tj set sender to tj@FreeBSD.org using -f From: Tom Judge Date: Fri, 2 Dec 2016 12:01:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427553 - in head/textproc/elasticsearch5: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 12:01:14 -0000 Author: tj Date: Fri Dec 2 12:01:12 2016 New Revision: 427553 URL: https://svnweb.freebsd.org/changeset/ports/427553 Log: * Update to 5.0.2 * Fix using jvm.options file * Add errors to rc script when using legacy rc.conf options PR: 214572, 214983 Submitted by: purpleritza@gmail.com Reported by: purpleritza@gmail.com, Mark.Martinec@ijs.si Added: head/textproc/elasticsearch5/files/patch-bin_elasticsearch (contents, props changed) Modified: head/textproc/elasticsearch5/Makefile head/textproc/elasticsearch5/distinfo head/textproc/elasticsearch5/files/elasticsearch.in head/textproc/elasticsearch5/files/patch-bin_elasticsearch.in.sh head/textproc/elasticsearch5/files/patch-config_elasticsearch.yml head/textproc/elasticsearch5/pkg-plist Modified: head/textproc/elasticsearch5/Makefile ============================================================================== --- head/textproc/elasticsearch5/Makefile Fri Dec 2 11:58:21 2016 (r427552) +++ head/textproc/elasticsearch5/Makefile Fri Dec 2 12:01:12 2016 (r427553) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= elasticsearch -PORTVERSION= 5.0.0 +PORTVERSION= 5.0.2 CATEGORIES= textproc java devel MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \ http://mirrors.rit.edu/zi/ @@ -30,7 +30,7 @@ OPTIONS_DEFINE= DOCS .include -LUCENEVER= 6.2.0 +LUCENEVER= 6.2.1 CONFIG_FILES= elasticsearch.yml log4j2.properties jvm.options BINS= elasticsearch.in.sh \ elasticsearch \ @@ -62,6 +62,7 @@ PLIST_SUB= SEARCHUSER=${SEARCHUSER} \ post-patch: ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/elasticsearch.yml ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch.in.sh + ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/elasticsearch do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/elasticsearch Modified: head/textproc/elasticsearch5/distinfo ============================================================================== --- head/textproc/elasticsearch5/distinfo Fri Dec 2 11:58:21 2016 (r427552) +++ head/textproc/elasticsearch5/distinfo Fri Dec 2 12:01:12 2016 (r427553) @@ -1,3 +1,3 @@ -TIMESTAMP = 1478218577 -SHA256 (elasticsearch-5.0.0.tar.gz) = a866534f0fa7428e980c985d712024feef1dee04709add6e360fc7b73bb1e7ae -SIZE (elasticsearch-5.0.0.tar.gz) = 32968292 +TIMESTAMP = 1480613915 +SHA256 (elasticsearch-5.0.2.tar.gz) = bbe761788570d344801cb91a8ba700465deb10601751007da791743e9308cb83 +SIZE (elasticsearch-5.0.2.tar.gz) = 32951077 Modified: head/textproc/elasticsearch5/files/elasticsearch.in ============================================================================== --- head/textproc/elasticsearch5/files/elasticsearch.in Fri Dec 2 11:58:21 2016 (r427552) +++ head/textproc/elasticsearch5/files/elasticsearch.in Fri Dec 2 12:01:12 2016 (r427553) @@ -17,9 +17,6 @@ # Set it to required group. # elasticsearch_config (path): Set to /usr/local/etc/elasticsearch/elasticsearch.yml by default. # Set it to the config file location. -# elasticsearch_min_mem (num): Minumum JVM heap size, 256m by default. -# elasticsearch_max_mem (num): Maximum JVM heap size, 1g by default. -# elasticsearch_props (args): Additional java properties or arguments. # elasticsearch_tmp (path): Set to /var/tmp/elasticsearch by default. # Set it to the path to be used for temp files. # @@ -119,16 +116,13 @@ if [ -n "$2" ]; then exit 1 fi required_files="${elasticsearch_config}/elasticsearch.yml" + required_files="${elasticsearch_config}/jvm.options" eval elasticsearch_enable="\${elasticsearch_${profile}_enable:-${elasticsearch_enable}}" - eval elasticsearch_props="\${elasticsearch_${profile}_props:-${elasticsearch_props}}" - eval elasticsearch_min_mem="\${elasticsearch_${profile}_min_mem:-${elasticsearch_min_mem}}" - eval elasticsearch_max_mem="\${elasticsearchlimits_${profile}_enable:-${elasticsearch_max_mem}}" - eval elasticsearch_tmp="\${elasticsearchlimits_${profile}_args:-${elasticsearch_tmp}}" + eval elasticsearch_tmp="\${elasticsearch_${profile}_args:-${elasticsearch_tmp}}" else echo "$0: extra argument ignored" fi else - eval elasticsearch_envvars=${envvars} if [ "x${elasticsearch_profiles}" != "x" -a "x$1" != "x" ]; then for profile in ${elasticsearch_profiles}; do eval _enable="\${elasticsearch_${profile}_enable}" @@ -164,4 +158,17 @@ else fi fi +if [ "x${elasticsearch_mem_min}" != "x" ]; then + echo "The elasticsearch_mem_min variable is no longer supported please set this in %%PREFIX%%/etc/jvm.options" + exit 1; +fi +if [ "x${elasticsearch_mem_max}" != "x" ]; then + echo "The elasticsearch_mem_max variable is no longer supported please set this in %%PREFIX%%/etc/jvm.options" + exit 1; +fi +if [ "x${elasticsearch_props}" != "x" ]; then + echo "The elasticsearch_props variable is no longer supported please set this in %%PREFIX%%/etc/jvm.options" + exit 1; +fi + run_rc_command "$1" Added: head/textproc/elasticsearch5/files/patch-bin_elasticsearch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/elasticsearch5/files/patch-bin_elasticsearch Fri Dec 2 12:01:12 2016 (r427553) @@ -0,0 +1,11 @@ +--- bin/elasticsearch.orig 2016-12-02 11:42:56 UTC ++++ bin/elasticsearch +@@ -112,7 +112,7 @@ ES_HOME=`cd "$ES_HOME"; pwd` + + if [ -z "$ES_JVM_OPTIONS" ]; then + for jvm_options in "$ES_HOME"/config/jvm.options \ +- /etc/elasticsearch/jvm.options; do ++ %%PREFIX%%/etc/elasticsearch/jvm.options; do + if [ -r "$jvm_options" ]; then + ES_JVM_OPTIONS=$jvm_options + break Modified: head/textproc/elasticsearch5/files/patch-bin_elasticsearch.in.sh ============================================================================== --- head/textproc/elasticsearch5/files/patch-bin_elasticsearch.in.sh Fri Dec 2 11:58:21 2016 (r427552) +++ head/textproc/elasticsearch5/files/patch-bin_elasticsearch.in.sh Fri Dec 2 12:01:12 2016 (r427553) @@ -1,4 +1,4 @@ ---- bin/elasticsearch.in.sh.orig 2016-10-26 04:35:54 UTC +--- bin/elasticsearch.in.sh.orig 2016-11-24 10:05:27 UTC +++ bin/elasticsearch.in.sh @@ -1,5 +1,19 @@ #!/bin/bash Modified: head/textproc/elasticsearch5/files/patch-config_elasticsearch.yml ============================================================================== --- head/textproc/elasticsearch5/files/patch-config_elasticsearch.yml Fri Dec 2 11:58:21 2016 (r427552) +++ head/textproc/elasticsearch5/files/patch-config_elasticsearch.yml Fri Dec 2 12:01:12 2016 (r427553) @@ -1,4 +1,4 @@ ---- config/elasticsearch.yml.orig 2016-10-26 04:35:54 UTC +--- config/elasticsearch.yml.orig 2016-11-24 10:05:27 UTC +++ config/elasticsearch.yml @@ -31,10 +31,15 @@ # Path to directory where to store the data (separate multiple locations by comma): Modified: head/textproc/elasticsearch5/pkg-plist ============================================================================== --- head/textproc/elasticsearch5/pkg-plist Fri Dec 2 11:58:21 2016 (r427552) +++ head/textproc/elasticsearch5/pkg-plist Fri Dec 2 12:01:12 2016 (r427553) @@ -12,8 +12,7 @@ lib/elasticsearch/lib/jackson-dataformat lib/elasticsearch/lib/jackson-dataformat-smile-2.8.1.jar lib/elasticsearch/lib/jackson-dataformat-yaml-2.8.1.jar lib/elasticsearch/lib/jna-4.2.2.jar -lib/elasticsearch/lib/joda-convert-1.2.jar -lib/elasticsearch/lib/joda-time-2.9.4.jar +lib/elasticsearch/lib/joda-time-2.9.5.jar lib/elasticsearch/lib/jopt-simple-5.0.2.jar lib/elasticsearch/lib/jts-1.13.jar lib/elasticsearch/lib/log4j-1.2-api-2.6.2.jar