summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2018-03-04 17:03:49 +0000
committerPatrick Lauer <patrick@gentoo.org>2018-03-04 17:12:36 +0000
commit7380f2518ac5738bb070655db4da85b7bcb9511d (patch)
tree62d0c2af9a0e7175fa7d2fbc541e1a26ff91dcf1 /dev-db/aerospike-server-community/aerospike-server-community-3.16.0.6.ebuild
parentapp-misc/pax-utils-1.2.2-r2: alpha stable (diff)
downloadgentoo-7380f2518ac5738bb070655db4da85b7bcb9511d.tar.gz
gentoo-7380f2518ac5738bb070655db4da85b7bcb9511d.tar.bz2
gentoo-7380f2518ac5738bb070655db4da85b7bcb9511d.zip
dev-db/aerospike-server-community: Bump
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-db/aerospike-server-community/aerospike-server-community-3.16.0.6.ebuild')
-rw-r--r--dev-db/aerospike-server-community/aerospike-server-community-3.16.0.6.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-db/aerospike-server-community/aerospike-server-community-3.16.0.6.ebuild b/dev-db/aerospike-server-community/aerospike-server-community-3.16.0.6.ebuild
new file mode 100644
index 000000000000..d69e7847e7e0
--- /dev/null
+++ b/dev-db/aerospike-server-community/aerospike-server-community-3.16.0.6.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils user
+
+DESCRIPTION="Flash-optimized, in-memory, nosql database"
+HOMEPAGE="http://www.aerospike.com"
+SRC_URI="http://www.aerospike.com/artifacts/${PN}/${PV}/${P}-debian7.tgz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="sys-libs/readline:0
+ sys-libs/zlib
+ dev-libs/openssl:0
+ "
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}-debian7"
+
+pkg_setup() {
+ enewgroup aerospike
+ enewuser aerospike -1 /bin/bash /opt/aerospike aerospike
+}
+
+src_prepare() {
+ local server_deb="${P}.debian7.x86_64.deb"
+ local tools_deb="aerospike-tools-3.15.2.1.debian7.x86_64.deb"
+
+ ar x "${server_deb}" || die
+ tar xzf data.tar.gz && rm data.tar.gz || die
+
+ ar x "${tools_deb}" || die
+ tar xzf data.tar.gz && rm data.tar.gz || die
+
+ rm *.deb asinstall control.tar.gz debian-binary LICENSE SHA256SUMS
+ rm usr/bin/{asfixownership,asmigrate2to3}
+}
+
+src_install() {
+ insinto /opt/
+ doins -r opt/aerospike
+
+ fperms +x -R /opt/aerospike/bin/
+ fperms +x -R /opt/aerospike/lib/python/
+
+ for dir in '/etc' '/var/log'; do
+ keepdir "${dir}/aerospike"
+ done
+
+ insinto /etc/aerospike
+ for conf in 'aerospike.conf' 'aerospike_mesh.conf' 'aerospike_ssd.conf'; do
+ doins "${FILESDIR}/${conf}"
+ done
+
+ insinto /usr/bin
+ doins usr/bin/*
+ fperms +x -R /usr/bin/asd
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/aerospike.logrotate aerospike
+
+ newinitd "${FILESDIR}"/aerospike.init aerospike
+
+ fowners -R aerospike:aerospike /opt/aerospike/
+ fowners aerospike:aerospike /usr/bin/asd
+ fowners -R aerospike:aerospike /var/log/aerospike
+}