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)
This commit is contained in:
Jason Unovitch 2015-08-05 22:25:07 +00:00
parent 77bb99e53f
commit 0e5cdc29d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2015Q3/; revision=393625
5 changed files with 21 additions and 14 deletions

View File

@ -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 \

View File

@ -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

View File

@ -5,7 +5,8 @@
name=elasticsearch
rcvar=elasticsearch_enable
load_rc_config $name
load_rc_config ${name}
: ${elasticsearch_config:="%%PREFIX%%/etc/elasticsearch/elasticsearch.yml"}

View File

@ -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"

View File

@ -8,7 +8,7 @@ lib/elasticsearch/apache-log4j-extras-1.2.17.jar
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