summaryrefslogtreecommitdiffstats
path: root/system/elasticsearch
diff options
context:
space:
mode:
Diffstat (limited to 'system/elasticsearch')
-rw-r--r--system/elasticsearch/README12
-rw-r--r--system/elasticsearch/elasticsearch.SlackBuild22
-rw-r--r--system/elasticsearch/elasticsearch.info2
3 files changed, 25 insertions, 11 deletions
diff --git a/system/elasticsearch/README b/system/elasticsearch/README
index 4d20f2c192..ae3c8aac9a 100644
--- a/system/elasticsearch/README
+++ b/system/elasticsearch/README
@@ -2,7 +2,8 @@ ElasticSearch
A Distributed RESTful Search Engine
-ElasticSearch is a distributed RESTful search engine built for the cloud.
+ElasticSearch is a distributed RESTful search engine built for the
+cloud.
Features include:
@@ -23,7 +24,8 @@ Various set of APIs
Document oriented
No need for upfront schema definition.
- Schema can be defined per type for customization of the indexing process.
+ Schema can be defined per type for customization of the indexing
+ process.
Reliable, Asynchronous Write Behind for long term persistency.
(Near) Real Time Search.
@@ -37,7 +39,9 @@ Per operation consistency
Single document level operations are atomic, consistent, isolated
and durable.
-This script requires a 'elasticsearch' user/group to exist before running.
-The recommended UID/GID is 280. You can create these like so:
+This script requires a 'elasticsearch' user/group to exist before
+running. The recommended UID/GID is 280. You can create these like
+so:
+
groupadd -g 280 elasticsearch
useradd -u 280 -g elasticsearch -s /bin/sh elasticsearch
diff --git a/system/elasticsearch/elasticsearch.SlackBuild b/system/elasticsearch/elasticsearch.SlackBuild
index 52399ed13e..99c0d453d3 100644
--- a/system/elasticsearch/elasticsearch.SlackBuild
+++ b/system/elasticsearch/elasticsearch.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ElasticSearch
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=elasticsearch
VERSION=${VERSION:-1.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ES_USER=${ES_USER:-elasticsearch}
ES_UID=${ES_UID:-280}
@@ -34,19 +37,26 @@ ES_GID=${ES_GID:-280}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -121,4 +131,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/elasticsearch/elasticsearch.info b/system/elasticsearch/elasticsearch.info
index de673df40c..dc7cb4bdc3 100644
--- a/system/elasticsearch/elasticsearch.info
+++ b/system/elasticsearch/elasticsearch.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://download.elasticsearch.org/elasticsearch/elasticsearch/elastic
MD5SUM="8766b54a2d9c5349acca19deb958c192"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="jdk"
+REQUIRES="zulu-openjdk8"
MAINTAINER="Daniel Romero"
EMAIL="infoslack@gmail.com"