summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2020-06-16 18:25:33 +0200
committerUltrabug <ultrabug@gentoo.org>2020-06-16 18:25:33 +0200
commitfc764ce538d4d8747ba2deb66b3ed037e91a0c3c (patch)
tree234ac80ee6548590a040663402679879f228224b /app-admin/scylla-manager-agent/scylla-manager-agent-2.1.0.ebuild
parentdev-db/scylla-bin: 3.2 version bump (diff)
downloadultrabug-fc764ce538d4d8747ba2deb66b3ed037e91a0c3c.tar.gz
ultrabug-fc764ce538d4d8747ba2deb66b3ed037e91a0c3c.tar.bz2
ultrabug-fc764ce538d4d8747ba2deb66b3ed037e91a0c3c.zip
app-admin/scylla-manager-agent: move to fixed version
Package-Manager: Portage-2.3.100, Repoman-2.3.22 Manifest-Sign-Key: 34FCB257983BA23A8CEC5EB7EB9E6405C24BFAE5 Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
Diffstat (limited to 'app-admin/scylla-manager-agent/scylla-manager-agent-2.1.0.ebuild')
-rw-r--r--app-admin/scylla-manager-agent/scylla-manager-agent-2.1.0.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.0.ebuild b/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.0.ebuild
new file mode 100644
index 0000000..b6e43ff
--- /dev/null
+++ b/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user
+
+MY_V="2.1.0-0.20200611.9be1c609"
+
+DESCRIPTION="Scylla Manager Agent"
+HOMEPAGE="https://docs.scylladb.com/operating-scylla/manager/2.0/install-agent"
+SRC_URI="${PN}-${MY_V}.x86_64.rpm"
+
+LICENSE="SCYLLADB-PROPRIETARY"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ app-arch/rpm2targz
+"
+DEPEND="${RDEPEND}"
+
+RESTRICT="fetch"
+S=${WORKDIR}
+
+pkg_setup() {
+ enewgroup scylla-manager
+ enewuser scylla-manager -1 -1 /var/lib/${PN} scylla-manager
+}
+
+src_unpack() {
+ for rpm in ${A}; do
+ rpmunpack "${DISTDIR}/${rpm}" || die
+ done
+}
+
+src_install() {
+ default
+
+ keepdir /var/lib/scylla-manager
+ fowners scylla-manager:scylla-manager "/var/lib/scylla-manager"
+
+ insinto /etc
+ doins -r */etc/*
+
+ rm -rf */usr/share || die
+ rm -rf */usr/lib/systemd || die
+
+ insinto /usr
+ doins -r */usr/*
+
+ fperms +x /usr/bin/scylla-manager-agent
+ fperms +x /usr/lib/scylla-manager/scyllamgr_agent_setup
+ fperms +x /usr/lib/scylla-manager/scyllamgr_auth_token_gen
+ fperms +x /usr/lib/scylla-manager/scyllamgr_ssl_cert_gen
+
+ newinitd "${FILESDIR}/scylla-manager-agent.initd" ${PN}
+}