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.1_p999.ebuild | 123 |
2 files changed, 134 insertions, 8 deletions
diff --git a/dev-db/scylla-bin/Manifest b/dev-db/scylla-bin/Manifest index 9cbc16d..a4b1066 100644 --- a/dev-db/scylla-bin/Manifest +++ b/dev-db/scylla-bin/Manifest @@ -11,26 +11,29 @@ 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.1_p263-package.tar.gz 1112406098 BLAKE2B cf7c375d42935ae70a9bf5d636e0fa758a783d1685ecbbf9077f0b8426955c81e37a2bc2c462b46545a5a9d86d2b5e2112a1abddd1d1ddf596d35c343d1572bf SHA512 947a531b21ad0f0b2ed89c4f42d8b8b71bd0330acb3791d433d58c338dd20699a31cdbbd0ec3133da0f9b4fb4e14be04864d47f4a7643aa4cff65df8b7aeddb5 DIST scylla-bin-3.1_p263-python3.tar.gz 29325635 BLAKE2B 6ed44587e1693122034c93064ce9c1ec7f85c0cb4c4cb26bf6cad41e5bb0fc8d17b9bb68455f4d1681be928f0c19d4e36da444648cb2a7ec667ffe5e9371ed76 SHA512 1a9a17ed33442b8635dbca3ccced66a91f43389e663ce025c0e4a5d146bccaca9e941936eabbe984b875f75dc6b98fcc2f64eaae236b75d617e91da2e8b637d9 +DIST scylla-bin-3.1_p999-package.tar.gz 1112442916 BLAKE2B 6366601e9b865ac843c7417b883e5995ac6ab40db5dde3ec20c8012558058930bf5e8956c511e17fa37434cf6b4c6fee9c198eccdea160005ea4cff044369678 SHA512 4964b526a2146069164ba8762ceee4e42173432927830783780c845a822b18a378f3f77fa8a59c788d5c19256c4d5f97b082417d616a7802dc1c6fbc9fe876e9 +DIST scylla-bin-3.1_p999-python3.tar.gz 29315191 BLAKE2B 043102bb9c3328c1d133ec05067dc3e3bb4c0b0720023f68abe0839b8b5afcea8270f789db7be09186f8a9b5ded779310d337ee4ce9df0f1e6a68e949f8632bb SHA512 b3a590c60a137918f2a65d51cda8b7fde3013280c24abb2009150cf184062a64394f6f9312ba6464311da0a0b7e7b4900f8f74ff3e556e693115775c67cb0b3e 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.1_p263.ebuild 3576 BLAKE2B c518749676fe53d03aeb42ad7e2523af94bae6aac778f45f69831decde56222dafb8291b7bc7f78361c2003086005a0fd5e61b085f7040b5fea66bbf7e4fc583 SHA512 e2d5801bfa4e8e1231cabe3ef9832f5299ec06209aa077186d4a1022aa8c6bba493691dcc23ac7c81f3244a08b0a10464476a9a05a8c0b1b1b870fd90f030995 +EBUILD scylla-bin-3.1_p999.ebuild 3528 BLAKE2B 434132bb9ce41486b9b6812e914104922a775542315138cbfae9f7a926de1139367ff3b57aa0f82cb227014c141ba7e5c1e90743d60881d1ec46aea3fb7d5f9a SHA512 68f42cac52b9f77c319585213eb50d520d6cb934402338a5c693dfd42dcfb33a212b99f39c92127b8b67098cc0a2ca78acd44187b59a9b60d99d6ede859eb2de 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 -iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl56MvJfFIAAAAAALgAo +iQGTBAEBCAB9FiEEB7NG2KqNbQw8gqQ7Uf8j8ayXdy8FAl6VutRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3 QjM0NkQ4QUE4RDZEMEMzQzgyQTQzQjUxRkYyM0YxQUM5Nzc3MkYACgkQUf8j8ayX -dy8tvgf/Tb5cF090LDkHaWLFjxAxaSHqzRxxNwKgCYZf9oWF/o4tms9D5wG0q0cp -lwNvLI8EwvnfKAww58gCxQgqviRq7SEpsH9q8t42gSz95h0WLeS0B46D5G1GUw1W -rYmeGuh2suVccfd/SmJ68npSO//tEJr0wDgHtM77G7SBWhU9cTK408jztoMIywoQ -HlVUlruneFW1b8hSa2TiKgdJVsnRM4MA1ZZ/HZWPsQIeHhsuwNkTMeTtj03se0pk -UqEFzC8SKbWP83ZHAo+xInsX+6Li/oUURf24JRfCx67hO2mM+mExyyfx8pLsTbCB -KHj19q2I2+oDqkNTV+OPvyvm8+8NcQ== -=C1FY +dy+hWAgAmjLnsYMTS56RN08O76cTmqzxiJgynBb4psQKXMVMpqP+a/k5phfyvs25 +5pag34C8YGhBRgH8oUlnITTPFwVdvmtHtSNiQz9k834aw15XXWSSV3AfuEHA9IN+ ++5I9od+KYizzeL6ekmT5JpEqAB82xVLCKSEtO63MrIvWhLGSWcJSqgOFeqjKR75c +wiTKLCCu5qp1p/Q2FHlV/WNf6piMhx0Vaf74sEUe0qvZcf0/mGoMyyWgaYvvwRMU +e5v6FsHnXnr+z2IFNX5H3ql/nBrMLv54acmqwrQe6vdVPOn5amWlRCfCedFDRWrS +tqarjG2deskBrmF8mm87Ux83PDH9AQ== +=y0py -----END PGP SIGNATURE----- diff --git a/dev-db/scylla-bin/scylla-bin-3.1_p999.ebuild b/dev-db/scylla-bin/scylla-bin-3.1_p999.ebuild new file mode 100644 index 0000000..670bc92 --- /dev/null +++ b/dev-db/scylla-bin/scylla-bin-3.1_p999.ebuild @@ -0,0 +1,123 @@ +# 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://scratch.scylladb.com/lubos/numberly/scylla-package.tar.gz -> ${P}-package.tar.gz http://scratch.scylladb.com/lubos/numberly/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.1 + >=app-admin/scylla-tools-3.1 +" +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 + find package/dist -type f -exec sed -e 's/yaml.load(/yaml.safe_load(/g' -i {} \+ || 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 +} |