Date: Wednesday, March 26, 2014 @ 11:59:29
  Author: mtorromeo
Revision: 108293

archrelease: copy trunk to community-i686, community-x86_64

Added:
  elasticsearch/repos/community-i686/PKGBUILD
    (from rev 108292, elasticsearch/trunk/PKGBUILD)
  elasticsearch/repos/community-i686/elasticsearch-sysctl.conf
    (from rev 108292, elasticsearch/trunk/elasticsearch-sysctl.conf)
  elasticsearch/repos/community-i686/elasticsearch-tmpfile.conf
    (from rev 108292, elasticsearch/trunk/elasticsearch-tmpfile.conf)
  elasticsearch/repos/community-i686/elasticsearch.install
    (from rev 108292, elasticsearch/trunk/elasticsearch.install)
  elasticsearch/repos/community-i686/elasticsearch.service
    (from rev 108292, elasticsearch/trunk/elasticsearch.service)
  elasticsearch/repos/community-i686/elasticsearch@.service
    (from rev 108292, elasticsearch/trunk/elasticsearch@.service)
  elasticsearch/repos/community-x86_64/PKGBUILD
    (from rev 108292, elasticsearch/trunk/PKGBUILD)
  elasticsearch/repos/community-x86_64/elasticsearch-sysctl.conf
    (from rev 108292, elasticsearch/trunk/elasticsearch-sysctl.conf)
  elasticsearch/repos/community-x86_64/elasticsearch-tmpfile.conf
    (from rev 108292, elasticsearch/trunk/elasticsearch-tmpfile.conf)
  elasticsearch/repos/community-x86_64/elasticsearch.install
    (from rev 108292, elasticsearch/trunk/elasticsearch.install)
  elasticsearch/repos/community-x86_64/elasticsearch.service
    (from rev 108292, elasticsearch/trunk/elasticsearch.service)
  elasticsearch/repos/community-x86_64/elasticsearch@.service
    (from rev 108292, elasticsearch/trunk/elasticsearch@.service)
Deleted:
  elasticsearch/repos/community-i686/PKGBUILD
  elasticsearch/repos/community-i686/elasticsearch-sysctl.conf
  elasticsearch/repos/community-i686/elasticsearch-tmpfile.conf
  elasticsearch/repos/community-i686/elasticsearch.install
  elasticsearch/repos/community-i686/elasticsearch.service
  elasticsearch/repos/community-i686/elasticsearch@.service
  elasticsearch/repos/community-x86_64/PKGBUILD
  elasticsearch/repos/community-x86_64/elasticsearch-sysctl.conf
  elasticsearch/repos/community-x86_64/elasticsearch-tmpfile.conf
  elasticsearch/repos/community-x86_64/elasticsearch.install
  elasticsearch/repos/community-x86_64/elasticsearch.service
  elasticsearch/repos/community-x86_64/elasticsearch@.service

---------------------------------------------+
 /PKGBUILD                                   |  162 ++++++++++++++++++++++++++
 /elasticsearch-sysctl.conf                  |    2 
 /elasticsearch-tmpfile.conf                 |    2 
 /elasticsearch.install                      |   48 +++++++
 /elasticsearch.service                      |   32 +++++
 /elasticsearch@.service                     |   32 +++++
 community-i686/PKGBUILD                     |   81 -------------
 community-i686/elasticsearch-sysctl.conf    |    1 
 community-i686/elasticsearch-tmpfile.conf   |    1 
 community-i686/elasticsearch.install        |   24 ---
 community-i686/elasticsearch.service        |   16 --
 community-i686/elasticsearch@.service       |   16 --
 community-x86_64/PKGBUILD                   |   81 -------------
 community-x86_64/elasticsearch-sysctl.conf  |    1 
 community-x86_64/elasticsearch-tmpfile.conf |    1 
 community-x86_64/elasticsearch.install      |   24 ---
 community-x86_64/elasticsearch.service      |   16 --
 community-x86_64/elasticsearch@.service     |   16 --
 18 files changed, 278 insertions(+), 278 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD     2014-03-26 10:31:05 UTC (rev 108292)
+++ community-i686/PKGBUILD     2014-03-26 10:59:29 UTC (rev 108293)
@@ -1,81 +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=1.0.1
-pkgrel=1
-pkgdesc="Distributed RESTful search engine built on top of Lucene"
-arch=('i686' 'x86_64')
-url="http://www.elasticsearch.org/";
-license=('APACHE')
-depends=('java-runtime' 'bash')
-install='elasticsearch.install'
-source=(
-  "http://download.elasticsearch.org/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz";
-  elasticsearch.service
-  elasticsearch@.service
-  elasticsearch-tmpfile.conf
-  elasticsearch-sysctl.conf
-)
-
-backup=('etc/elasticsearch/elasticsearch.yml'
-        'etc/elasticsearch/logging.yml')
-
-prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  for script in plugin elasticsearch; do
-    sed 's|^ES_HOME=.*dirname.*|ES_HOME=/usr/share/elasticsearch|' \
-      -i bin/$script
-
-    for java in jre jdk; do
-      sed "/^CDPATH/i [ -f /etc/profile.d/$java.sh ] && . 
/etc/profile.d/$java.sh" \
-        -i bin/$script
-    done
-  done
-
-  sed 's|$ES_HOME/lib|/usr/lib/elasticsearch|g' -i bin/elasticsearch.in.sh 
bin/plugin
-
-  echo -e '\nJAVA_OPTS="$JAVA_OPTS -Des.path.conf=/etc/elasticsearch"' >> 
bin/elasticsearch.in.sh
-
-  sed -e 's/# \(path\.conf: \).*$/\1\/etc\/elasticsearch/' \
-    -e '0,/# \(path\.data: \).*$/s//\1\/var\/lib\/elasticsearch/' \
-    -e 's/# \(path\.work: \).*$/\1\/tmp\/elasticsearch/' \
-    -e 's/# \(path\.logs: \).*$/\1\/var\/log\/elasticsearch/' \
-    -i config/elasticsearch.yml
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  install -dm755 "$pkgdir/etc/elasticsearch"
-  install -dm755 "$pkgdir/var/lib/elasticsearch"
-  install -dm755 "$pkgdir/var/log/elasticsearch"
-
-  if [ $CARCH = 'x86_64' ]; then
-    install -Dm644 lib/sigar/libsigar-amd64-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-amd64-linux.so"
-  else
-    install -Dm644 lib/sigar/libsigar-x86-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-x86-linux.so"
-  fi
-  cp lib/sigar/sigar*.jar "$pkgdir/usr/lib/elasticsearch/sigar/"
-  cp lib/*.jar "$pkgdir/usr/lib/elasticsearch/"
-
-  cp config/* "$pkgdir/etc/elasticsearch/"
-
-  install -Dm755 bin/elasticsearch "$pkgdir/usr/bin/elasticsearch"
-  install -Dm755 bin/plugin "$pkgdir/usr/bin/elasticsearch-plugin"
-  install -Dm644 bin/elasticsearch.in.sh 
"$pkgdir/usr/share/elasticsearch/elasticsearch.in.sh"
-
-  install -Dm644 "$srcdir/elasticsearch.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch.service"
-  install -Dm644 "$srcdir/elasticsearch@.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch@.service"
-
-  install -Dm644 "$srcdir/elasticsearch-tmpfile.conf" 
"$pkgdir/usr/lib/tmpfiles.d/elasticsearch.conf"
-  install -Dm644 "$srcdir/elasticsearch-sysctl.conf" 
"$pkgdir/usr/lib/sysctl.d/elasticsearch.conf"
-}
-
-sha256sums=('6acdf3528b40d8aea93f1b8cfd9e3bdcc2e529f0bd5fe6a82269bec3293d9b5b'
-            'ab13ccda28bf90a10b570e095afc47ddef68da7e45546b2d45e74722c9095f0a'
-            'a04ac09172158611a03dda096b670fe6586ae11b6b3d4de7965ed2b90cb3319f'
-            '48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f'
-            'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c')

Copied: elasticsearch/repos/community-i686/PKGBUILD (from rev 108292, 
elasticsearch/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2014-03-26 10:59:29 UTC (rev 108293)
@@ -0,0 +1,81 @@
+# $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=1.1.0
+pkgrel=1
+pkgdesc="Distributed RESTful search engine built on top of Lucene"
+arch=('i686' 'x86_64')
+url="http://www.elasticsearch.org/";
+license=('APACHE')
+depends=('java-runtime' 'bash')
+install='elasticsearch.install'
+source=(
+  "http://download.elasticsearch.org/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz";
+  elasticsearch.service
+  elasticsearch@.service
+  elasticsearch-tmpfile.conf
+  elasticsearch-sysctl.conf
+)
+
+backup=('etc/elasticsearch/elasticsearch.yml'
+        'etc/elasticsearch/logging.yml')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  for script in plugin elasticsearch; do
+    sed 's|^ES_HOME=.*dirname.*|ES_HOME=/usr/share/elasticsearch|' \
+      -i bin/$script
+
+    for java in jre jdk; do
+      sed "/^CDPATH/i [ -f /etc/profile.d/$java.sh ] && . 
/etc/profile.d/$java.sh" \
+        -i bin/$script
+    done
+  done
+
+  sed 's|$ES_HOME/lib|/usr/lib/elasticsearch|g' -i bin/elasticsearch.in.sh 
bin/plugin
+
+  echo -e '\nJAVA_OPTS="$JAVA_OPTS -Des.path.conf=/etc/elasticsearch"' >> 
bin/elasticsearch.in.sh
+
+  sed -e 's/# \(path\.conf: \).*$/\1\/etc\/elasticsearch/' \
+    -e '0,/# \(path\.data: \).*$/s//\1\/var\/lib\/elasticsearch/' \
+    -e 's/# \(path\.work: \).*$/\1\/tmp\/elasticsearch/' \
+    -e 's/# \(path\.logs: \).*$/\1\/var\/log\/elasticsearch/' \
+    -i config/elasticsearch.yml
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  install -dm755 "$pkgdir/etc/elasticsearch"
+  install -dm755 "$pkgdir/var/lib/elasticsearch"
+  install -dm755 "$pkgdir/var/log/elasticsearch"
+
+  if [ $CARCH = 'x86_64' ]; then
+    install -Dm644 lib/sigar/libsigar-amd64-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-amd64-linux.so"
+  else
+    install -Dm644 lib/sigar/libsigar-x86-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-x86-linux.so"
+  fi
+  cp lib/sigar/sigar*.jar "$pkgdir/usr/lib/elasticsearch/sigar/"
+  cp lib/*.jar "$pkgdir/usr/lib/elasticsearch/"
+
+  cp config/* "$pkgdir/etc/elasticsearch/"
+
+  install -Dm755 bin/elasticsearch "$pkgdir/usr/bin/elasticsearch"
+  install -Dm755 bin/plugin "$pkgdir/usr/bin/elasticsearch-plugin"
+  install -Dm644 bin/elasticsearch.in.sh 
"$pkgdir/usr/share/elasticsearch/elasticsearch.in.sh"
+
+  install -Dm644 "$srcdir/elasticsearch.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch.service"
+  install -Dm644 "$srcdir/elasticsearch@.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch@.service"
+
+  install -Dm644 "$srcdir/elasticsearch-tmpfile.conf" 
"$pkgdir/usr/lib/tmpfiles.d/elasticsearch.conf"
+  install -Dm644 "$srcdir/elasticsearch-sysctl.conf" 
"$pkgdir/usr/lib/sysctl.d/elasticsearch.conf"
+}
+
+sha256sums=('8f409517e027f1497f3690bf4dc9967a75212089792a32994f8ce47fd4a549cc'
+            'ab13ccda28bf90a10b570e095afc47ddef68da7e45546b2d45e74722c9095f0a'
+            'a04ac09172158611a03dda096b670fe6586ae11b6b3d4de7965ed2b90cb3319f'
+            '48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f'
+            'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c')

Deleted: community-i686/elasticsearch-sysctl.conf
===================================================================
--- community-i686/elasticsearch-sysctl.conf    2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-i686/elasticsearch-sysctl.conf    2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1 +0,0 @@
-vm.max_map_count=262144
\ No newline at end of file

Copied: elasticsearch/repos/community-i686/elasticsearch-sysctl.conf (from rev 
108292, elasticsearch/trunk/elasticsearch-sysctl.conf)
===================================================================
--- community-i686/elasticsearch-sysctl.conf                            (rev 0)
+++ community-i686/elasticsearch-sysctl.conf    2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1 @@
+vm.max_map_count=262144
\ No newline at end of file

Deleted: community-i686/elasticsearch-tmpfile.conf
===================================================================
--- community-i686/elasticsearch-tmpfile.conf   2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-i686/elasticsearch-tmpfile.conf   2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1 +0,0 @@
-d /run/elasticsearch 0755 elasticsearch elasticsearch -
\ No newline at end of file

Copied: elasticsearch/repos/community-i686/elasticsearch-tmpfile.conf (from rev 
108292, elasticsearch/trunk/elasticsearch-tmpfile.conf)
===================================================================
--- community-i686/elasticsearch-tmpfile.conf                           (rev 0)
+++ community-i686/elasticsearch-tmpfile.conf   2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1 @@
+d /run/elasticsearch 0755 elasticsearch elasticsearch -
\ No newline at end of file

Deleted: community-i686/elasticsearch.install
===================================================================
--- community-i686/elasticsearch.install        2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-i686/elasticsearch.install        2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1,24 +0,0 @@
-post_install() {
-    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
-    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
-
-    chown -R elasticsearch:elasticsearch /usr/share/elasticsearch
-    chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
-    chown -R elasticsearch:elasticsearch /var/log/elasticsearch
-
-    usr/bin/systemd-tmpfiles --create elasticsearch.conf
-}
-
-post_upgrade(){
-    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
-    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
-}
-
-post_remove() {
-    if getent passwd elasticsearch >/dev/null 2>&1; then
-        userdel elasticsearch
-    fi
-    if getent group elasticsearch >/dev/null 2>&1; then
-        groupdel elasticsearch
-    fi
-}

Copied: elasticsearch/repos/community-i686/elasticsearch.install (from rev 
108292, elasticsearch/trunk/elasticsearch.install)
===================================================================
--- community-i686/elasticsearch.install                                (rev 0)
+++ community-i686/elasticsearch.install        2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1,24 @@
+post_install() {
+    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
+    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
+
+    chown -R elasticsearch:elasticsearch /usr/share/elasticsearch
+    chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
+    chown -R elasticsearch:elasticsearch /var/log/elasticsearch
+
+    usr/bin/systemd-tmpfiles --create elasticsearch.conf
+}
+
+post_upgrade(){
+    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
+    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
+}
+
+post_remove() {
+    if getent passwd elasticsearch >/dev/null 2>&1; then
+        userdel elasticsearch
+    fi
+    if getent group elasticsearch >/dev/null 2>&1; then
+        groupdel elasticsearch
+    fi
+}

Deleted: community-i686/elasticsearch.service
===================================================================
--- community-i686/elasticsearch.service        2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-i686/elasticsearch.service        2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1,16 +0,0 @@
-[Unit]
-Description=ElasticSearch
-Documentation=http://www.elasticsearch.org
-After=network.target
-
-[Service]
-User=elasticsearch
-Type=forking
-PIDFile=/run/elasticsearch/elasticsearch.pid
-ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/elasticsearch.pid
-LimitNOFILE=65535
-TimeoutStopSec=20
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target

Copied: elasticsearch/repos/community-i686/elasticsearch.service (from rev 
108292, elasticsearch/trunk/elasticsearch.service)
===================================================================
--- community-i686/elasticsearch.service                                (rev 0)
+++ community-i686/elasticsearch.service        2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1,16 @@
+[Unit]
+Description=ElasticSearch
+Documentation=http://www.elasticsearch.org
+After=network.target
+
+[Service]
+User=elasticsearch
+Type=forking
+PIDFile=/run/elasticsearch/elasticsearch.pid
+ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/elasticsearch.pid
+LimitNOFILE=65535
+TimeoutStopSec=20
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-i686/elasticsearch@.service
===================================================================
--- community-i686/elasticsearch@.service       2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-i686/elasticsearch@.service       2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1,16 +0,0 @@
-[Unit]
-Description=ElasticSearch
-Documentation=http://www.elasticsearch.org
-After=network.target
-
-[Service]
-User=elasticsearch
-Type=forking
-PIDFile=/run/elasticsearch/%I.pid
-ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/%I.pid 
-Des.config=/etc/elasticsearch/%I.yml
-LimitNOFILE=65535
-TimeoutStopSec=20
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target

Copied: elasticsearch/repos/community-i686/elasticsearch@.service (from rev 
108292, elasticsearch/trunk/elasticsearch@.service)
===================================================================
--- community-i686/elasticsearch@.service                               (rev 0)
+++ community-i686/elasticsearch@.service       2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1,16 @@
+[Unit]
+Description=ElasticSearch
+Documentation=http://www.elasticsearch.org
+After=network.target
+
+[Service]
+User=elasticsearch
+Type=forking
+PIDFile=/run/elasticsearch/%I.pid
+ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/%I.pid 
-Des.config=/etc/elasticsearch/%I.yml
+LimitNOFILE=65535
+TimeoutStopSec=20
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD   2014-03-26 10:31:05 UTC (rev 108292)
+++ community-x86_64/PKGBUILD   2014-03-26 10:59:29 UTC (rev 108293)
@@ -1,81 +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=1.0.1
-pkgrel=1
-pkgdesc="Distributed RESTful search engine built on top of Lucene"
-arch=('i686' 'x86_64')
-url="http://www.elasticsearch.org/";
-license=('APACHE')
-depends=('java-runtime' 'bash')
-install='elasticsearch.install'
-source=(
-  "http://download.elasticsearch.org/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz";
-  elasticsearch.service
-  elasticsearch@.service
-  elasticsearch-tmpfile.conf
-  elasticsearch-sysctl.conf
-)
-
-backup=('etc/elasticsearch/elasticsearch.yml'
-        'etc/elasticsearch/logging.yml')
-
-prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  for script in plugin elasticsearch; do
-    sed 's|^ES_HOME=.*dirname.*|ES_HOME=/usr/share/elasticsearch|' \
-      -i bin/$script
-
-    for java in jre jdk; do
-      sed "/^CDPATH/i [ -f /etc/profile.d/$java.sh ] && . 
/etc/profile.d/$java.sh" \
-        -i bin/$script
-    done
-  done
-
-  sed 's|$ES_HOME/lib|/usr/lib/elasticsearch|g' -i bin/elasticsearch.in.sh 
bin/plugin
-
-  echo -e '\nJAVA_OPTS="$JAVA_OPTS -Des.path.conf=/etc/elasticsearch"' >> 
bin/elasticsearch.in.sh
-
-  sed -e 's/# \(path\.conf: \).*$/\1\/etc\/elasticsearch/' \
-    -e '0,/# \(path\.data: \).*$/s//\1\/var\/lib\/elasticsearch/' \
-    -e 's/# \(path\.work: \).*$/\1\/tmp\/elasticsearch/' \
-    -e 's/# \(path\.logs: \).*$/\1\/var\/log\/elasticsearch/' \
-    -i config/elasticsearch.yml
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  install -dm755 "$pkgdir/etc/elasticsearch"
-  install -dm755 "$pkgdir/var/lib/elasticsearch"
-  install -dm755 "$pkgdir/var/log/elasticsearch"
-
-  if [ $CARCH = 'x86_64' ]; then
-    install -Dm644 lib/sigar/libsigar-amd64-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-amd64-linux.so"
-  else
-    install -Dm644 lib/sigar/libsigar-x86-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-x86-linux.so"
-  fi
-  cp lib/sigar/sigar*.jar "$pkgdir/usr/lib/elasticsearch/sigar/"
-  cp lib/*.jar "$pkgdir/usr/lib/elasticsearch/"
-
-  cp config/* "$pkgdir/etc/elasticsearch/"
-
-  install -Dm755 bin/elasticsearch "$pkgdir/usr/bin/elasticsearch"
-  install -Dm755 bin/plugin "$pkgdir/usr/bin/elasticsearch-plugin"
-  install -Dm644 bin/elasticsearch.in.sh 
"$pkgdir/usr/share/elasticsearch/elasticsearch.in.sh"
-
-  install -Dm644 "$srcdir/elasticsearch.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch.service"
-  install -Dm644 "$srcdir/elasticsearch@.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch@.service"
-
-  install -Dm644 "$srcdir/elasticsearch-tmpfile.conf" 
"$pkgdir/usr/lib/tmpfiles.d/elasticsearch.conf"
-  install -Dm644 "$srcdir/elasticsearch-sysctl.conf" 
"$pkgdir/usr/lib/sysctl.d/elasticsearch.conf"
-}
-
-sha256sums=('6acdf3528b40d8aea93f1b8cfd9e3bdcc2e529f0bd5fe6a82269bec3293d9b5b'
-            'ab13ccda28bf90a10b570e095afc47ddef68da7e45546b2d45e74722c9095f0a'
-            'a04ac09172158611a03dda096b670fe6586ae11b6b3d4de7965ed2b90cb3319f'
-            '48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f'
-            'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c')

Copied: elasticsearch/repos/community-x86_64/PKGBUILD (from rev 108292, 
elasticsearch/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2014-03-26 10:59:29 UTC (rev 108293)
@@ -0,0 +1,81 @@
+# $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=1.1.0
+pkgrel=1
+pkgdesc="Distributed RESTful search engine built on top of Lucene"
+arch=('i686' 'x86_64')
+url="http://www.elasticsearch.org/";
+license=('APACHE')
+depends=('java-runtime' 'bash')
+install='elasticsearch.install'
+source=(
+  "http://download.elasticsearch.org/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz";
+  elasticsearch.service
+  elasticsearch@.service
+  elasticsearch-tmpfile.conf
+  elasticsearch-sysctl.conf
+)
+
+backup=('etc/elasticsearch/elasticsearch.yml'
+        'etc/elasticsearch/logging.yml')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  for script in plugin elasticsearch; do
+    sed 's|^ES_HOME=.*dirname.*|ES_HOME=/usr/share/elasticsearch|' \
+      -i bin/$script
+
+    for java in jre jdk; do
+      sed "/^CDPATH/i [ -f /etc/profile.d/$java.sh ] && . 
/etc/profile.d/$java.sh" \
+        -i bin/$script
+    done
+  done
+
+  sed 's|$ES_HOME/lib|/usr/lib/elasticsearch|g' -i bin/elasticsearch.in.sh 
bin/plugin
+
+  echo -e '\nJAVA_OPTS="$JAVA_OPTS -Des.path.conf=/etc/elasticsearch"' >> 
bin/elasticsearch.in.sh
+
+  sed -e 's/# \(path\.conf: \).*$/\1\/etc\/elasticsearch/' \
+    -e '0,/# \(path\.data: \).*$/s//\1\/var\/lib\/elasticsearch/' \
+    -e 's/# \(path\.work: \).*$/\1\/tmp\/elasticsearch/' \
+    -e 's/# \(path\.logs: \).*$/\1\/var\/log\/elasticsearch/' \
+    -i config/elasticsearch.yml
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  install -dm755 "$pkgdir/etc/elasticsearch"
+  install -dm755 "$pkgdir/var/lib/elasticsearch"
+  install -dm755 "$pkgdir/var/log/elasticsearch"
+
+  if [ $CARCH = 'x86_64' ]; then
+    install -Dm644 lib/sigar/libsigar-amd64-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-amd64-linux.so"
+  else
+    install -Dm644 lib/sigar/libsigar-x86-linux.so 
"$pkgdir/usr/lib/elasticsearch/sigar/libsigar-x86-linux.so"
+  fi
+  cp lib/sigar/sigar*.jar "$pkgdir/usr/lib/elasticsearch/sigar/"
+  cp lib/*.jar "$pkgdir/usr/lib/elasticsearch/"
+
+  cp config/* "$pkgdir/etc/elasticsearch/"
+
+  install -Dm755 bin/elasticsearch "$pkgdir/usr/bin/elasticsearch"
+  install -Dm755 bin/plugin "$pkgdir/usr/bin/elasticsearch-plugin"
+  install -Dm644 bin/elasticsearch.in.sh 
"$pkgdir/usr/share/elasticsearch/elasticsearch.in.sh"
+
+  install -Dm644 "$srcdir/elasticsearch.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch.service"
+  install -Dm644 "$srcdir/elasticsearch@.service" 
"$pkgdir/usr/lib/systemd/system/elasticsearch@.service"
+
+  install -Dm644 "$srcdir/elasticsearch-tmpfile.conf" 
"$pkgdir/usr/lib/tmpfiles.d/elasticsearch.conf"
+  install -Dm644 "$srcdir/elasticsearch-sysctl.conf" 
"$pkgdir/usr/lib/sysctl.d/elasticsearch.conf"
+}
+
+sha256sums=('8f409517e027f1497f3690bf4dc9967a75212089792a32994f8ce47fd4a549cc'
+            'ab13ccda28bf90a10b570e095afc47ddef68da7e45546b2d45e74722c9095f0a'
+            'a04ac09172158611a03dda096b670fe6586ae11b6b3d4de7965ed2b90cb3319f'
+            '48b5a876e14819270c85f8ca626a011e01d10a2728758ced9a4d5bcf5c1fd23f'
+            'b3feb1e9c7e7ce6b33cea6c727728ed700332aae942ca475c3bcc1d56b9f113c')

Deleted: community-x86_64/elasticsearch-sysctl.conf
===================================================================
--- community-x86_64/elasticsearch-sysctl.conf  2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-x86_64/elasticsearch-sysctl.conf  2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1 +0,0 @@
-vm.max_map_count=262144
\ No newline at end of file

Copied: elasticsearch/repos/community-x86_64/elasticsearch-sysctl.conf (from 
rev 108292, elasticsearch/trunk/elasticsearch-sysctl.conf)
===================================================================
--- community-x86_64/elasticsearch-sysctl.conf                          (rev 0)
+++ community-x86_64/elasticsearch-sysctl.conf  2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1 @@
+vm.max_map_count=262144
\ No newline at end of file

Deleted: community-x86_64/elasticsearch-tmpfile.conf
===================================================================
--- community-x86_64/elasticsearch-tmpfile.conf 2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-x86_64/elasticsearch-tmpfile.conf 2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1 +0,0 @@
-d /run/elasticsearch 0755 elasticsearch elasticsearch -
\ No newline at end of file

Copied: elasticsearch/repos/community-x86_64/elasticsearch-tmpfile.conf (from 
rev 108292, elasticsearch/trunk/elasticsearch-tmpfile.conf)
===================================================================
--- community-x86_64/elasticsearch-tmpfile.conf                         (rev 0)
+++ community-x86_64/elasticsearch-tmpfile.conf 2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1 @@
+d /run/elasticsearch 0755 elasticsearch elasticsearch -
\ No newline at end of file

Deleted: community-x86_64/elasticsearch.install
===================================================================
--- community-x86_64/elasticsearch.install      2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-x86_64/elasticsearch.install      2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1,24 +0,0 @@
-post_install() {
-    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
-    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
-
-    chown -R elasticsearch:elasticsearch /usr/share/elasticsearch
-    chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
-    chown -R elasticsearch:elasticsearch /var/log/elasticsearch
-
-    usr/bin/systemd-tmpfiles --create elasticsearch.conf
-}
-
-post_upgrade(){
-    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
-    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
-}
-
-post_remove() {
-    if getent passwd elasticsearch >/dev/null 2>&1; then
-        userdel elasticsearch
-    fi
-    if getent group elasticsearch >/dev/null 2>&1; then
-        groupdel elasticsearch
-    fi
-}

Copied: elasticsearch/repos/community-x86_64/elasticsearch.install (from rev 
108292, elasticsearch/trunk/elasticsearch.install)
===================================================================
--- community-x86_64/elasticsearch.install                              (rev 0)
+++ community-x86_64/elasticsearch.install      2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1,24 @@
+post_install() {
+    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
+    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
+
+    chown -R elasticsearch:elasticsearch /usr/share/elasticsearch
+    chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
+    chown -R elasticsearch:elasticsearch /var/log/elasticsearch
+
+    usr/bin/systemd-tmpfiles --create elasticsearch.conf
+}
+
+post_upgrade(){
+    getent group elasticsearch >/dev/null 2>&1 || groupadd -g 114 
elasticsearch &>/dev/null
+    getent passwd elasticsearch >/dev/null 2>&1 || useradd -u 114 -g 
elasticsearch -d /usr/share/elasticsearch -s /bin/false elasticsearch 
&>/dev/null
+}
+
+post_remove() {
+    if getent passwd elasticsearch >/dev/null 2>&1; then
+        userdel elasticsearch
+    fi
+    if getent group elasticsearch >/dev/null 2>&1; then
+        groupdel elasticsearch
+    fi
+}

Deleted: community-x86_64/elasticsearch.service
===================================================================
--- community-x86_64/elasticsearch.service      2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-x86_64/elasticsearch.service      2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1,16 +0,0 @@
-[Unit]
-Description=ElasticSearch
-Documentation=http://www.elasticsearch.org
-After=network.target
-
-[Service]
-User=elasticsearch
-Type=forking
-PIDFile=/run/elasticsearch/elasticsearch.pid
-ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/elasticsearch.pid
-LimitNOFILE=65535
-TimeoutStopSec=20
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target

Copied: elasticsearch/repos/community-x86_64/elasticsearch.service (from rev 
108292, elasticsearch/trunk/elasticsearch.service)
===================================================================
--- community-x86_64/elasticsearch.service                              (rev 0)
+++ community-x86_64/elasticsearch.service      2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1,16 @@
+[Unit]
+Description=ElasticSearch
+Documentation=http://www.elasticsearch.org
+After=network.target
+
+[Service]
+User=elasticsearch
+Type=forking
+PIDFile=/run/elasticsearch/elasticsearch.pid
+ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/elasticsearch.pid
+LimitNOFILE=65535
+TimeoutStopSec=20
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/elasticsearch@.service
===================================================================
--- community-x86_64/elasticsearch@.service     2014-03-26 10:31:05 UTC (rev 
108292)
+++ community-x86_64/elasticsearch@.service     2014-03-26 10:59:29 UTC (rev 
108293)
@@ -1,16 +0,0 @@
-[Unit]
-Description=ElasticSearch
-Documentation=http://www.elasticsearch.org
-After=network.target
-
-[Service]
-User=elasticsearch
-Type=forking
-PIDFile=/run/elasticsearch/%I.pid
-ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/%I.pid 
-Des.config=/etc/elasticsearch/%I.yml
-LimitNOFILE=65535
-TimeoutStopSec=20
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target

Copied: elasticsearch/repos/community-x86_64/elasticsearch@.service (from rev 
108292, elasticsearch/trunk/elasticsearch@.service)
===================================================================
--- community-x86_64/elasticsearch@.service                             (rev 0)
+++ community-x86_64/elasticsearch@.service     2014-03-26 10:59:29 UTC (rev 
108293)
@@ -0,0 +1,16 @@
+[Unit]
+Description=ElasticSearch
+Documentation=http://www.elasticsearch.org
+After=network.target
+
+[Service]
+User=elasticsearch
+Type=forking
+PIDFile=/run/elasticsearch/%I.pid
+ExecStart=/usr/bin/elasticsearch -d -p /run/elasticsearch/%I.pid 
-Des.config=/etc/elasticsearch/%I.yml
+LimitNOFILE=65535
+TimeoutStopSec=20
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target

Reply via email to