1 |
commit: 1f4dbeda156c024b8c25d19f6ab5691f740f3695 |
2 |
Author: Tomas Mozes <tmozes <AT> sygic <DOT> com> |
3 |
AuthorDate: Fri Jul 13 15:44:52 2018 +0000 |
4 |
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 16 13:44:49 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f4dbeda |
7 |
|
8 |
app-misc/elasticsearch: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.42, Repoman-2.3.9 |
11 |
|
12 |
app-misc/elasticsearch/elasticsearch-6.3.1.ebuild | 72 ----------------------- |
13 |
1 file changed, 72 deletions(-) |
14 |
|
15 |
diff --git a/app-misc/elasticsearch/elasticsearch-6.3.1.ebuild b/app-misc/elasticsearch/elasticsearch-6.3.1.ebuild |
16 |
deleted file mode 100644 |
17 |
index f3e63754b4a..00000000000 |
18 |
--- a/app-misc/elasticsearch/elasticsearch-6.3.1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,72 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-inherit systemd user |
27 |
- |
28 |
-DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" |
29 |
-HOMEPAGE="https://www.elastic.co/products/elasticsearch" |
30 |
-SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz" |
31 |
-LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain" |
32 |
-SLOT="0" |
33 |
-KEYWORDS="~amd64" |
34 |
- |
35 |
-RDEPEND="virtual/jre:1.8" |
36 |
- |
37 |
-pkg_setup() { |
38 |
- enewgroup ${PN} |
39 |
- enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN} |
40 |
-} |
41 |
- |
42 |
-src_prepare() { |
43 |
- default |
44 |
- |
45 |
- rm -v bin/*.{bat,exe} LICENSE.txt || die |
46 |
-} |
47 |
- |
48 |
-src_install() { |
49 |
- keepdir /etc/${PN} |
50 |
- keepdir /etc/${PN}/scripts |
51 |
- |
52 |
- insinto /etc/${PN} |
53 |
- doins -r config/. |
54 |
- rm -rv config || die |
55 |
- |
56 |
- fowners root:${PN} /etc/${PN} |
57 |
- fperms 2750 /etc/${PN} |
58 |
- |
59 |
- insinto /usr/share/${PN} |
60 |
- doins -r . |
61 |
- |
62 |
- exeinto /usr/share/${PN}/bin |
63 |
- doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" |
64 |
- |
65 |
- chmod +x "${ED}"/usr/share/${PN}/bin/* || die |
66 |
- |
67 |
- keepdir /var/{lib,log}/${PN} |
68 |
- fowners ${PN}:${PN} /var/{lib,log}/${PN} |
69 |
- fperms 0750 /var/{lib,log}/${PN} |
70 |
- dodir /usr/share/${PN}/plugins |
71 |
- |
72 |
- insinto /etc/sysctl.d |
73 |
- newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf |
74 |
- |
75 |
- newconfd "${FILESDIR}/${PN}.conf.3" ${PN} |
76 |
- newinitd "${FILESDIR}/${PN}.init.4" ${PN} |
77 |
- |
78 |
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf |
79 |
- systemd_newunit "${FILESDIR}"/${PN}.service.2 ${PN}.service |
80 |
-} |
81 |
- |
82 |
-pkg_postinst() { |
83 |
- elog |
84 |
- elog "You may create multiple instances of ${PN} by" |
85 |
- elog "symlinking the init script:" |
86 |
- elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" |
87 |
- elog |
88 |
- elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" |
89 |
- elog "from /etc/elasticsearch into the configuration directory of the instance:" |
90 |
- elog "/etc/${PN}/instance" |
91 |
- elog |
92 |
-} |