diff options
Diffstat (limited to 'sys-cluster/swift')
-rw-r--r-- | sys-cluster/swift/Manifest | 2 | ||||
-rw-r--r-- | sys-cluster/swift/swift-2.16.0.ebuild | 114 |
2 files changed, 116 insertions, 0 deletions
diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest index 5e80ae286e5d..d5264492c580 100644 --- a/sys-cluster/swift/Manifest +++ b/sys-cluster/swift/Manifest @@ -4,8 +4,10 @@ AUX swift-object.initd 862 SHA256 758efeedb3eea1fa6a8a030a194307a45ed604d197d2f8 AUX swift-proxy.initd 1379 SHA256 3be32a94fa09a0d8de2113da8e6f32a557814596038122ceec1eb9f9282e9f6c SHA512 dd32e4249686b51d2ed6add8e2e91eb9e520c662ebdf068f68b4e52faf4d508d3c87e996c6c2f7ba2a7d1f5fdf639d08e1e6878cd4c9918408e007ccbd7c84ec WHIRLPOOL ec94804328502de8e799bc245ac301e8b045979f5b5afb9a52328a5810b86c0bff1ad781ec68dea3bacc184ccdc0ef550e30abeed55334ff8275f9484c8bded2 DIST swift-2.13.1.tar.gz 1940686 SHA256 785a098b93eceeb745fe85bafba8a8bda20a6aec64f76fb9e4d58bb671eb2bab SHA512 6f08239bbeebfd213d2d7bb23c83507bf033288bb5125f5fd7f37517d8b3ad0b050220c1ad03632c1ab4723a98a9068b146e38c360e6786159a6f8638f4d5d79 WHIRLPOOL 016ddab1201c0895b00b05a1c5a84628e3f69f306780e730ada5c8cae63e75c0959cec8be8c170abba42ea6b63bd32dd5ed6d9b6d37f72534c3a05f3c2cea4e4 DIST swift-2.15.1.tar.gz 2429235 SHA256 f7f03fe30f845655bb15dfc0850b13a38069a555ea2c23b2cf40924559031409 SHA512 8b01831c6c9103953a3dd61fbaf0b18287af0ee3a2e4be376352266e8442bea54bcd32e7e6de89376feb5e492c5b49f623b8eda5e5ea3e58fe0dcea1547bc1ac WHIRLPOOL 7debf87925504bbafa453e63493c2777b8dbd93b35e3ecc4454f300008f4870da45a9e77e0b8152b02d83bcdd07731dfd59fdd14e2bdd5116c967397b71a3a88 +DIST swift-2.16.0.tar.gz 2466084 SHA256 d2ece3a8f2435a12bd179efcc1f479c90d4a55f3a7e5517b6378b00ba0e512b9 SHA512 db67ee43931872dae9c8f7ff5732d0e075922e73a3660815f1ccb11a2310b94f887e293e9e5d4b1dda13c687365b7433ea9c575b209892f488647aed1a6f9696 WHIRLPOOL d24c336811b336dd416b04edcaf7104cf960981859754d35d72fa47fe3a6a6d2ef7dcece7bd718806073a530ad7bb303021265e1a8b9f9bb88dc0ecae7c1d88c EBUILD swift-2.13.1-r1.ebuild 3698 SHA256 26cada26b84e615fb9ea3c6e27b0296ec1c1e08925b2b924d56625ef3d38f5de SHA512 fafcb23cdce1866d55f8ba8af42896da5b9cd47b667066da9da967ddd8f82388d49af28e29e2d78306bfa77bd1c67364ece90fb4f605e8df491b7dc8d55a9ef6 WHIRLPOOL 44fb91200d4a4446d5773c2ac6e189da376802290d5affede36a20dc3edbf970ddf7831a70ed069b554b6bb9aeb780c29f7f8b0a0ede7c9ede0feaf4c9dbc5d3 EBUILD swift-2.15.1-r1.ebuild 3698 SHA256 26cada26b84e615fb9ea3c6e27b0296ec1c1e08925b2b924d56625ef3d38f5de SHA512 fafcb23cdce1866d55f8ba8af42896da5b9cd47b667066da9da967ddd8f82388d49af28e29e2d78306bfa77bd1c67364ece90fb4f605e8df491b7dc8d55a9ef6 WHIRLPOOL 44fb91200d4a4446d5773c2ac6e189da376802290d5affede36a20dc3edbf970ddf7831a70ed069b554b6bb9aeb780c29f7f8b0a0ede7c9ede0feaf4c9dbc5d3 +EBUILD swift-2.16.0.ebuild 3700 SHA256 abc9ff4802944c885bf07276d2a537a52bd62a78f6923089c9eba65e2264f679 SHA512 e9826ed316f406dc90f2081e7b39bae6a394c71b468864f5d19f44e4b6184939e7b00b1b0333d9e730dd8864fccc66b3b51054794fcf9ff03a6ea46a57e4da3d WHIRLPOOL 4bdbde31ced295be2222723db7ee2c3e0baf0d11dca8d52995d41a83e03458ec5aaac22ea5e92dd456ad0a2306ab01a7c44fdee257505cb0b1bc3f8ec1342106 EBUILD swift-2017.1.9999.ebuild 3712 SHA256 e9733f0d363428d162e0ee79fc1c106fbcf62e1c4299c2028f505196d7f587ee SHA512 9ebee6f9ada811dbb326c907865508bb5759ba0da0548b1b246cf79c8489c1b4f04646bed5d655a12544c8e9073d73f4589fd7ce635829fe4e2623e563767178 WHIRLPOOL 5292ee88dfb1e41b10f42d7a4b823ed15e2efc56a5a8c8a8c6a61d8463e988143d22cd62399ac2477d7b43520e53864d892955fcf7fdf8565a613932e5c6d2bd EBUILD swift-2017.2.9999.ebuild 3711 SHA256 09843cc20d29895885787087eab92ce7320996a3ca321e0c40106ec65f3a94b3 SHA512 9aaf45d59410e93fe55c9aacdd2c0de697ce6d076af71b703b7c51df14eecf5fb1edc0d0e62a95240092a624f586a7e79167b33688087a2363208f22f4191bff WHIRLPOOL d0afaf67280078184dec01646edf7f2b152154c740a15b5e921e2c2ef6f5ca1ef6cca8f4f0fd288440fb5fa36df5a5970b0c757a1cc8d3374fc43da694ac0090 MISC ChangeLog 8171 SHA256 73f547e590b0be08d84dbfc132ab9f8a64d4aac685465be669426ff33dc5afe7 SHA512 b4ed6419e4ec5997e19f59496c57d8a303f4407643e8834850e5aa9a242df669a141581e8c60d06b847f73de4d53118834730e50eb3d962ef007305b49b3b1bc WHIRLPOOL 8eadc21035afae4d00a5da4a67959bb650ecc197e2cb2dada5b1507126a3cdff907c3212026becb4ded9480be147f3e8309a95cc47d5b22bb7a43d678d7d6815 diff --git a/sys-cluster/swift/swift-2.16.0.ebuild b/sys-cluster/swift/swift-2.16.0.ebuild new file mode 100644 index 000000000000..e12610e3dbdc --- /dev/null +++ b/sys-cluster/swift/swift-2.16.0.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils linux-info user + +DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" +HOMEPAGE="https://launchpad.net/swift" +SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="proxy account container object +memcached" +REQUIRED_USE="|| ( proxy account container object )" + +CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${CDEPEND}" + +RDEPEND=" + ${CDEPEND} + >=dev-python/dnspython-1.14.0:0[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.17.4[${PYTHON_USEDEP}] + >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}] + >=dev-python/netifaces-0.5[${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/six-1.9.0[${PYTHON_USEDEP}] + dev-python/pyxattr[${PYTHON_USEDEP}] + >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.6.0[${PYTHON_USEDEP}] + !~dev-python/cryptography-2.0[${PYTHON_USEDEP}] + memcached? ( net-misc/memcached ) + net-misc/rsync[xattr]" + +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 +} + +pkg_setup() { + enewuser swift + enewgroup swift +} + +src_prepare() { + sed -i 's/xattr/pyxattr/g' requirements.txt || die + sed -i '/^hacking/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +src_test () { + # https://bugs.launchpad.net/swift/+bug/1249727 + find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die + SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die +} + +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 + + fowners root:swift "/etc/swift" || die "fowners failed" + 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" +} |