diff options
| author | Jakub Jirutka <jakub@jirutka.cz> | 2021-01-19 16:45:03 +0100 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2021-01-19 16:45:03 +0100 |
| commit | 1dd3c3703cd6f898ee564853814a7c1fd9d22458 (patch) | |
| tree | 93a50f99b9a5ccd5664c53fc39ab28eab3761981 | |
| parent | 0bb6e1e51413b6e390e0fe2471e60057346ce519 (diff) | |
| download | aports-1dd3c3703cd6f898ee564853814a7c1fd9d22458.tar.gz aports-1dd3c3703cd6f898ee564853814a7c1fd9d22458.tar.bz2 aports-1dd3c3703cd6f898ee564853814a7c1fd9d22458.tar.xz | |
testing/elasticsearch: remove due to license changes
Elastic has changed their license, and no longer meets the requirements
for inclusion in aports.
Resolves #12331
| -rw-r--r-- | testing/elasticsearch/APKBUILD | 124 | ||||
| -rw-r--r-- | testing/elasticsearch/README.alpine | 20 | ||||
| -rw-r--r-- | testing/elasticsearch/busybox-mktemp.patch | 13 | ||||
| -rw-r--r-- | testing/elasticsearch/default-config.patch | 16 | ||||
| -rw-r--r-- | testing/elasticsearch/elasticsearch.confd | 62 | ||||
| -rw-r--r-- | testing/elasticsearch/elasticsearch.initd | 96 | ||||
| -rw-r--r-- | testing/elasticsearch/elasticsearch.logrotated | 5 | ||||
| -rw-r--r-- | testing/elasticsearch/elasticsearch.post-upgrade | 11 | ||||
| -rw-r--r-- | testing/elasticsearch/elasticsearch.pre-install | 7 |
9 files changed, 0 insertions, 354 deletions
diff --git a/testing/elasticsearch/APKBUILD b/testing/elasticsearch/APKBUILD deleted file mode 100644 index 19e45f21b4..0000000000 --- a/testing/elasticsearch/APKBUILD +++ /dev/null @@ -1,124 +0,0 @@ -# Contributor: Jakub Jirutka <jakub@jirutka.cz> -# Maintainer: Jakub Jirutka <jakub@jirutka.cz> -pkgname=elasticsearch -pkgver=6.4.3 -pkgrel=0 -pkgdesc="Open Source, Distributed, RESTful Search Engine" -url="https://www.elastic.co/products/elasticsearch" -arch="aarch64 x86 x86_64 ppc64le" -license="Apache-2.0" -depends="java-jna-native>=4.1 openjdk8-jre bash" -makedepends="" -install="$pkgname.pre-install $pkgname.post-upgrade" -subpackages="$pkgname-doc $pkgname-x-pack:_x_pack" -options="!check" # no test suite -pkgusers="elastico" -pkggroups="elastico" -source="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$pkgver.tar.gz - default-config.patch - $pkgname.initd - $pkgname.confd - $pkgname.logrotated - README.alpine - busybox-mktemp.patch - " -builddir="$srcdir/$pkgname-$pkgver" - -_default_module=transport-netty4 -_modules=" - aggs-matrix-stats - analysis-common - ingest-common - lang-expression - lang-mustache - lang-painless - mapper-extras - parent-join - percolator - rank-eval - reindex - repository-url - tribe - " - -for _mod in $_modules; do - subpackages="$subpackages $pkgname-$_mod:_${_mod//-/_}" - eval "_${_mod//-/_}() { _builtin_module $_mod; }" -done - -_basedir="/usr/share/java/$pkgname" - -package() { - local destdir="$pkgdir/$_basedir" - local confdir="$pkgdir/etc/$pkgname" - local docdir="$pkgdir/usr/share/doc/elasticsearch" - local heapsize="256m" - - cd "$builddir" - install -dm755 "$destdir"/lib "$destdir"/modules "$destdir"/bin - cp -R lib/* "$destdir"/lib - - install -dm755 "$docdir" - install -dm755 -o elastico -g elastico "$confdir" - install -m644 -t "$confdir" config/* - - # remove windows files - find bin -type f -name *.bat -exec rm -f {} \; - find bin -type f -name *.exe -exec rm -f {} \; - - # ES bin script parses the new jvm.options file - cp -R bin/* "$destdir"/bin - - # ES does not run without a transport module - install -dm755 "$destdir/modules/$_default_module" - install -m644 -t "$destdir/modules/$_default_module" modules/"$_default_module"/* - - # reduce heap sizes - sed -i \ - -e "s|^-Xms.*|-Xms$heapsize|" \ - -e "s|^-Xmx.*|-Xmx$heapsize|" \ - $confdir/jvm.options - - install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname - - install -m644 -D "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname - - install -m644 -D "$srcdir"/$pkgname.logrotated \ - "$pkgdir"/etc/logrotate.d/$pkgname - - install -m644 -D "$srcdir"/README.alpine \ - "$docdir" - - # Enforce plugins directory relocation - # Passing the "path.plugins" or "es.default.path.plugins" arguments - # at runtime does not seem to work in v6.4, - # it generates an exception if "$destdir"/plugins does not exist. - # The plugins directory will be shared among all ES instances. - ln -s /var/lib/elasticsearch/_default/plugins "$destdir"/plugins -} - -_builtin_module() { - local name="$1" - local destdir="$subpkgdir/$_basedir/modules/$name" - - install -dm755 "$destdir" - install -m644 -t "$destdir" "$builddir"/modules/$name/* -} - -_x_pack() { - install -dm755 "$subpkgdir"/$_basedir/modules - mv "$builddir"/modules/x-pack* "$subpkgdir"/$_basedir/modules - - # remove module compiled against GLIBC - rm -rf "$subpkgdir"/$_basedir/modules/x-pack-ml -} - -sha512sums="2f48720fd1644b1d0f103ca93bd19632c2a12bd3c94434ddf58bc692cb0b23631222f8d23cc0d0e85e271e11099fe0fc8aedf402906b76845ad680eb592f8987 elasticsearch-6.4.3.tar.gz -dffe445d62e45bcec5ccffc8e140e19ac35613c008a956481521d0b6b74a8899f5a8852c6b45c58fa1c6d8f80466491d9a7b8bdea40c2a2614ba8b46889fd1ac default-config.patch -24d17bdfad1d4e53a3568c77e14a712ab0cd17144eb95b2bdf659466dbe5cf48d1ac48285c644c0bf1dc7f309012ccb99956fcd5134e6ac85651c94bee8b5add elasticsearch.initd -2ab1baf1b5c8782f3f371ba221aadd3e841abc62175f0b1ddcfc68d711e2370465124e076f8cc2e549c25a1da9db8c90172b2f410bd6bbe4153f0e831620b6ba elasticsearch.confd -450879a8ab49c4debac3f8ed484918d48428cabf300b8196db785930a9bc56ce8a153b8d4c91655cfbe9ff50bb978b3c0f87eef99ed36213463f206b68d06590 elasticsearch.logrotated -6de81485cdc059afef58382862e4155482463fde0b604aaa8dbe904c778b841467c4a383a5e54acd09e3436f1fb7be9923e001fb77bd3d7894e113a5e0f4036b README.alpine -1f9d13bbc42c04c523ef4e9ce734f919ec3d79748d78f288ed3dd725cf7c74e83d66d8b48fbc782b27b1a760096a647cb33773578071710542b19fda18ea0b84 busybox-mktemp.patch" diff --git a/testing/elasticsearch/README.alpine b/testing/elasticsearch/README.alpine deleted file mode 100644 index ba3da2f8d7..0000000000 --- a/testing/elasticsearch/README.alpine +++ /dev/null @@ -1,20 +0,0 @@ -### Alpine Linux README for elasticsearch 5.x ### -------------------------------------------------- - -For upgrading ES 2.x => ES 5.x see: - -https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html - ------------------------------------------------------------------------------------- - -The initd has changed: please use the new version - ------------------------------------------------------------------------------------- - -Default Java options are now set via: - -ES_CONF_DIR/jvm.options - -Additional java options can also still be set in /etc/conf.d/elasticsearch - ------------------------------------------------------------------------------------- diff --git a/testing/elasticsearch/busybox-mktemp.patch b/testing/elasticsearch/busybox-mktemp.patch deleted file mode 100644 index 1109c28350..0000000000 --- a/testing/elasticsearch/busybox-mktemp.patch +++ /dev/null @@ -1,13 +0,0 @@ -The script correctly detect that is not from coreutils, -and fallback using another syntax which doesn't work -with BusyBox. ---- a/bin/elasticsearch-env -+++ b/bin/elasticsearch-env -@@ -88,6 +88,6 @@ - if [ $mktemp_coreutils -eq 0 ]; then - ES_TMPDIR=`mktemp -d --tmpdir "elasticsearch.XXXXXXXX"` - else -- ES_TMPDIR=`mktemp -d -t elasticsearch` -+ ES_TMPDIR=`mktemp -d -t elasticsearch.XXXXXXXX` - fi - fi diff --git a/testing/elasticsearch/default-config.patch b/testing/elasticsearch/default-config.patch deleted file mode 100644 index 0568a4f226..0000000000 --- a/testing/elasticsearch/default-config.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- a/config/elasticsearch.yml -+++ b/config/elasticsearch.yml -@@ -52,7 +52,12 @@ - # - # Set the bind address to a specific IP (IPv4 or IPv6): - # --#network.host: 192.168.0.1 -+#network.host: _site_ -+# -+# The host address to bind the transport service to and to publish for -+# nodes in the cluster to connect to. -+# -+#transport.host: localhost - # - # Set a custom port for HTTP: - # diff --git a/testing/elasticsearch/elasticsearch.confd b/testing/elasticsearch/elasticsearch.confd deleted file mode 100644 index b07e6232ef..0000000000 --- a/testing/elasticsearch/elasticsearch.confd +++ /dev/null @@ -1,62 +0,0 @@ -# Notes for running multiple instances: -# -# If you want to run multiple instances on the same system, then simply create -# symlink for the runscript and copy this config for each instance as follows: -# -# ln -s /etc/init.d/elasticsearch /etc/init.d/elasticsearch.INSTANCE_NAME -# cp /etc/conf.d/elasticsearch /etc/conf.d/elasticsearch.INSTANCE_NAME -# -# and also copy configuration files: -# -# mkdir /etc/elasticsearch/INSTANCE_NAME -# cp /etc/elasticsearch/*.yml /etc/elasticsearch/INSTANCE_NAME/ -# -# Default INSTANCE_NAME is _default; this is used when running -# /etc/init.d/elasticsearch directly. -# -# Placeholder [INSTANCE_NAME] means that it's omitted for _default (for -# user convenient when running just single instance). -# -# Java options are by default set in the environment variable ES_JVM_OPTIONS: -# -# ES_CONF_DIR/jvm.options -# - -# User to run this ElasticSearch instance. -#user="elastico" - -# Group to run this ElasticSearch instance. Defaults to primary group of $user. -#group= - -# Path of the config directory. -#conf_dir="/etc/elasticsearch/[INSTANCE_NAME]" - -# Path of the instance home (base) directory. -#home_dir="/var/lib/elasticsearch/<INSTANCE_NAME>" - -# Default path of the directory where to store index data. -# This may be overriden in $conf_dir/elasticsearch.yml. -#default_data_dir="$home_dir/data" - -# Default path of the directory where plugins are installed. -# This may be overriden in $conf_dir/elasticsearch.yml. -#default_plugins_dir="$home_dir/plugins" - -# Default path of the directory where to store log files. -# This may be overriden in $conf_dir/elasticsearch.yml. -#default_logs_dir="/var/log/elasticsearch/[INSTANCE_NAME]" - -# Should runscript create $default_logs_dir? -#create_logs_dir="yes" - -# The maximum number of filedescriptors to be allowed. -max_fd="65536" - -# Additional options to pass to the JVM. -#java_opts="" - -# The maximum mapped memory areas [vm.max_map_count] -max_map_count="262144" - -# Additional options to pass to the Elasticsearch. -#elastic_opts= diff --git a/testing/elasticsearch/elasticsearch.initd b/testing/elasticsearch/elasticsearch.initd deleted file mode 100644 index 432847f2b9..0000000000 --- a/testing/elasticsearch/elasticsearch.initd +++ /dev/null @@ -1,96 +0,0 @@ -#!/sbin/openrc-run -supervisor=supervise-daemon - -description="A Distributed RESTful Search Engine." - -instance_name="${RC_SVCNAME#elasticsearch.}" -instance_name="${instance_name/elasticsearch/_default}" - -name="Elasticsearch" -[ "$instance_name" != "_default" ] && name="$name ($instance_name)" - -: ${user:="elastico"} -: ${group:="$(id -gn $user)"} - -: ${conf_dir:="/etc/elasticsearch/${instance_name#_default}"} -: ${home_dir:="/var/lib/elasticsearch/$instance_name"} -: ${default_data_dir:="$home_dir/data"} -: ${default_plugins_dir:="$home_dir/plugins"} -: ${default_logs_dir:="/var/log/elasticsearch/${instance_name#_default}"} -: ${default_script_dir:="$conf_dir/scripts"} -: ${default_work_dir:="/var/tmp/elasticsearch/$instance_name"} -: ${create_logs_dir:="yes"} -: ${error_log:="$default_logs_dir/error.log"} - -elastic_opts=" - -Epath.data=$default_data_dir - -Epath.logs=$default_logs_dir - $elastic_opts - " - -java_opts=" - -Des.path.home='$home_dir' - -Des.default.path.plugins='$default_plugins_dir' - -Des.default.path.work='$default_work_dir' - -Des.default.path.script='$default_script_dir' - $java_opts - " - -# env variable for: -XX:MaxDirectMemorySize -# export ES_DIRECT_SIZE= -export ES_JAVA_OPTS="$java_opts" -export ES_JVM_OPTIONS="$conf_dir/jvm.options" -export ES_PATH_CONF="$conf_dir" - -command="/usr/share/java/elasticsearch/bin/elasticsearch" -command_args="$elastic_opts" -command_user="$user:$group" -command_background="yes" -output_log="/dev/null" -pidfile="/run/$RC_SVCNAME.sd.pid" - -depends() { - use net - after firewall -} - -in_contr() { - grep "container=" /proc/1/environ -} - -start_pre() { - local dir - - # Note: checkpath doesn't create intermediate directories. - for dir in "$home_dir" "$default_data_dir" "$default_work_dir" "$default_plugins_dir" "$default_script_dir"; do - mkdir -p "$(dirname "$dir")" - done - - checkpath -d -o $user:$group -m755 "$home_dir" - checkpath -d -o $user:$group -m700 "$(dirname "$home_dir")" - checkpath -d -o $user:$group -m700 "$default_data_dir" - checkpath -d -o $user:$group -m700 "$default_work_dir" - checkpath -d -o $user:$group -m700 "$default_plugins_dir" - checkpath -d "$default_script_dir" - - if yesno "$create_logs_dir"; then - mkdir -p "$default_logs_dir" - checkpath -d -o $user:$group -m755 "$default_logs_dir" - fi - - if [ -n "$max_fd" ]; then - if [ -z "$(in_contr)" ]; then - ulimit -n "$max_fd" && einfo "Max open filedescriptors: $max_fd" - else - einfo "Run 'ulimit -n $max_fd' on the container host" - fi - fi - - if [ -n "$max_map_count" ]; then - if [ -z "$(in_contr)" ]; then - sysctl -q -w vm.max_map_count="$max_map_count" && einfo "vm.max_map_count: $max_map_count" - else - einfo "Run 'sysctl -w vm.max_map_count=$max_map_count' on the container host" - fi - fi -} diff --git a/testing/elasticsearch/elasticsearch.logrotated b/testing/elasticsearch/elasticsearch.logrotated deleted file mode 100644 index 39eb6c15af..0000000000 --- a/testing/elasticsearch/elasticsearch.logrotated +++ /dev/null @@ -1,5 +0,0 @@ -/var/log/elasticsearch/*.log { - compress - copytruncate - missingok -} diff --git a/testing/elasticsearch/elasticsearch.post-upgrade b/testing/elasticsearch/elasticsearch.post-upgrade deleted file mode 100644 index af936afd41..0000000000 --- a/testing/elasticsearch/elasticsearch.post-upgrade +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -ver_new="$1" -ver_old="$2" - -if [ "$(apk version -t "$ver_old" "6.4.1-r1")" = "<" ]; then - chown elastico:elastico /var/log/elasticsearch/error.log 2>/dev/null - chown elastico:elastico /var/log/elasticsearch/*/error.log 2>/dev/null -fi - -exit 0 diff --git a/testing/elasticsearch/elasticsearch.pre-install b/testing/elasticsearch/elasticsearch.pre-install deleted file mode 100644 index fe4845bec9..0000000000 --- a/testing/elasticsearch/elasticsearch.pre-install +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -addgroup -S elastico 2>/dev/null -adduser -SDH -h /var/lib/elasticsearch -s /sbin/nologin -G elastico \ - -g "added by apk for elasticsearch" elastico 2>/dev/null - -exit 0 |
