From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- sys-cluster/swift/Manifest | 11 ++- sys-cluster/swift/swift-2.25.1.ebuild | 4 +- sys-cluster/swift/swift-2.26.0.ebuild | 4 +- sys-cluster/swift/swift-2.27.0.ebuild | 113 +++++++++++++++++++++++++++++ sys-cluster/swift/swift-2020.1.9999.ebuild | 4 +- sys-cluster/swift/swift-2020.2.9999.ebuild | 4 +- sys-cluster/swift/swift-2021.1.9999.ebuild | 113 +++++++++++++++++++++++++++++ 7 files changed, 241 insertions(+), 12 deletions(-) create mode 100644 sys-cluster/swift/swift-2.27.0.ebuild create mode 100644 sys-cluster/swift/swift-2021.1.9999.ebuild (limited to 'sys-cluster/swift') diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest index 94854bbd4ba0..48069a807b95 100644 --- a/sys-cluster/swift/Manifest +++ b/sys-cluster/swift/Manifest @@ -4,8 +4,11 @@ AUX swift-object.initd 862 BLAKE2B 2a062873ab613e7d98d78758ccae793d8d952cb66922d AUX swift-proxy.initd 1379 BLAKE2B 56453a557c0abfd6b07f65778ef14d8920bedc4133e0efa1aa4a5466a72103e9b57b361f481e0b5cb816471161196755de7794bd3ea3d6f5120cc1f159489c22 SHA512 dd32e4249686b51d2ed6add8e2e91eb9e520c662ebdf068f68b4e52faf4d508d3c87e996c6c2f7ba2a7d1f5fdf639d08e1e6878cd4c9918408e007ccbd7c84ec DIST swift-2.25.1.tar.gz 3161690 BLAKE2B 985bcb884f4de9a7a4fbb8e2e76ff416035ac4554d3135c04d679c1d88a8443b988b5a18b4f3f1864542c93109020bb77eef72836fd40e705a9293c8a481e4f0 SHA512 4943949a420fa174e30c178b07797af4dceb89174c2e13ac9db35ff66a648024c907b52b9cdba2f730bc587b4d712efa3da09e77ccca51bd537703fc3c17144b DIST swift-2.26.0.tar.gz 3235050 BLAKE2B 33b46ebc3bd57b6ca6ccb65e96dd11a754fa1b4d314c60eafd23ad8b6bb7b8fee42ce26ccf0f388ad33599520a049a2d36832ba3d1ea01b0a07a8bee3f803569 SHA512 5e4620831bfc75f231fa468ce68438a23ad7b013eef4173aa596fd2e42bd4eb7e6b4182026fa71b6f4dd31d2cfccc4e70480a42a77f93b15bf6e50e9287ea460 -EBUILD swift-2.25.1.ebuild 3557 BLAKE2B 9d8ab00cd7d2ce7105608dea6d9cbbb2adde51d05986982dbc74af6369da172c6abaa10b611719c413b621f664cddae851b10151e4a61db71eb6522dee6857c6 SHA512 4ecd05b467067025538cd3b6e846ed79945ad131ade6aa82da3e45ba77ade7e5efe740001d712191cb06fbddf9383e954aaf3f3c3cec0d692095dff2f4a8e39a -EBUILD swift-2.26.0.ebuild 3558 BLAKE2B 599a618cf171cd36ff6a54bd42c9eb11722c9bf903a7658873b38ddd1dec12291db724958e331f887b2ff10fe6a87a65f9447908e240aa778eb6601c47d5a846 SHA512 dd80a0ced28bbc0798269393e3efbd58fc6117c709f2bfe86fcb5452bd295fad52cc2985394666ab3f122db13b29c9451a2ad3394e368f436de30068ca8f61a2 -EBUILD swift-2020.1.9999.ebuild 3559 BLAKE2B 3b602d12f9865ae6609778aa56780dddfc5271622f8708215ad2b08479aac919052ab53615edd6c5b56ffd66aaf1191db60d83c9900a52d1078713d58076567d SHA512 580731713000ef723f7f496612b8088aa44930aa8384a5e470d085f020f2e6f92bc8eec0bde5f835a70a8575a0f4b38da413c3a8a8101a9ef29217b7c6916e55 -EBUILD swift-2020.2.9999.ebuild 3560 BLAKE2B 9c19277d049c3dc95727055588316c32c0e117502bc9063af06232b90b1f4931dd7750fc3c127cdf2742ff0a95302610a18a3d26663c525eddd7effea52a3350 SHA512 5442fa9054960255a79a8c59bef410c1bcdc512ba8dce13ed9c1022bd52eece85c1298ca89123fd8a3f6942a92b0d5f461b0e2489066029abef9685351a7dc1d +DIST swift-2.27.0.tar.gz 3464571 BLAKE2B 9495abc39b150615a8f7f1900573c643b4f2edd5c187c4d525c4ad7d7e0c2d54eeec0f9b3d8711ed2028cf4d606dee532bd8e4af4b3e1527f3cee5bcc8e62835 SHA512 c9abfa16cfb4964bd774a3dd50c847bf1912e5f87edc8693746e2dcb5863289b9afd2b69b0cc0940aa3fbb49694851b0b6418462367078d0c40d2b724b135467 +EBUILD swift-2.25.1.ebuild 3550 BLAKE2B a6b1ecaffa458adbec2fb65b94f12b0bceb61985c41eb48fd1eb73dae9586e73acd645e59959dce61016efd8de4ee3bb5c8e278f6ab77285614337624d7bde13 SHA512 39a8de0a0f32a1c47e8e0d78e6264e6e6ee9475fe805f20cc9da3285d75720f8de726adabc7025780b69b31f826b63e7fceaefdfef9fd088d03cffb498810ada +EBUILD swift-2.26.0.ebuild 3551 BLAKE2B 7d79373037f37579aa1d8d8019d2c8f3886bb7d326ccca9fdf4b9f7a4732dc7cdfddeefd1a19a570df05cf159cb6f8bee74e647c6131562df0a0bd1898075cb2 SHA512 f94a07835a79f4d8f1411fa9885955740281ad3b003df5aed6ffc5de525e776fff78f10e90f4ac0fb5b0a5586f1ab7ccb28e0837164501a6888be5715ecd85c5 +EBUILD swift-2.27.0.ebuild 3644 BLAKE2B 300dc9da50345c68212842840f7a2aed32a47e6feddc1a22735bd4b682f834cf309dbf36ed8f78c68d39aa84bdcce6c111ebfeab8da2c2fdb0e63ce8bc67428b SHA512 cb2b0b9f927689078da08d0bdd0605f5c834a0d8f0f12d02cc55cc7c36a2c6bd7bdaa0405e50375a85e4b9dbcf00289425b3294875867039fa00e5b381aa74ee +EBUILD swift-2020.1.9999.ebuild 3552 BLAKE2B 05fb421532a000eaa46dba8b41cde74da2423bec06cf7c596159f44efc21983eb9561aa0625b8b7300376b1c01442d17c554ce1cbab74a5d77e01fa70a0aa524 SHA512 8f337d966dee28ae4e42b99c5adbfb824c3af2094836d4e25eeeba7f2de796278d42763a8e9e425471858163b2e1adb4497149b6a7e40607209bb47145e556dc +EBUILD swift-2020.2.9999.ebuild 3553 BLAKE2B 3c493c7099d4be7105ef00b6fd2b8c8c5e0e1aa6f0f56299d9e3cd41779ee1a97df75154b6837201948065a7ebe113da3bb34d00a962b2a6e971e2999a0fb6c0 SHA512 3d4c9528e09c0b5374cac4f95a8f866ae30cc88e8e0091fd39c8e761606b60cfd85d22577340f85ce38fac7ca06359c698a6e4b335ed2f59f190dca360280af0 +EBUILD swift-2021.1.9999.ebuild 3643 BLAKE2B 0d8de5d8a465c21e2e39314cbaab8ecd88e2040b6dfc1abb1f4f52855fe3e21a510d236231dd6d167a1b69c888573a869cb04cc1d0a34af6980b6ea28e3f3b2d SHA512 e404553e06de853322088268c90042b67c3c0dd34f81a741aebe57c46718042ea8b2df948c6c4a120c224486dde9b9e189a315774cad41a176b9f7e6d8571b8c MISC metadata.xml 758 BLAKE2B 8b1f494e6c40f469c01b494154d32702dc9b848939ea67005d8065c39661fcb97b5ca9cdee524ca66f0e74af5f9c522ca236b628a9b0289eef4f808e5f32461e SHA512 94a6af6b29a7f968d1e23a70decb908b9de10f792f1bd0711b95ea18abf59595d42017da6f278ed4991695ebbe0941d8907c160412e20758697597179fc3bb19 diff --git a/sys-cluster/swift/swift-2.25.1.ebuild b/sys-cluster/swift/swift-2.25.1.ebuild index 4b3308065970..38030d0f34f9 100644 --- a/sys-cluster/swift/swift-2.25.1.ebuild +++ b/sys-cluster/swift/swift-2.25.1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_7 ) -inherit distutils-r1 eutils linux-info +inherit distutils-r1 linux-info DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" HOMEPAGE="https://launchpad.net/swift" diff --git a/sys-cluster/swift/swift-2.26.0.ebuild b/sys-cluster/swift/swift-2.26.0.ebuild index b31a3f9eed76..eb0e61b3e73e 100644 --- a/sys-cluster/swift/swift-2.26.0.ebuild +++ b/sys-cluster/swift/swift-2.26.0.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_7 python3_8 ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 eutils linux-info +inherit distutils-r1 linux-info DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" HOMEPAGE="https://launchpad.net/swift" diff --git a/sys-cluster/swift/swift-2.27.0.ebuild b/sys-cluster/swift/swift-2.27.0.ebuild new file mode 100644 index 000000000000..35794a21e22a --- /dev/null +++ b/sys-cluster/swift/swift-2.27.0.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_8 python3_9 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 linux-info + +DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" +HOMEPAGE="https://launchpad.net/swift" +if [[ ${PV} == *9999 ]];then + inherit git-r3 + EGIT_REPO_URI="https://github.com/openstack/swift.git" + EGIT_BRANCH="stable/victoria" +else + SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="account container doc +memcached +object proxy" +REQUIRED_USE="|| ( proxy account container object )" + +CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND}" +RDEPEND=" + ${CDEPEND} + >=dev-python/eventlet-0.25.0[${PYTHON_USEDEP}] + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + >=dev-python/netifaces-0.8[${PYTHON_USEDEP}] + !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}] + !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}] + >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}] + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + dev-python/pyxattr[${PYTHON_USEDEP}] + >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}] + >=dev-python/cryptography-2.0.2[${PYTHON_USEDEP}] + memcached? ( net-misc/memcached ) + net-misc/rsync[xattr] + acct-user/swift + acct-group/swift" + +pkg_pretend() { + linux-info_pkg_setup + CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR + ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR + ~ZFS" + if linux_config_exists; then + for module in ${CONFIG_CHECK}; do + linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" + done + fi +} + +src_prepare() { + sed -i 's/xattr/pyxattr/g' requirements.txt || die + sed -i '/^hacking/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + keepdir /etc/swift + insinto /etc/swift + + newins "etc/swift.conf-sample" "swift.conf" + newins "etc/rsyncd.conf-sample" "rsyncd.conf" + newins "etc/mime.types-sample" "mime.types-sample" + newins "etc/memcache.conf-sample" "memcache.conf-sample" + newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" + newins "etc/dispersion.conf-sample" "dispersion.conf-sample" + + if use proxy; then + newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" + newins "etc/proxy-server.conf-sample" "proxy-server.conf" + if use memcached; then + sed -i '/depend/a\ need memcached' "${D}/etc/init.d/swift-proxy" + fi + fi + if use account; then + newinitd "${FILESDIR}/swift-account.initd" "swift-account" + newins "etc/account-server.conf-sample" "account-server.conf" + fi + if use container; then + newinitd "${FILESDIR}/swift-container.initd" "swift-container" + newins "etc/container-server.conf-sample" "container-server.conf" + fi + if use object; then + newinitd "${FILESDIR}/swift-object.initd" "swift-object" + newins "etc/object-server.conf-sample" "object-server.conf" + newins "etc/object-expirer.conf-sample" "object-expirer.conf" + fi + + if use doc; then + doman doc/manpages/* + dodoc -r doc/{s3api,saio,source} + fi + + fowners root:swift "/etc/swift" + fperms 0750 /etc/swift +} + +pkg_postinst() { + elog "Openstack swift will default to using insecure http unless a" + elog "certificate is created in /etc/swift/cert.crt and the associated key" + elog "in /etc/swift/cert.key. These can be created with the following:" + elog " * cd /etc/swift" + elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key" +} diff --git a/sys-cluster/swift/swift-2020.1.9999.ebuild b/sys-cluster/swift/swift-2020.1.9999.ebuild index aa56a1fc1e64..aa87f6fac62e 100644 --- a/sys-cluster/swift/swift-2020.1.9999.ebuild +++ b/sys-cluster/swift/swift-2020.1.9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_7 ) -inherit distutils-r1 eutils linux-info +inherit distutils-r1 linux-info DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" HOMEPAGE="https://launchpad.net/swift" diff --git a/sys-cluster/swift/swift-2020.2.9999.ebuild b/sys-cluster/swift/swift-2020.2.9999.ebuild index 084afc372ec6..b24cf5f48802 100644 --- a/sys-cluster/swift/swift-2020.2.9999.ebuild +++ b/sys-cluster/swift/swift-2020.2.9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_7 python3_8 ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 eutils linux-info +inherit distutils-r1 linux-info DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" HOMEPAGE="https://launchpad.net/swift" diff --git a/sys-cluster/swift/swift-2021.1.9999.ebuild b/sys-cluster/swift/swift-2021.1.9999.ebuild new file mode 100644 index 000000000000..bb3c5496848d --- /dev/null +++ b/sys-cluster/swift/swift-2021.1.9999.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_8 python3_9 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 linux-info + +DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" +HOMEPAGE="https://launchpad.net/swift" +if [[ ${PV} == *9999 ]];then + inherit git-r3 + EGIT_REPO_URI="https://github.com/openstack/swift.git" + EGIT_BRANCH="stable/wallaby" +else + SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="account container doc +memcached +object proxy" +REQUIRED_USE="|| ( proxy account container object )" + +CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND}" +RDEPEND=" + ${CDEPEND} + >=dev-python/eventlet-0.25.0[${PYTHON_USEDEP}] + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + >=dev-python/netifaces-0.8[${PYTHON_USEDEP}] + !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}] + !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}] + >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}] + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + dev-python/pyxattr[${PYTHON_USEDEP}] + >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}] + >=dev-python/cryptography-2.0.2[${PYTHON_USEDEP}] + memcached? ( net-misc/memcached ) + net-misc/rsync[xattr] + acct-user/swift + acct-group/swift" + +pkg_pretend() { + linux-info_pkg_setup + CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR + ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR + ~ZFS" + if linux_config_exists; then + for module in ${CONFIG_CHECK}; do + linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" + done + fi +} + +src_prepare() { + sed -i 's/xattr/pyxattr/g' requirements.txt || die + sed -i '/^hacking/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + keepdir /etc/swift + insinto /etc/swift + + newins "etc/swift.conf-sample" "swift.conf" + newins "etc/rsyncd.conf-sample" "rsyncd.conf" + newins "etc/mime.types-sample" "mime.types-sample" + newins "etc/memcache.conf-sample" "memcache.conf-sample" + newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" + newins "etc/dispersion.conf-sample" "dispersion.conf-sample" + + if use proxy; then + newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" + newins "etc/proxy-server.conf-sample" "proxy-server.conf" + if use memcached; then + sed -i '/depend/a\ need memcached' "${D}/etc/init.d/swift-proxy" + fi + fi + if use account; then + newinitd "${FILESDIR}/swift-account.initd" "swift-account" + newins "etc/account-server.conf-sample" "account-server.conf" + fi + if use container; then + newinitd "${FILESDIR}/swift-container.initd" "swift-container" + newins "etc/container-server.conf-sample" "container-server.conf" + fi + if use object; then + newinitd "${FILESDIR}/swift-object.initd" "swift-object" + newins "etc/object-server.conf-sample" "object-server.conf" + newins "etc/object-expirer.conf-sample" "object-expirer.conf" + fi + + if use doc; then + doman doc/manpages/* + dodoc -r doc/{s3api,saio,source} + fi + + fowners root:swift "/etc/swift" + fperms 0750 /etc/swift +} + +pkg_postinst() { + elog "Openstack swift will default to using insecure http unless a" + elog "certificate is created in /etc/swift/cert.crt and the associated key" + elog "in /etc/swift/cert.key. These can be created with the following:" + elog " * cd /etc/swift" + elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key" +} -- cgit v1.2.3