summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/scylla-manager-agent')
-rw-r--r--app-admin/scylla-manager-agent/Manifest21
-rw-r--r--app-admin/scylla-manager-agent/files/scylla-manager-agent.initd28
-rw-r--r--app-admin/scylla-manager-agent/metadata.xml8
-rw-r--r--app-admin/scylla-manager-agent/scylla-manager-agent-9999.ebuild58
4 files changed, 115 insertions, 0 deletions
diff --git a/app-admin/scylla-manager-agent/Manifest b/app-admin/scylla-manager-agent/Manifest
new file mode 100644
index 0000000..cf6d3be
--- /dev/null
+++ b/app-admin/scylla-manager-agent/Manifest
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX scylla-manager-agent.initd 771 BLAKE2B ea62fae48341e8bcd4cceb6466e13643b108e23a3ca9e63bf78abe23cfab951cb10452141cd94f536313e3a0b6ce2115193b1efc527154c0d0581188ba1c6596 SHA512 cbf87c357a72247b17c774d0c71531db32396d2d7f248516bf60289f33dffc54cefb35844291c9a9c3c3a4e4e70c79ee815f5d3c440e14f786433ddc69a6e4b6
+DIST scylla-manager-agent-2.0.1-0.20200123.7cf18f6b.x86_64.rpm 6699616 BLAKE2B aa596f65269dce539cf4348af18fa723e5859b86a78efa1db1c5aea65d8cbf7c8e7b4ee9d29f01b05356a5bcec50323c9f43e588d77d1323ac0afa8f9fdacdc9 SHA512 2202730993b96544de2f27e4c757fee390f6a86d66d132829eac9677a1298c3a4662f97790f12491e7a4f05084fb5d8b6839bef064b3fe71fed84fb51234b239
+EBUILD scylla-manager-agent-9999.ebuild 1122 BLAKE2B 184f97f3982c35667a26681ac9f7ba14a46b50549c4919f3bb2d4d76476ea130227aefc098103679c129d78b2d8a143948a51cb6e9eb320d2f1c565c4e395e25 SHA512 e493b0acbadbbc9f09eaa3a9ba13b9533b7464f903b98f8b0518305422d1a7d7cdeb52d0936636d960fa5ea954b900ecbd05b152b797f24e8eb5dbe1eeb6bbee
+MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e0f68e78e82a0c60526d6786492c9dacc438d83405218e51c1bf9c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl5MIEtfFIAAAAAALgAo
+aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3
+QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX
+dy9KIwf/ZPBoO9/+WRVuYFMyVnR3RZXjTsRMWXobNW6fHgISH0YEZoRd0Lg+fkx1
+SQrJQXAocMGc9WvQybb//YuYjK/lxsXTzc7s88zv+nJrIm45GPlDn+vMbdvphBcw
+CwB/kgTliuCE+V1ZH+YFJoB/M/gWFmqi+sQbN4YfCi3VTiXxhYNCLgw4vRd3toDc
+SubhlNEmG08JNrpMsEZeAPUX8gY336xDw4yOLOuH9FdWuoDhCB7owuD8mqiHAWuf
+44m55jH2U0a1Qb1HTSwEHQv9TDyGlzAyhaKsAcxhCiUi59PJqR7K0fpTwIxSnpdg
+H8B1HCn28NgD1Gze2cTKA9YZwhyWZQ==
+=iakc
+-----END PGP SIGNATURE-----
diff --git a/app-admin/scylla-manager-agent/files/scylla-manager-agent.initd b/app-admin/scylla-manager-agent/files/scylla-manager-agent.initd
new file mode 100644
index 0000000..e7bcca0
--- /dev/null
+++ b/app-admin/scylla-manager-agent/files/scylla-manager-agent.initd
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+config_file=${config_file:-/etc/scylla-manager-agent/scylla-manager-agent.yaml}
+run_dir=${run_dir:-/run/scylla-manager-agent}
+
+command="/usr/bin/scylla-manager-agent"
+command_args=""
+command_background="true"
+command_progress="true"
+pidfile=${run_dir}/${SVCNAME}.pid
+user=${USER:-scylla-manager}
+group=${GROUP:-scylla-manager}
+retry="SIGTERM/120"
+start_stop_daemon_args="--user ${user} --group ${group}"
+
+depend() {
+ use net localmount logger
+}
+
+start_pre() {
+ checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}"
+ if [ ! -f ${config_file} ]; then
+ eerror "Missing configuration file ${config_file}"
+ return 1
+ fi
+}
diff --git a/app-admin/scylla-manager-agent/metadata.xml b/app-admin/scylla-manager-agent/metadata.xml
new file mode 100644
index 0000000..f4e95c6
--- /dev/null
+++ b/app-admin/scylla-manager-agent/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ultrabug@gentoo.org</email>
+ <name>Ultrabug</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-admin/scylla-manager-agent/scylla-manager-agent-9999.ebuild b/app-admin/scylla-manager-agent/scylla-manager-agent-9999.ebuild
new file mode 100644
index 0000000..0c5cfc6
--- /dev/null
+++ b/app-admin/scylla-manager-agent/scylla-manager-agent-9999.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user
+
+MY_V="2.0.1-0.20200123.7cf18f6b"
+
+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_auth_token_gen
+ fperms +x /usr/lib/scylla-manager/scyllamgr_ssl_cert_gen
+
+ newinitd "${FILESDIR}/scylla-manager-agent.initd" ${PN}
+}