From owner-svn-ports-head@freebsd.org Sat Oct 5 00:09:18 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8B58713CD38; Sat, 5 Oct 2019 00:09:18 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46lRtk2mt2z42Qc; Sat, 5 Oct 2019 00:09:18 +0000 (UTC) (envelope-from glewis@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 42573451B; Sat, 5 Oct 2019 00:09:18 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x9509Ilm047379; Sat, 5 Oct 2019 00:09:18 GMT (envelope-from glewis@FreeBSD.org) Received: (from glewis@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9509Hvd047374; Sat, 5 Oct 2019 00:09:17 GMT (envelope-from glewis@FreeBSD.org) Message-Id: <201910050009.x9509Hvd047374@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glewis set sender to glewis@FreeBSD.org using -f From: Greg Lewis Date: Sat, 5 Oct 2019 00:09:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r513796 - in head/textproc/elasticsearch6: . files X-SVN-Group: ports-head X-SVN-Commit-Author: glewis X-SVN-Commit-Paths: in head/textproc/elasticsearch6: . files X-SVN-Commit-Revision: 513796 X-SVN-Commit-Repository: ports 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.29 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: Sat, 05 Oct 2019 00:09:18 -0000 Author: glewis Date: Sat Oct 5 00:09:16 2019 New Revision: 513796 URL: https://svnweb.freebsd.org/changeset/ports/513796 Log: Update to 6.8.3 * Update to 6.8.3, which allows the use of newer versions of Java (e.g. 11) * Modify the rc file to allow the version of Java to be used to be configured * Pull in changes to jvm.options that allow for newer versions of Java * Fix a type in pkg-message PR: 239972 Approved by: maintainer timeout Sponsored by: The FreeBSD Foundation Modified: head/textproc/elasticsearch6/Makefile head/textproc/elasticsearch6/distinfo head/textproc/elasticsearch6/files/elasticsearch.in head/textproc/elasticsearch6/files/patch-config_jvm.options head/textproc/elasticsearch6/files/pkg-message.in Modified: head/textproc/elasticsearch6/Makefile ============================================================================== --- head/textproc/elasticsearch6/Makefile Fri Oct 4 22:46:20 2019 (r513795) +++ head/textproc/elasticsearch6/Makefile Sat Oct 5 00:09:16 2019 (r513796) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= elasticsearch -PORTVERSION= 6.5.4 +PORTVERSION= 6.8.3 PORTREVISION= 0 CATEGORIES= textproc java devel MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \ @@ -24,22 +24,57 @@ USES= cpe shebangfix NO_ARCH= yes USE_JAVA= yes NO_BUILD= yes -JAVA_VERSION= 1.8+ +JAVA_VERSION= 8+ USE_RC_SUBR= ${PORTNAME} SHEBANG_FILES= bin/elasticsearch \ + bin/elasticsearch-certgen \ + bin/elasticsearch-certutil \ bin/elasticsearch-cli \ + bin/elasticsearch-croneval \ bin/elasticsearch-env \ - bin/elasticsearch-plugin + bin/elasticsearch-keystore \ + bin/elasticsearch-migrate \ + bin/elasticsearch-plugin \ + bin/elasticsearch-saml-metadata \ + bin/elasticsearch-setup-passwords \ + bin/elasticsearch-shard \ + bin/elasticsearch-sql-cli \ + bin/elasticsearch-syskeygen \ + bin/elasticsearch-translog \ + bin/elasticsearch-users \ + bin/x-pack-env \ + bin/x-pack-security-env \ + bin/x-pack-watcher-env OPTIONS_DEFINE= DOCS .include -CONFIG_FILES= elasticsearch.yml log4j2.properties jvm.options +CONFIG_FILES= elasticsearch.yml \ + log4j2.properties \ + jvm.options \ + role_mapping.yml \ + roles.yml BINS= elasticsearch \ + elasticsearch-certgen \ + elasticsearch-certutil \ elasticsearch-cli \ + elasticsearch-croneval \ elasticsearch-env \ - elasticsearch-plugin + elasticsearch-keystore \ + elasticsearch-migrate \ + elasticsearch-plugin \ + elasticsearch-saml-metadata \ + elasticsearch-setup-passwords \ + elasticsearch-shard \ + elasticsearch-sql-cli \ + elasticsearch-sql-cli-${PORTVERSION}.jar \ + elasticsearch-syskeygen \ + elasticsearch-translog \ + elasticsearch-users \ + x-pack-env \ + x-pack-security-env \ + x-pack-watcher-env PORTDOCS= LICENSE.txt \ NOTICE.txt \ @@ -51,7 +86,7 @@ SEARCHGROUP?= ${SEARCHUSER} USERS= ${SEARCHUSER} GROUPS= ${SEARCHGROUP} -SUB_LIST= ETCDIR=${ETCDIR} JAVA=${JAVA} +SUB_LIST= ETCDIR=${ETCDIR} JAVA_HOME=${JAVA_HOME} SUB_FILES= pkg-message post-patch: Modified: head/textproc/elasticsearch6/distinfo ============================================================================== --- head/textproc/elasticsearch6/distinfo Fri Oct 4 22:46:20 2019 (r513795) +++ head/textproc/elasticsearch6/distinfo Sat Oct 5 00:09:16 2019 (r513796) @@ -1,3 +1,3 @@ -TIMESTAMP = 1548195078 -SHA256 (elasticsearch-6.5.4.tar.gz) = 762e25c036fa2e882cb7e91d83868fa15a1cad8549d279a8c5826a005bb31877 -SIZE (elasticsearch-6.5.4.tar.gz) = 113322649 +TIMESTAMP = 1568794150 +SHA256 (elasticsearch-6.8.3.tar.gz) = 824078e421c9f7e5ab9c875e4019d9ebfe3ada99db286b54dec090f97d1cbe25 +SIZE (elasticsearch-6.8.3.tar.gz) = 148609846 Modified: head/textproc/elasticsearch6/files/elasticsearch.in ============================================================================== --- head/textproc/elasticsearch6/files/elasticsearch.in Fri Oct 4 22:46:20 2019 (r513795) +++ head/textproc/elasticsearch6/files/elasticsearch.in Sat Oct 5 00:09:16 2019 (r513796) @@ -17,6 +17,8 @@ # Set it to required group. # elasticsearch_config (path): Set to %%PREFIX%%/etc/elasticsearch/elasticsearch.yml by default. # Set it to the config file location. +# elasticsearch_java_home (path): Set to %%JAVA_HOME%% by default. +# Set it to the root of the JDK to use. # . /etc/rc.subr @@ -30,11 +32,12 @@ load_rc_config ${name} : ${elasticsearch_group=elasticsearch} : ${elasticsearch_config=%%PREFIX%%/etc/elasticsearch} : ${elasticsearch_login_class=root} +: ${elasticsearch_java_home="%%JAVA_HOME%%"} required_files="${elasticsearch_config}/elasticsearch.yml" _pidprefix=/var/run/elasticsearch/elasticsearch pidfile=${_pidprefix}.pid -procname=%%JAVA%% +procname=${elasticsearch_java_home}/bin/java extra_commands="console status" console_cmd=elasticsearch_console @@ -43,6 +46,7 @@ command=%%PREFIX%%/lib/elasticsearch/bin/elasticsearch command_args="-d --pidfile=${pidfile}" export ES_PATH_CONF=${elasticsearch_config} +export JAVA_HOME=${elasticsearch_java_home} elasticsearch_precmd() { Modified: head/textproc/elasticsearch6/files/patch-config_jvm.options ============================================================================== --- head/textproc/elasticsearch6/files/patch-config_jvm.options Fri Oct 4 22:46:20 2019 (r513795) +++ head/textproc/elasticsearch6/files/patch-config_jvm.options Sat Oct 5 00:09:16 2019 (r513796) @@ -1,6 +1,6 @@ ---- config/jvm.options.orig 2018-03-01 23:04:45 UTC -+++ config/jvm.options -@@ -87,7 +87,7 @@ +--- config/jvm.options.orig 2019-07-24 08:21:42.000000000 -0700 ++++ config/jvm.options 2019-08-16 13:41:33.818798000 -0700 +@@ -107,13 +107,13 @@ 8:-XX:+PrintGCDateStamps 8:-XX:+PrintTenuringDistribution 8:-XX:+PrintGCApplicationStoppedTime @@ -9,3 +9,10 @@ 8:-XX:+UseGCLogFileRotation 8:-XX:NumberOfGCLogFiles=32 8:-XX:GCLogFileSize=64m + + # JDK 9+ GC logging +-9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m ++9-:-Xlog:gc*,gc+age=trace,safepoint:file=${ES_TMPDIR}/gc.log:utctime,pid,tags:filecount=32,filesize=64m + # due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise + # time/date parsing will break in an incompatible way for some date patterns and locals + 9-:-Djava.locale.providers=COMPAT Modified: head/textproc/elasticsearch6/files/pkg-message.in ============================================================================== --- head/textproc/elasticsearch6/files/pkg-message.in Fri Oct 4 22:46:20 2019 (r513795) +++ head/textproc/elasticsearch6/files/pkg-message.in Sat Oct 5 00:09:16 2019 (r513796) @@ -14,7 +14,7 @@ sysctl security.bsd.unprivileged_mlock=1 ElasticSearch plugins should only be installed via the elasticsearch-plugin included with this software. As we strive to provide a minimum semblance of security, the files installed by the package are owned by root:wheel. -This is different than upstream hich expects all of the files to be +This is different than upstream which expects all of the files to be owned by the user and for you to execute the elasticsearch-plugin script as said user.