From 0f7e4b8d348c3bb4c3c72fe672a667a4f91ec727 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Sun, 23 Feb 2020 12:18:51 +0100 Subject: dev-db/scylla-bin: version 3.1.x Package-Manager: Portage-2.3.81, Repoman-2.3.20 Manifest-Sign-Key: 34FCB257983BA23A8CEC5EB7EB9E6405C24BFAE5 Signed-off-by: Alexys Jacob --- dev-db/scylla-bin/Manifest | 19 +++-- dev-db/scylla-bin/scylla-bin-3.1_p255.ebuild | 120 +++++++++++++++++++++++++++ 2 files changed, 131 insertions(+), 8 deletions(-) create mode 100644 dev-db/scylla-bin/scylla-bin-3.1_p255.ebuild diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest index 9e57ca8..3150efb 100644 --- a/dev-db/scylla-bin/Manifest +++ b/dev-db/scylla-bin/Manifest @@ -7,21 +7,24 @@ AUX scylla-jmx.initd 585 BLAKE2B 268f2c97d31f101c6911cd2144f9df6068f8fce706d0056 AUX scylla-server.confd 396 BLAKE2B dc522b308985e51c24449a333d793eaa777a74b8b5594f1ff4a092aae003202791019a255ea478c4e794a83ca0e01d2c49aac3d267501624f461fa3edfe1c41f SHA512 51739cdeedaedb1a73a345ec6a4a2761d29fac1b9cf61f02937559aed43f02112109464254213118d40af1fb7e8491c22f8cb88908c9c88523dfe1b78b8430c7 AUX scylla-server.initd 1020 BLAKE2B 99aaf3d265b507cbcc36a1cc55b9ac9cabb7f1f04c006a4cdd1dae0484d3ab96fa0b6895da29c96c93a2416f954bf3dbc837a4de2faa28c0549a4656b77a19ee SHA512 27e423779b6092e0bd50008633d9e92351c1ccce3d33801196f3c43565409afee310ac0fe627a6ce04296731075fe81a1104c7dc3ca32e15315fd1df3f943db4 AUX scylla.sudoers 162 BLAKE2B 9aa0dce391da1f420a070d73d061452eeba60ad268f13a5bb8c0525d714d27dfa438efa9c6871c916b82ebf56f34c507826315de8b1fadc3d0eb5feae663cbcc SHA512 aabdeb3854eaad4b1cf9037a998cf94b8f55b2011e8f81a1778095b71806d89e217f2025e772c636569f833f7df45108e2e30c2c1e70fdb59acf37e6cdf81485 +DIST scylla-bin-3.1_p255-package.tar.gz 1112403241 BLAKE2B 8acdf74376b7efdcc99c9ec20bafd4768f58921173dabb21effa5eef46f3721eedd11712b2ec4d2e3df9fced0484129ee75830d427dc7f9077ad34e603dc2e04 SHA512 8baf0b704ae9919fa38b9100389040cd1f071cb21b771468edd3033bcbbfd821b6dc26fd52944e281331cb8a34540e05713acd2983b44257b0a6453c958254bd +DIST scylla-bin-3.1_p255-python3.tar.gz 29308222 BLAKE2B b21092f8d58020281970eb31f7c87bcb4af6407f2ea27b6afa11ba1eeb1c163b30277f1846fedac0b85c92dd73e17dbbb14119df1a023542b361378e159b3943 SHA512 d1f99caf943ce966e47d6c8b165e0c2dbe6bc110df41d7e3d98afcb87d67e5a0b30df6bb32b4419242facc90586fd714346227cba7542d650c04a31453bc44e5 DIST scylla-bin-3.2_p202002221144-package.tar.gz 1033996280 BLAKE2B 20faa9af84bad4585baef16564fc583bfdfc01a2ea94ffc6e9324fa80b62c625838f46eeeb8a47536c36047640fb68ed738492595c458afb9c2146bdbc070a00 SHA512 f7187c5dd843089a352c607b27efa7ee979dfd10634dc1d5299821ed5d8fa36d65d66f803dd1b5c8addbe6a8e9f7f36ae2d111a86a9e90a2c3514dab4a3435ea DIST scylla-bin-3.2_p202002221144-python3.tar.gz 34258383 BLAKE2B 85d4467448d23ecfeff7319fb478bbc2f24598aaf5380d5a01cb0b8866caf8fa3eb9196cd03fdd79da9147549a868cd6e6259a337bfa848a57981356a5b2cc48 SHA512 87b29858d9b1c63f98548fb796c4811160dcfdc92071e368c81b23d5db6b266a3d9b2f8cd583e99f1545f10425c4bb0dbb895ae5cf8ca97a7b8434d53ed41c17 +EBUILD scylla-bin-3.1_p255.ebuild 3436 BLAKE2B dbdcc8fcaef2143828e1f70f0f37209441a5479c77dbf13450309b84ef9ffc2f1157c522a43c719629643f3cf1d0a34b4705cc5817f5b67323c8060b995f61a6 SHA512 c94f4aea89bbfcea2ca77271333f86d36654094d35a54201dc0ced82ca35322c753b448dbdcbbabc3abd9b828c95260a8ca01991317e028309618141933edd5f EBUILD scylla-bin-3.2_p202002221144.ebuild 3098 BLAKE2B c7980db78398282f3bd1afcac1370821c78797e7ad5ab09fc7e81ed9dd798962ac05476e795c04c38aa1ce19ead5a99e7361493a9e779e85c4ab967980346017 SHA512 b9fa312ba45df4d212ebaa54ca1224c19be5c3590a10e673c14c881400dea6dd5ef511a2a7fecfbb448a2a89aadb4381a4108547fcf6b754dad085d5a5e7c0e4 MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e0f68e78e82a0c60526d6786492c9dacc438d83405218e51c1bf9c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl5STvRfFIAAAAAALgAo +iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl5SX39fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3 QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX -dy+G2wgAo4ZCZD2OMmOrKN3gKjgUZoDjLWdsFd32AkyrjWG8T5llRji0zjyXa/Iv -X+wtagMRirAPJz+/Is9I+BxhFao6uPnyJ8bRQN7zp4l+T4t8F5TiHst3tqfoQl7u -MQpqdL4nynS2elE93lc0/7oO49Zy1ewLWl5mVuqj4njBY1WD9yvn6I6W06FdZt+q -I5evttk084vQQl0yGRjxmNS0x8SUa/2idXEAik9gFNHAHDHTe3CZH+a0XtSTT61y -CGXz5WKP/elFyZy52DVkd7828vyixLKcLAQsDFWeSi1ZMnc1wh65KNjWX0cG7R7A -akhf6I1TVxany8OJPF1tT8MkOY1I6A== -=2pjn +dy8dNgf/SAFxgc5SjTLwio4AESxOEN3g1G19fX7/ELKSgM6YLzWQb0Uk2iJt5Mlp +6Qgb4Uhbi4yTkc7p1gaaw3LHiU+CnAhRUVoI8xjO1CRxPz3voLArq1WQRAlXZ9La +4rww6yPmQCGpFFL2+QsWxi05wOEpCbMMbSpYTHaPhhJ9ToOs9RB5lrjViaqjCoY4 +xZoEZ8rXR+/Xf6SiN0IbhxHiV1+3RHINAwMidkQ2gRB7/qWj8tBOuVQML+uwuzfF +DC5lpIgzF94AE98PAEcIEcgU9vaGke8qwmZMX2z8bBMtVhuz5Yl7gYIGcEmxkqG9 +pbjQvtHjh+xNe9uu5iR6rJh0K+3rJw== +=uyf/ -----END PGP SIGNATURE----- diff --git a/dev-db/scylla-bin/scylla-bin-3.1_p255.ebuild b/dev-db/scylla-bin/scylla-bin-3.1_p255.ebuild new file mode 100644 index 0000000..eccfb8a --- /dev/null +++ b/dev-db/scylla-bin/scylla-bin-3.1_p255.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PV="${PV/_p//}" + +inherit linux-info user + +DESCRIPTION="NoSQL data store using the seastar framework, compatible with Apache Cassandra" +HOMEPAGE="https://scylladb.com/" +SRC_URI="http://downloads.scylladb.com/relocatable/unstable/branch-${MY_PV}/scylla-package.tar.gz -> ${P}-package.tar.gz http://downloads.scylladb.com/relocatable/unstable/branch-${MY_PV}/scylla-python3-package.tar.gz -> ${P}-python3.tar.gz" + +KEYWORDS="~amd64" +LICENSE="AGPL-3" +SLOT="0" +IUSE="doc" +RESTRICT="strip test" + +RDEPEND=" + !dev-db/scylla + >=app-admin/scylla-jmx-3.2 +" +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; + do + mkdir "${pkg}" || die + pushd "${pkg}" || die + unpack ${P}-${pkg}.tar.gz || die + find . -type f -name "*.pyc" -delete + popd || die + done +} + +src_prepare() { + default + sed -e 's@/etc/sysconfig@/etc/default@g' -i package/install.sh || die + sed -e 's@retc"/sysconfig@retc"/default@g' -i package/install.sh || die + sed -e 's@retc/sysconfig@retc/default@g' -i package/install.sh || die + sed -e "s@/share/doc@/share/doc/${P}@g" -i package/install.sh || die +} + +install_package() { + pushd package + + bash install.sh --root "${D}" --target debian || 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 python3 + insinto /opt/scylladb/python3 + doins -r bin dist lib64 libexec licenses + popd +} + +#install_jmx_package() { +# # TODO: not working with icedtea JVM +# pushd jmx-package +# bash install.sh --root "${D}" --sysconfdir /etc/default || die +# newinitd "${FILESDIR}/scylla-jmx.initd" scylla-jmx +# newconfd "${FILESDIR}/scylla-jmx.confd" scylla-jmx +# popd +#} + +src_install() { + install_package + install_python3 + #install_jmx_package +} + +pkg_postinst() { + elog "You should run 'emerge --config dev-db/scylla' to finalize your Scylla installation." +} + +pkg_config() { + elog "Running 'scylla_setup'..." + scylla_setup +} -- cgit v1.2.3-65-gdbad