diff options
Diffstat (limited to 'dev-db/scylla-bin')
-rw-r--r-- | dev-db/scylla-bin/Manifest | 19 | ||||
-rw-r--r-- | dev-db/scylla-bin/scylla-bin-3.2_p202003162053.ebuild | 113 |
2 files changed, 124 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest index 60b44ac..4ad3c80 100644 --- a/dev-db/scylla-bin/Manifest +++ b/dev-db/scylla-bin/Manifest @@ -11,20 +11,23 @@ DIST scylla-bin-3.1_p259-package.tar.gz 1112368776 BLAKE2B 593f9bed2cccf1dacdc79 DIST scylla-bin-3.1_p259-python3.tar.gz 29292188 BLAKE2B 169a67b487244b2a391aacc995155a749b0746cfbd342c387423106abda4f361a45a7d5bfbba020e1f32014ead148d5363c4c58bb35eb6147f992b7040ff17c4 SHA512 5883c34c79d8e09ecbefa612c37875383cb4e45d429599a5b0b74a048fd93fc4a672d7b9a2335eb0fefdc05d08edc5a0a72dc2d3fb77485dd1146fd48899936b 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 +DIST scylla-bin-3.2_p202003162053-package.tar.gz 1034202869 BLAKE2B ca68cbfebe56976ce4a4034b5a059b439f7eca6a23745425b75560d201d916901d5bdc104d03e1b2ecec589537bdc5b53b2f2ebb0f1693f3f4c2cea4e2b3c7d3 SHA512 a24fcb1bd80503d2980885ddf2a47a098a146da4dd2ec5b4f53ca9bd5d6684ca032e4cff1927e70d0725160dedcc49b3e19712ea871d90cd8019c5554f319c02 +DIST scylla-bin-3.2_p202003162053-python3.tar.gz 34293296 BLAKE2B e3b326b655b5bc6f35fe020b88561bee5193818fc265581725526fe7144581cea153a529c10abd489a8e69862af6f811bc963cb86e66b638bcb9d341cb62200b SHA512 0d965b2a10e4b7d6f448321cef051a2db1e9af413b7cd2a653857f769931f27e51b8f39d95278498aa86d8cdc15c939b194659247d27529decdd1dabdf68fdab EBUILD scylla-bin-3.1_p259.ebuild 3576 BLAKE2B c518749676fe53d03aeb42ad7e2523af94bae6aac778f45f69831decde56222dafb8291b7bc7f78361c2003086005a0fd5e61b085f7040b5fea66bbf7e4fc583 SHA512 e2d5801bfa4e8e1231cabe3ef9832f5299ec06209aa077186d4a1022aa8c6bba493691dcc23ac7c81f3244a08b0a10464476a9a05a8c0b1b1b870fd90f030995 EBUILD scylla-bin-3.2_p202002221144.ebuild 3149 BLAKE2B 31aa2fbb0c57e2481813beb96c384d863014da40b68da3f2d2dba10e980c0c5e1b03d10afd24d7f06a4b41a98eec39528fb31c2d76ffd8ae92fa2689822cb528 SHA512 87468eb7519857586c2948eb7555a427e4a790d8072f9975566f46eff9726edf1d31b2d4f69c7e601022ffaba40939a8ca2a64080471053cbcb03061aa6c1467 +EBUILD scylla-bin-3.2_p202003162053.ebuild 3149 BLAKE2B 31aa2fbb0c57e2481813beb96c384d863014da40b68da3f2d2dba10e980c0c5e1b03d10afd24d7f06a4b41a98eec39528fb31c2d76ffd8ae92fa2689822cb528 SHA512 87468eb7519857586c2948eb7555a427e4a790d8072f9975566f46eff9726edf1d31b2d4f69c7e601022ffaba40939a8ca2a64080471053cbcb03061aa6c1467 MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea192ded6b09a158f1bc941544f90a1b9e396db00bc0fe277c072d267568473ae4aa2dec8bc5c2f89 SHA512 6eae78a65db44c8f7ef2d20c10c8612cd2072c0204c6294798e4bf94f1283c684c22d1ad28e0f68e78e82a0c60526d6786492c9dacc438d83405218e51c1bf9c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl5fy/tfFIAAAAAALgAo +iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl5zUVNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3 QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX -dy+/vwf/YZU26fCIQYMTVsK5GFYz+pWU3bKUPeIDK6aJeRs4I1vx8KpiP1sEJfWl -YaeDklNqhOM2H0PXLhtxYIRohSCUoml6yGeHWbcXHRa/u4mxukecaSt2PKSM2gBz -vR65dz3UOEFCRaGCeR7H/ENxNZnLC93aaMq+kHIUBrDbDT7J2XUaU22Ea7hrp6D7 -wHRb3eiybFJ8gOm7uZUNMNmv3Entv95CNtbkh6hsx49oam6skjh7bGsf1Fyt/3Mq -UvzDu/bkWs80YlJz1edgvw+eHqogUuWD9FTTcOzjUDPSGdYrGcntOSpO6tk+elOD -ew5ncCa8VOwmD5o9/E5wcVvwdOMSPA== -=YHuI +dy+w2QgAx0pSTeGQDRXJ3LeKUP8Hg7BISkmJQy6lsmF78l9ccidzOm9Pjk+NEAbr +hyAmIdwJ52Md0YdfXt/bkYi9lB6HJkaOLuh95EJMx1BBQnQhuQF7ZvrU+GXEUiPw +OggwRbiF5Dgtzo50cXaNEoPa1KtLHMnszYnQzIsUPYDzLpDvRjjh/rQpmyw4k+Nm +s2/1oV1ICNtFxJ6P0slP4DpxfRl74xV2A2WpUYguQgUAKbxMWGYKVEEQveTs+DJ4 +Hj5nrRzzSzaCWwMsF2LlICFZ8HZal7o0K0N0EBxxFAuqOzZSmtmrzcicWOcrzvax ++cBkvQLAol4VcyMy6MuPFJVIXNPdOQ== +=i1dW -----END PGP SIGNATURE----- diff --git a/dev-db/scylla-bin/scylla-bin-3.2_p202003162053.ebuild b/dev-db/scylla-bin/scylla-bin-3.2_p202003162053.ebuild new file mode 100644 index 0000000..4968dde --- /dev/null +++ b/dev-db/scylla-bin/scylla-bin-3.2_p202003162053.ebuild @@ -0,0 +1,113 @@ +# 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 + dev-python/pystache + >=app-admin/scylla-jmx-3.2 + >=app-admin/scylla-tools-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 +} + +install_package() { + pushd package + + bash install.sh --root "${D}" --sysconfdir /etc/default || 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 + bash install.sh --root "${D}" || die + 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 +} |