Skip to content

Commit

Permalink
dev-db/aerospike-server-community: Bump
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.24, Repoman-2.3.6
  • Loading branch information
patricklauer committed Feb 22, 2018
1 parent 20f37eb commit be63576
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-db/aerospike-server-community/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ DIST aerospike-server-community-3.14.1.5-debian7.tgz 10451650 BLAKE2B 1b04389309
DIST aerospike-server-community-3.15.0.1-debian7.tgz 10299283 BLAKE2B 197c8acc0f27c0c5019416e29ed8611b8021d29f5104ca23e06707e2d1fc276f7d86c0a66a0e1395b4d3e286ce4e834c80fcbbcc224b9ac11ac114a91e0a51f4 SHA512 a68c6ce094176bf944baef551553a526581718757967f5f06a7bb02cb81eef923a86db6310f20a3380923ca65d8f31a6785251b7aaacca318c3dc9d6987eaaec
DIST aerospike-server-community-3.15.0.2-debian7.tgz 10299075 BLAKE2B 86b755fef6b0fe9e1736584d38e3e9b9ec46f661698ec9643c507605a0252725fea971a46ba2f25a302961c2916b4e21a8d76c8ae8a1a76b3e9a06f30d4fdc74 SHA512 6aae04d81ff9a56e2283186b8a38947b9a30cd2ed97ea4613a9eecd89912ec31695a959f25fc0b06b2cac13c1aaf1c46366cf3967f776a515196e2a2e5dbe431
DIST aerospike-server-community-3.15.1.3-debian7.tgz 9774757 BLAKE2B bf050897c8ed862155c80844035af39efb04f5875e49593412f3735465e6ddb1eb24cb7a3734c158041ac2e42f54ddc0cbd54ce0019e306b2297fa83d9a6f276 SHA512 67b57814f3a2c950b41952a45a9b3e56739397084af295dccdb364f79dec3e4db717a1e3b4569e920dfac76352f4214c5178bc6f780a60fec6689b1fdff01f4a
DIST aerospike-server-community-3.15.1.4-debian7.tgz 9775381 BLAKE2B 4f7fe86d99cb0cdc74d0bacdcdaea8112e105b6daa870fee12a0137447118ba73adc580b4e4a47f9e1338bc393aeb32787b067a75415bf5c1c6d76cf4ee94d7c SHA512 2b77622ea4eb35de9eb26b33f0cf47fc8d29a70fe75848b81245842b2f3c728d6b2d3ebe72369b91ef0d53be168cea04086ae469ad69124ab2010f48f3005fd5
Original file line number Diff line number Diff line change
@@ -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.1.2.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
}

0 comments on commit be63576

Please sign in to comment.