summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-db/scylla-bin/Manifest21
-rw-r--r--dev-db/scylla-bin/scylla-bin-4.3.3.ebuild128
2 files changed, 141 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest
index 6754bad..e54e2c8 100644
--- a/dev-db/scylla-bin/Manifest
+++ b/dev-db/scylla-bin/Manifest
@@ -51,6 +51,10 @@ DIST scylla-bin-4.3.2-jmx.tar.gz 8539983 BLAKE2B 59a1e1c1dc24297dd44a1bf92758e95
DIST scylla-bin-4.3.2-package.tar.gz 988338126 BLAKE2B a85de44ed9734ae3c1a7a45a2f8ae75ddbeba9c039cea00024796bcb9dbb0a96d335930ec3bfcf79ed8971cff57cd3e1fece367e4563e7606481f8439c9dc032 SHA512 2f3b0a10e9c3ecbdd97923dc1633e889549a29d614911590d56d7174ed6dfc66fa1ba30bdf68e5e3cc9534981793142eeac5758ef4ec8a6e12b64ae42f883655
DIST scylla-bin-4.3.2-python3.tar.gz 21471315 BLAKE2B e1f48447bd25b3a50ba207195154a33d9e076df10c84e17614dc9006d8ca0f81e90d28ba350035c1d2c8865447cfa8b89df5e19f841752f39e7bced9785cbf3e SHA512 edf00a733ab016b136f28aff941df4d0d8fc481f78103547ab4f06a673bcf010cb31d96c055d2346083dfc2138574dac9b740ad0eb97bb27703e7b33075d8d30
DIST scylla-bin-4.3.2-tools.tar.gz 33880155 BLAKE2B f2e44ad150a4ff2b7cb838e8449dc5f0696f2fa4635edc4c93d4e2d40104430b3533286efd99809e106d3d1d0fd115e5142ad38394c8df084578151912a76928 SHA512 73d1601249acdd8ace241499f059f93d3ed1ff55668ff08377699785c0b3c8dd505fed9679f2e5b75be0f1f959b132cf1f5a2887772bf217e875c3320d89eb6e
+DIST scylla-bin-4.3.3-jmx.tar.gz 8539983 BLAKE2B 59a1e1c1dc24297dd44a1bf92758e951bbfd1e6d3f29333516685dca439b8756cc05df169d9e5545565edba370cf4f418706dd1eeb37d0ce9479fbcbacce5ee3 SHA512 ff68f72d8069683330bd82b6a33a05ef4530a41cd09807cce366b0a11accb074dc7c623678a14e238b4dd7e8e943299b53e7c89ec45cbae0f73e188b1461288a
+DIST scylla-bin-4.3.3-package.tar.gz 1018847873 BLAKE2B d04974d5fc61fdaa526812963ff2670ad7586379cf8bb9d9e28f44b7e6f7c8aca820d6dc15ebabdddf3d397904383cc28b6e1071aa5e458d55b208d79581d63c SHA512 d94014053ab4fb5080ba700e18c18048d085d290009687ae5d124e639fd617edfabfc9ab83be5308e986ce0db7d2835f465e61fde5403364e63d572ad4061c2d
+DIST scylla-bin-4.3.3-python3.tar.gz 21471315 BLAKE2B e1f48447bd25b3a50ba207195154a33d9e076df10c84e17614dc9006d8ca0f81e90d28ba350035c1d2c8865447cfa8b89df5e19f841752f39e7bced9785cbf3e SHA512 edf00a733ab016b136f28aff941df4d0d8fc481f78103547ab4f06a673bcf010cb31d96c055d2346083dfc2138574dac9b740ad0eb97bb27703e7b33075d8d30
+DIST scylla-bin-4.3.3-tools.tar.gz 33880155 BLAKE2B f2e44ad150a4ff2b7cb838e8449dc5f0696f2fa4635edc4c93d4e2d40104430b3533286efd99809e106d3d1d0fd115e5142ad38394c8df084578151912a76928 SHA512 73d1601249acdd8ace241499f059f93d3ed1ff55668ff08377699785c0b3c8dd505fed9679f2e5b75be0f1f959b132cf1f5a2887772bf217e875c3320d89eb6e
EBUILD scylla-bin-3.2_p202004222203.ebuild 4422 BLAKE2B 747a8b8ba7020a8c864725a7a11aea5b6343284e2b77b5aa014132bf5771ab9922b588bf40c154850b9aeb116679e1818d369f9cf57f08b404a1d972fbc4ddeb SHA512 641fc805ae0f30ae89d4746a884778a68766f8db96f2cd534fa620515b6dbcce60930b9927f450b007a568b9c3a5c21eb918004562a2a6072347bfb46fc70f36
EBUILD scylla-bin-3.2_p20201008.ebuild 4393 BLAKE2B f40b2db7459da877394169fa61b8b9562e4fc0b2a27fd37fd2f4e08ae9352b136b36ccf13a97b5c4d5a1ee86eedcf21d132f930f51a41e976e9ff68559b13a5b SHA512 fbbfc2bb498bef65a28cc1a00e15b6207174ad0f2624f7d9b7b234bd4c2d8de62f0c52587497b1746541c02589697167143a0b0c40b1d84eac8c94d682dcba85
EBUILD scylla-bin-3.2_p20201009.ebuild 4412 BLAKE2B 09ec3b51a434e24fd0b3df0c630810b314b6e0116243b8f2443c4a76257d028551604358ae92ad1288be5babb4b1fad8ddf9aba640aac16c534fb098d54c3cba SHA512 5738fb63b5e480ed12ffebb7fe2d8aa586c222b2dc952264a38e0eb22b02555dc7a373c3eca3491a486cd467498a1255c8e2fedf66fd4c1dba6d9e699a8c8288
@@ -62,18 +66,19 @@ EBUILD scylla-bin-4.2.0.ebuild 4293 BLAKE2B 077b5d248592e844c85116cb779066d1ad92
EBUILD scylla-bin-4.2.1.ebuild 4293 BLAKE2B 6c2f370e2e91947bd31f5af6bb3fd9f9d064f250463aca0adbb7a3e98ff0975c1b79b96f14b8eb3bc9cacc840cfba2a1ebd92d8212ec3de4a8f91d59eca2e00d SHA512 01605a08bbee17e5fe08735a51be57e335a47dcda9fdaf0a6c5e6029ab25247c5a2dfbe729bce69176a2112a89bc8a360b0375f7fb33a08cffb061b4a6b50cd0
EBUILD scylla-bin-4.2.2.ebuild 4228 BLAKE2B 004e097de9adfb853570e1eb0b900d759449d8666cf081a01db8c378b31d90b747c5bc66e2561c049bc51237bf48a0ac99c0ef540bc2318d1a2f6464c2668288 SHA512 7ce2d197a53d01d09df0ce8227f9ca95786d268f8f83a91b12112d514a1f5a51c535c66a20ae5b1501a3e7ec6710fc7fafe833722259be91cf48d24cf5bd4c25
EBUILD scylla-bin-4.3.2.ebuild 4292 BLAKE2B 40722df06be76ef7c8059f4cdafe3e6e78c44adffd5a73bd99c8e8a032d56f7a86ed45a146dcaf96c3be2e287d53bfb50f5d128c1871c440ba0567e23a4ebf45 SHA512 bc993f892e643e35b24e20714a23f29be3b5d0d4473744d011016c637e365d26042be6ce9eae114e25f0d1fa21bd2ebf27aefabc84b4a60dea4cdbb361960975
+EBUILD scylla-bin-4.3.3.ebuild 4304 BLAKE2B 320385361757efffb402b014a3c0e3549bbfa008e64bd1bd6d75fa7bd3822cd9454aaa989593c6a010f312637d28a2a12771ddc4717637cc65be8641821f6d20 SHA512 b579ea5a432501636ce19bb76918953aac425c1b767696c0ff7e9e374dcdf1b946720ec62fa622fb20bd1bc2fa2b953a280741a13e08fa57a38db9f3ea8298bb
MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e0f68e78e82a0c60526d6786492c9dacc438d83405218e51c1bf9c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAmBTUw9fFIAAAAAALgAo
+iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAmCSsGhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3
QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX
-dy8T8wgAmoaxKhmT2M5Gn8SkR1t9CoV0riu6pIYL4qGwZXTxhg8rHHsk5uvv9qsc
-90HW54XoUGCYE9GW2hAX9p/1G+EI6d6z2xBxJ93Z/m4+iX9k3ESjrT1qvZe207Qv
-ITzMKT0/t8xUuS7AismnkwICs4yRU1HpPTpiHVO0n6h10q8U/PV/4AQaUoYMc4wE
-00BXdOI+hLIU0/my4PJUXRmw7zBnrwg/DlKUNMqn+Vn+wTKy3RcZQLvjxJzi/VI3
-kLmQsUgEDS/l5aPUPF7AnebEMcmOJ+tgrlMrdw7SI5hJ3+mYer0uqrQPh8ZspxkB
-GWzTCO6XW+5SYdyROTKNflH+WSOhYA==
-=hq3O
+dy/aZQgAz5BQs5BDaivASC6twD6KhhxZob8RKXHFUTEowRzycWw8IUJdlc4ErG2l
+0cHIeXesnor/DpPE6C6I4hQh0mUh1wKESbLGHn2JNqZp4KlxE3r5I2AWZNBMwUC0
+9n/J/PanhgK84uL3Ahz+7IV+d2XhT/8aHxSuqqaa9zkNCuOnhMxvc5TLEFpKsP1K
+F1+4mAm+QFhi20WciHJp/ty7OMGgSUnxTSuteiby/A+2SgPq21ZECWsWY14KCeDO
+uskdqr+Wp/5iYqyDjY45e483+blaEO5rwE/Tpkows3GKVWuXJDnCyYd57ZWp66NC
+ZFroqkNcrK1nDU5cHDpg1FSsSZdWHw==
+=V9Ks
-----END PGP SIGNATURE-----
diff --git a/dev-db/scylla-bin/scylla-bin-4.3.3.ebuild b/dev-db/scylla-bin/scylla-bin-4.3.3.ebuild
new file mode 100644
index 0000000..dc05895
--- /dev/null
+++ b/dev-db/scylla-bin/scylla-bin-4.3.3.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV="4.3.2.0.20210301.5cdc1fa66"
+
+inherit linux-info user versionator
+
+DESCRIPTION="NoSQL data store using the seastar framework, compatible with Apache Cassandra"
+HOMEPAGE="https://scylladb.com/"
+SRC_URI="http://downloads.scylladb.com.s3.amazonaws.com/downloads/scylla/relocatable/scylladb-4.3/scylla-unified-package-4.3.2.1.scrub.20210505.b40b709c0.tar.gz -> ${P}-package.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2 ${PV})/scylla-python3-package-${MY_PV}.tar.gz -> ${P}-python3.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2 ${PV})/scylla-tools-package-${MY_PV}.tar.gz -> ${P}-tools.tar.gz http://downloads.scylladb.com/downloads/scylla/relocatable/scylladb-$(get_version_component_range 1-2 ${PV})/scylla-jmx-package-${MY_PV}.tar.gz -> ${P}-jmx.tar.gz"
+
+KEYWORDS="~amd64"
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="doc"
+RESTRICT="strip test"
+
+RDEPEND="
+ !app-admin/scylla-jmx
+ !app-admin/scylla-tools
+ !dev-db/scylla
+ virtual/jdk:1.8
+"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-3.5
+"
+
+# Discussion about kernel configuration:
+# https://groups.google.com/forum/#!topic/scylladb-dev/qJu2zrryv-s
+CONFIG_CHECK="~NUMA_BALANCING ~SYN_COOKIES ~TRANSPARENT_HUGEPAGE"
+ERROR_NUMA_BALANCING="${PN} recommends support for Memory placement aware NUMA scheduler (NUMA_BALANCING)."
+ERROR_SYN_COOKIES="${PN} recommends support for TCP syncookie (SYN_COOKIES)."
+ERROR_TRANSPARENT_HUGEPAGE="${PN} recommends support for Transparent Hugepage (TRANSPARENT_HUGEPAGE)."
+
+# NOTE: maybe later depending on upstream energy, support DPDK
+# For DPDK, removed HUGETLBFS PROC_PAGE_MONITOR UIO_PCI_GENERIC in favor of VFIO
+# CONFIG_CHECK="~NUMA_BALANCING ~SYN_COOKIES ~TRANSPARENT_HUGEPAGE ~VFIO"
+# ERROR_VFIO="${PN} running with DPDK recommends support for Non-Privileged userspace driver framework (VFIO)."
+
+DOCS=( README.md NOTICE.txt SCYLLA-PRODUCT-FILE SCYLLA-RELEASE-FILE SCYLLA-RELOCATABLE-FILE SCYLLA-VERSION-FILE )
+PATCHES=( )
+S=${WORKDIR}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ enewgroup scylla
+ enewuser scylla -1 -1 /var/lib/${PN} scylla
+}
+
+src_unpack() {
+ for pkg in package python3 tools jmx;
+ do
+ unpack ${P}-${pkg}.tar.gz || die
+ find . -type f -name "*.pyc" -delete
+ done
+}
+
+install_package() {
+ pushd scylla
+
+ einfo "Installing scylla-package"
+ # fix sysconfig path for systemd service files
+ sed -e "s@/etc/sysconfig@/etc/default@g" -i dist/common/systemd/*.service || die
+ bash install.sh --root "${D}" --sysconfdir /etc/default --packaging || die
+
+ for x in /var/lib/scylla /var/lib/scylla/{data,commitlog,hints,coredump,hints,view_hints} /var/lib/scylla-housekeeping /var/log/scylla; do
+ keepdir "${x}"
+ fowners scylla:scylla "${x}"
+ done
+
+ insinto /etc/sudoers.d
+ newins "${FILESDIR}"/scylla.sudoers scylla
+
+ insinto /etc/rsyslog.d
+ doins "${FILESDIR}/10-scylla.conf"
+
+ newinitd "${FILESDIR}/scylla-server.initd" scylla-server
+ newconfd "${FILESDIR}/scylla-server.confd" scylla-server
+
+ popd
+}
+
+install_python3() {
+ pushd scylla-python3
+ einfo "Installing scylla-python3"
+ bash install.sh --root "${D}" || die
+ popd
+}
+
+install_jmx() {
+ pushd scylla-jmx
+ einfo "Installing scylla-jmx"
+ # fix sysconfig path for systemd service files
+ sed -e "s@/etc/sysconfig@/etc/default@g" -i dist/common/systemd/*.service || die
+ # fix symlink runtime error on scylla-jmx script
+ # * scylla-jmx is not available for oracle-jdk-bin-1.8 on x86_64
+ # * IMPORTANT: some Java tools are not available on some VMs on some architectures
+ sed -e 's@"$LOCATION_SCRIPTS"/symlinks/scylla-jmx@/usr/bin/java@g' -i scylla-jmx || die
+ bash install.sh --root "${D}" --sysconfdir /etc/default --packaging || die
+ newinitd "${FILESDIR}/scylla-jmx.initd" scylla-jmx
+ newconfd "${FILESDIR}/scylla-jmx.confd" scylla-jmx
+ popd
+}
+
+install_tools() {
+ pushd scylla-tools
+ einfo "Installing scylla-tools"
+ bash install.sh --root "${D}" || die
+ popd
+}
+
+src_install() {
+ install_python3
+ install_package
+ install_tools
+ install_jmx
+}
+
+pkg_postinst() {
+ elog "You should run 'emerge --config dev-db/scylla' to finalize your Scylla installation."
+}
+
+pkg_config() {
+ elog "Running 'scylla_setup'..."
+ scylla_setup
+}