Date: Wednesday, February 7, 2018 @ 14:07:16 Author: mtorromeo Revision: 289994
archrelease: copy trunk to community-any Added: elasticsearch/repos/community-any/PKGBUILD (from rev 289993, elasticsearch/trunk/PKGBUILD) elasticsearch/repos/community-any/elasticsearch-env (from rev 289993, elasticsearch/trunk/elasticsearch-env) elasticsearch/repos/community-any/elasticsearch-sysctl.conf (from rev 289993, elasticsearch/trunk/elasticsearch-sysctl.conf) elasticsearch/repos/community-any/elasticsearch-tmpfile.conf (from rev 289993, elasticsearch/trunk/elasticsearch-tmpfile.conf) elasticsearch/repos/community-any/elasticsearch-user.conf (from rev 289993, elasticsearch/trunk/elasticsearch-user.conf) elasticsearch/repos/community-any/elasticsearch.default (from rev 289993, elasticsearch/trunk/elasticsearch.default) elasticsearch/repos/community-any/elasticsearch.service (from rev 289993, elasticsearch/trunk/elasticsearch.service) elasticsearch/repos/community-any/elasticsearch@.service (from rev 289993, elasticsearch/trunk/elasticsearch@.service) Deleted: elasticsearch/repos/community-any/PKGBUILD elasticsearch/repos/community-any/elasticsearch-env elasticsearch/repos/community-any/elasticsearch-sysctl.conf elasticsearch/repos/community-any/elasticsearch-tmpfile.conf elasticsearch/repos/community-any/elasticsearch-user.conf elasticsearch/repos/community-any/elasticsearch.default elasticsearch/repos/community-any/elasticsearch.service elasticsearch/repos/community-any/elasticsearch@.service ----------------------------+ PKGBUILD | 152 +++++++++++++++++++++---------------------- elasticsearch-env | 92 +++++++++++++------------- elasticsearch-sysctl.conf | 2 elasticsearch-tmpfile.conf | 12 +-- elasticsearch-user.conf | 2 elasticsearch.default | 26 +++---- elasticsearch.service | 71 ++++++++++---------- elasticsearch@.service | 71 ++++++++++---------- 8 files changed, 220 insertions(+), 208 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-02-07 14:06:54 UTC (rev 289993) +++ PKGBUILD 2018-02-07 14:07:16 UTC (rev 289994) @@ -1,76 +0,0 @@ -# $Id$ -# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> -# Contributor: Marcello "mererghost" Rocha <https://github.com/mereghost> -# Refactored by Blaž "Speed" Hrastnik <https://github.com/archSeer> - -pkgname=elasticsearch -pkgver=6.1.3 -pkgrel=1 -pkgdesc="Distributed RESTful search engine built on top of Lucene" -arch=('any') -url="https://www.elastic.co/products/elasticsearch" -license=('APACHE') -depends=('java-runtime-headless=8' 'systemd') -source=( - "https://artifacts.elastic.co/downloads/$pkgname/$pkgname-$pkgver.tar.gz" - elasticsearch-env - elasticsearch.service - elasticsearch@.service - elasticsearch-sysctl.conf - elasticsearch-user.conf - elasticsearch-tmpfile.conf - elasticsearch.default -) -sha256sums=('81286935cc95700e604d0c63c411e49d34536346b77f75abe12d0abfddf5b251' - 'ffb354d8ec3752daa52c1bea49445491c3b811a5327dd8510b7c8e9499adefd1' - 'd3e92ff8cf6058965b1407537c3e618bff67f8012a8e3125721d22a72be1523b' - 'a38cf624ed91e2dcf36ed65806bbcf5ae91809a2a84a700ec52d1eb04ef0d5bf' - 'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c' - '815f6a39db6f54bb40750c382ffbdc298d2c4c187ee8ea7e2f855923e2ff354b' - '3173e3efa429507e6329f518699a072dfd442d9b5da7c62452a55f82334dd2b5' - 'bb74e5fb8bc28f2125e015395ab05bea117b72bfc6dadbca827694b362ee0bf8') - -backup=('etc/elasticsearch/elasticsearch.yml' - 'etc/elasticsearch/log4j2.properties' - 'etc/elasticsearch/jvm.options' - 'etc/default/elasticsearch') - -prepare() { - cd "$srcdir"/$pkgname-$pkgver - - sed -r 's;source .*/elasticsearch-env;source /usr/share/elasticsearch/elasticsearch-env;' \ - -i bin/elasticsearch{,-keystore,-plugin,-translog} -} - -package() { - cd "$pkgdir" - install -dm750 etc/elasticsearch/scripts - install -dm755 usr/share/elasticsearch - install -dm755 var/lib/elasticsearch - install -dm755 var/log/elasticsearch - - install -Dm644 "$srcdir"/elasticsearch-env usr/share/elasticsearch/elasticsearch-env - install -Dm644 "$srcdir"/elasticsearch.service usr/lib/systemd/system/elasticsearch.service - install -Dm644 "$srcdir"/elasticsearch@.service usr/lib/systemd/system/elasticsearch@.service - install -Dm644 "$srcdir"/elasticsearch-user.conf usr/lib/sysusers.d/elasticsearch.conf - install -Dm644 "$srcdir"/elasticsearch-tmpfile.conf usr/lib/tmpfiles.d/elasticsearch.conf - install -Dm644 "$srcdir"/elasticsearch-sysctl.conf usr/lib/sysctl.d/elasticsearch.conf - install -Dm644 "$srcdir"/elasticsearch.default etc/default/elasticsearch - - cd "$srcdir"/$pkgname-$pkgver - cp -R lib modules plugins "$pkgdir"/usr/share/elasticsearch/ - - cd config - for conf in *; do - install -Dm644 "$conf" "$pkgdir/etc/elasticsearch/$conf" - done - cd .. - - for script in elasticsearch{,-keystore,-plugin,-translog}; do - install -Dm755 bin/$script "$pkgdir"/usr/bin/$script - done - - ln -s ../../bin "$pkgdir"/usr/share/elasticsearch/bin - ln -s ../../../var/log/elasticsearch "$pkgdir"/usr/share/elasticsearch/logs - ln -s ../../../var/lib/elasticsearch "$pkgdir"/usr/share/elasticsearch/data -} Copied: elasticsearch/repos/community-any/PKGBUILD (from rev 289993, elasticsearch/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1,76 @@ +# $Id$ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> +# Contributor: Marcello "mererghost" Rocha <https://github.com/mereghost> +# Refactored by Blaž "Speed" Hrastnik <https://github.com/archSeer> + +pkgname=elasticsearch +pkgver=6.2.0 +pkgrel=1 +pkgdesc="Distributed RESTful search engine built on top of Lucene" +arch=('any') +url="https://www.elastic.co/products/elasticsearch" +license=('APACHE') +depends=('java-runtime-headless=8' 'systemd') +source=( + "https://artifacts.elastic.co/downloads/$pkgname/$pkgname-$pkgver.tar.gz" + elasticsearch-env + elasticsearch.service + elasticsearch@.service + elasticsearch-sysctl.conf + elasticsearch-user.conf + elasticsearch-tmpfile.conf + elasticsearch.default +) +sha256sums=('7be4a6580aca7d17b2fe1a1e589aa0a005b6240ef5dce6a5288a56f68021f8f6' + 'cffa3aeabd4ec781d90e6432555959140cccba1d311066bb1b8e8bf166f9defd' + 'ac484a5e44c04f1d1687bf223720468f3a9b9dd11db248072c9ba0f4a6a9e8aa' + 'dae13e9d5311841eaa6582b333ffb0bd782eabc205a55bb35f891f2e404704ab' + 'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c' + '815f6a39db6f54bb40750c382ffbdc298d2c4c187ee8ea7e2f855923e2ff354b' + '3173e3efa429507e6329f518699a072dfd442d9b5da7c62452a55f82334dd2b5' + 'bb74e5fb8bc28f2125e015395ab05bea117b72bfc6dadbca827694b362ee0bf8') + +backup=('etc/elasticsearch/elasticsearch.yml' + 'etc/elasticsearch/log4j2.properties' + 'etc/elasticsearch/jvm.options' + 'etc/default/elasticsearch') + +prepare() { + cd "$srcdir"/$pkgname-$pkgver + + sed -r 's;source .*/elasticsearch-env;source /usr/share/elasticsearch/elasticsearch-env;' \ + -i bin/elasticsearch{,-keystore,-plugin,-translog} +} + +package() { + cd "$pkgdir" + install -dm750 etc/elasticsearch/scripts + install -dm755 usr/share/elasticsearch + install -dm755 var/lib/elasticsearch + install -dm755 var/log/elasticsearch + + install -Dm644 "$srcdir"/elasticsearch-env usr/share/elasticsearch/elasticsearch-env + install -Dm644 "$srcdir"/elasticsearch.service usr/lib/systemd/system/elasticsearch.service + install -Dm644 "$srcdir"/elasticsearch@.service usr/lib/systemd/system/elasticsearch@.service + install -Dm644 "$srcdir"/elasticsearch-user.conf usr/lib/sysusers.d/elasticsearch.conf + install -Dm644 "$srcdir"/elasticsearch-tmpfile.conf usr/lib/tmpfiles.d/elasticsearch.conf + install -Dm644 "$srcdir"/elasticsearch-sysctl.conf usr/lib/sysctl.d/elasticsearch.conf + install -Dm644 "$srcdir"/elasticsearch.default etc/default/elasticsearch + + cd "$srcdir"/$pkgname-$pkgver + cp -R lib modules plugins "$pkgdir"/usr/share/elasticsearch/ + + cd config + for conf in *; do + install -Dm644 "$conf" "$pkgdir/etc/elasticsearch/$conf" + done + cd .. + + for script in elasticsearch{,-keystore,-plugin,-translog}; do + install -Dm755 bin/$script "$pkgdir"/usr/bin/$script + done + + ln -s ../../bin "$pkgdir"/usr/share/elasticsearch/bin + ln -s ../../../var/log/elasticsearch "$pkgdir"/usr/share/elasticsearch/logs + ln -s ../../../var/lib/elasticsearch "$pkgdir"/usr/share/elasticsearch/data +} Deleted: elasticsearch-env =================================================================== --- elasticsearch-env 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch-env 2018-02-07 14:07:16 UTC (rev 289994) @@ -1,45 +0,0 @@ -#!/bin/bash - -set -e -o pipefail - -ES_HOME=/usr/share/elasticsearch - -# now set the classpath -ES_CLASSPATH="$ES_HOME/lib/*" - -# now set the path to java -if [ -x "$JAVA_HOME/bin/java" ]; then - JAVA="$JAVA_HOME/bin/java" -else - set +e - JAVA=`which java` - set -e -fi - -if [ ! -x "$JAVA" ]; then - echo "could not find java; set JAVA_HOME or ensure java is in PATH" - exit 1 -fi - -# do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default) -if [ ! -z "$JAVA_TOOL_OPTIONS" ]; then - echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS" - unset JAVA_TOOL_OPTIONS -fi - -# JAVA_OPTS is not a built-in JVM mechanism but some people think it is so we -# warn them that we are not observing the value of $JAVA_OPTS -if [ ! -z "$JAVA_OPTS" ]; then - echo -n "warning: ignoring JAVA_OPTS=$JAVA_OPTS; " - echo "pass JVM parameters via ES_JAVA_OPTS" -fi - -# check the Java version -"$JAVA" -cp "$ES_CLASSPATH" org.elasticsearch.tools.JavaVersionChecker - -if [ -z "$ES_PATH_CONF" ]; then ES_PATH_CONF=/etc/elasticsearch; fi - -if [ -z "$ES_PATH_CONF" ]; then - echo "ES_PATH_CONF must be set to the configuration path" - exit 1 -fi Copied: elasticsearch/repos/community-any/elasticsearch-env (from rev 289993, elasticsearch/trunk/elasticsearch-env) =================================================================== --- elasticsearch-env (rev 0) +++ elasticsearch-env 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1,47 @@ +#!/bin/bash + +set -e -o pipefail + +ES_HOME=/usr/share/elasticsearch + +# now set the classpath +ES_CLASSPATH="$ES_HOME/lib/*" + +# now set the path to java +if [ -x "$JAVA_HOME/bin/java" ]; then + JAVA="$JAVA_HOME/bin/java" +else + set +e + JAVA=`which java` + set -e +fi + +if [ ! -x "$JAVA" ]; then + echo "could not find java; set JAVA_HOME or ensure java is in PATH" + exit 1 +fi + +# do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default) +if [ ! -z "$JAVA_TOOL_OPTIONS" ]; then + echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS" + unset JAVA_TOOL_OPTIONS +fi + +# JAVA_OPTS is not a built-in JVM mechanism but some people think it is so we +# warn them that we are not observing the value of $JAVA_OPTS +if [ ! -z "$JAVA_OPTS" ]; then + echo -n "warning: ignoring JAVA_OPTS=$JAVA_OPTS; " + echo "pass JVM parameters via ES_JAVA_OPTS" +fi + +# check the Java version +"$JAVA" -cp "$ES_CLASSPATH" org.elasticsearch.tools.launchers.JavaVersionChecker + +export HOSTNAME=$HOSTNAME + +if [ -z "$ES_PATH_CONF" ]; then ES_PATH_CONF=/etc/elasticsearch; fi + +if [ -z "$ES_PATH_CONF" ]; then + echo "ES_PATH_CONF must be set to the configuration path" + exit 1 +fi Deleted: elasticsearch-sysctl.conf =================================================================== --- elasticsearch-sysctl.conf 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch-sysctl.conf 2018-02-07 14:07:16 UTC (rev 289994) @@ -1 +0,0 @@ -vm.max_map_count=262144 \ No newline at end of file Copied: elasticsearch/repos/community-any/elasticsearch-sysctl.conf (from rev 289993, elasticsearch/trunk/elasticsearch-sysctl.conf) =================================================================== --- elasticsearch-sysctl.conf (rev 0) +++ elasticsearch-sysctl.conf 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1 @@ +vm.max_map_count=262144 \ No newline at end of file Deleted: elasticsearch-tmpfile.conf =================================================================== --- elasticsearch-tmpfile.conf 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch-tmpfile.conf 2018-02-07 14:07:16 UTC (rev 289994) @@ -1,6 +0,0 @@ -d /var/log/elasticsearch 0755 elasticsearch elasticsearch - -d /var/lib/elasticsearch 0755 elasticsearch elasticsearch - -d /usr/share/elasticsearch/plugins 0755 elasticsearch elasticsearch - - -d /etc/elasticsearch 0750 - elasticsearch - -d /etc/elasticsearch/scripts 0750 - elasticsearch - Copied: elasticsearch/repos/community-any/elasticsearch-tmpfile.conf (from rev 289993, elasticsearch/trunk/elasticsearch-tmpfile.conf) =================================================================== --- elasticsearch-tmpfile.conf (rev 0) +++ elasticsearch-tmpfile.conf 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1,6 @@ +d /var/log/elasticsearch 0755 elasticsearch elasticsearch - +d /var/lib/elasticsearch 0755 elasticsearch elasticsearch - +d /usr/share/elasticsearch/plugins 0755 elasticsearch elasticsearch - + +d /etc/elasticsearch 0750 - elasticsearch - +d /etc/elasticsearch/scripts 0750 - elasticsearch - Deleted: elasticsearch-user.conf =================================================================== --- elasticsearch-user.conf 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch-user.conf 2018-02-07 14:07:16 UTC (rev 289994) @@ -1 +0,0 @@ -u elasticsearch - "Elasticsearch user" Copied: elasticsearch/repos/community-any/elasticsearch-user.conf (from rev 289993, elasticsearch/trunk/elasticsearch-user.conf) =================================================================== --- elasticsearch-user.conf (rev 0) +++ elasticsearch-user.conf 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1 @@ +u elasticsearch - "Elasticsearch user" Deleted: elasticsearch.default =================================================================== --- elasticsearch.default 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch.default 2018-02-07 14:07:16 UTC (rev 289994) @@ -1,13 +0,0 @@ -JAVA_HOME=/usr/lib/jvm/default-runtime - -# Heap Size (defaults to 256m min, 1g max) -#ES_HEAP_SIZE=1g - -# Heap new generation -#ES_HEAP_NEWSIZE= - -# max direct memory -#ES_DIRECT_SIZE= - -# Additional Java OPTS -#ES_JAVA_OPTS= Copied: elasticsearch/repos/community-any/elasticsearch.default (from rev 289993, elasticsearch/trunk/elasticsearch.default) =================================================================== --- elasticsearch.default (rev 0) +++ elasticsearch.default 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1,13 @@ +JAVA_HOME=/usr/lib/jvm/default-runtime + +# Heap Size (defaults to 256m min, 1g max) +#ES_HEAP_SIZE=1g + +# Heap new generation +#ES_HEAP_NEWSIZE= + +# max direct memory +#ES_DIRECT_SIZE= + +# Additional Java OPTS +#ES_JAVA_OPTS= Deleted: elasticsearch.service =================================================================== --- elasticsearch.service 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch.service 2018-02-07 14:07:16 UTC (rev 289994) @@ -1,33 +0,0 @@ -[Unit] -Description=Elasticsearch -Documentation=http://www.elastic.co -Wants=network.target -After=network.target - -[Service] -Type=forking -RuntimeDirectory=elasticsearch -PIDFile=/run/elasticsearch/elasticsearch.pid - -Environment=JAVA_HOME=/usr/lib/jvm/default-runtime -EnvironmentFile=-/etc/default/elasticsearch -Environment=ES_PATH_CONF=/etc/elasticsearch - -WorkingDirectory=/usr/share/elasticsearch - -User=elasticsearch -Group=elasticsearch - -ExecStart=/usr/bin/elasticsearch -d \ - -p /run/elasticsearch/elasticsearch.pid - -LimitNOFILE=65536 -LimitMEMLOCK=infinity - -Restart=on-failure -SendSIGKILL=no -TimeoutStopSec=0 -SuccessExitStatus=143 - -[Install] -WantedBy=multi-user.target Copied: elasticsearch/repos/community-any/elasticsearch.service (from rev 289993, elasticsearch/trunk/elasticsearch.service) =================================================================== --- elasticsearch.service (rev 0) +++ elasticsearch.service 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1,38 @@ +[Unit] +Description=Elasticsearch +Documentation=http://www.elastic.co +Wants=network.target +After=network.target + +[Service] +Type=forking +RuntimeDirectory=elasticsearch +PIDFile=/run/elasticsearch/elasticsearch.pid + +Environment=JAVA_HOME=/usr/lib/jvm/default-runtime +EnvironmentFile=-/etc/default/elasticsearch +Environment=ES_PATH_CONF=/etc/elasticsearch +Environment=ES_TMPDIR=/tmp + +PrivateTmp=true +WorkingDirectory=/usr/share/elasticsearch + +User=elasticsearch +Group=elasticsearch + +ExecStart=/usr/bin/elasticsearch -d \ + -p /run/elasticsearch/elasticsearch.pid + +LimitNOFILE=65536 +LimitNPROC=4096 +LimitAS=infinity +LimitFSIZE=infinity + +Restart=on-failure +KillMode=process +SendSIGKILL=no +TimeoutStopSec=0 +SuccessExitStatus=143 + +[Install] +WantedBy=multi-user.target Deleted: elasticsearch@.service =================================================================== --- elasticsearch@.service 2018-02-07 14:06:54 UTC (rev 289993) +++ elasticsearch@.service 2018-02-07 14:07:16 UTC (rev 289994) @@ -1,33 +0,0 @@ -[Unit] -Description=Elasticsearch -Documentation=http://www.elastic.co -Wants=network.target -After=network.target - -[Service] -Type=forking -RuntimeDirectory=elasticsearch -PIDFile=/run/elasticsearch/%I.pid - -Environment=JAVA_HOME=/usr/lib/jvm/default-runtime -EnvironmentFile=-/etc/default/elasticsearch -Environment=ES_PATH_CONF=/etc/elasticsearch/%I - -WorkingDirectory=/usr/share/elasticsearch - -User=elasticsearch -Group=elasticsearch - -ExecStart=/usr/bin/elasticsearch -d \ - -p /run/elasticsearch/%I.pid - -LimitNOFILE=65536 -LimitMEMLOCK=infinity - -Restart=on-failure -SendSIGKILL=no -TimeoutStopSec=0 -SuccessExitStatus=143 - -[Install] -WantedBy=multi-user.target Copied: elasticsearch/repos/community-any/elasticsearch@.service (from rev 289993, elasticsearch/trunk/elasticsearch@.service) =================================================================== --- elasticsearch@.service (rev 0) +++ elasticsearch@.service 2018-02-07 14:07:16 UTC (rev 289994) @@ -0,0 +1,38 @@ +[Unit] +Description=Elasticsearch +Documentation=http://www.elastic.co +Wants=network.target +After=network.target + +[Service] +Type=forking +RuntimeDirectory=elasticsearch +PIDFile=/run/elasticsearch/%I.pid + +Environment=JAVA_HOME=/usr/lib/jvm/default-runtime +EnvironmentFile=-/etc/default/elasticsearch +Environment=ES_PATH_CONF=/etc/elasticsearch/%I +Environment=ES_TMPDIR=/tmp + +PrivateTmp=true +WorkingDirectory=/usr/share/elasticsearch + +User=elasticsearch +Group=elasticsearch + +ExecStart=/usr/bin/elasticsearch -d \ + -p /run/elasticsearch/%I.pid + +LimitNOFILE=65536 +LimitNPROC=4096 +LimitAS=infinity +LimitFSIZE=infinity + +Restart=on-failure +KillMode=process +SendSIGKILL=no +TimeoutStopSec=0 +SuccessExitStatus=143 + +[Install] +WantedBy=multi-user.target