diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-21 19:03:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-21 19:03:35 +0000 |
commit | 0ebf740b9c9bc7c10ac41bea315ecc6c01c79166 (patch) | |
tree | 15bb76d57cfb8652fd2627a24007e0bb92ec4a99 /net-misc/crossbar | |
parent | 5b5df25227111ef465caf5c52bcfb66dac3219cd (diff) |
gentoo resync : 21.01.2018
Diffstat (limited to 'net-misc/crossbar')
-rw-r--r-- | net-misc/crossbar/Manifest | 2 | ||||
-rw-r--r-- | net-misc/crossbar/crossbar-17.12.1.ebuild | 171 |
2 files changed, 173 insertions, 0 deletions
diff --git a/net-misc/crossbar/Manifest b/net-misc/crossbar/Manifest index a13582d0e544..d17aa53ef075 100644 --- a/net-misc/crossbar/Manifest +++ b/net-misc/crossbar/Manifest @@ -3,9 +3,11 @@ AUX config.json.sample 1952 BLAKE2B cacdc1d03e28252f536d878e3c009310c29f8c321bb3 AUX crossbar-17.8.1-Revert-Torservices.patch 9679 BLAKE2B 6d00b84212a0ca5382cddccf1cae37ee94f4456e18e8a75591470612db1accf2a8aa8cd7a651d1f1cf8827ec9771a6648d5e0bd012cf6262e20dc898d9a1b363 SHA512 084c7a4f16ebc5e75fd1fca48f9df7edb78f65dd5e1402d993235e491c649f769eb5d26701ba651fb0f7e3b0d3c75fabdf649586bf0542ac890aa2671c6e99ae AUX crossbar-17.9.1-Revert-Torservices.patch 10253 BLAKE2B 00306f3c2f769bf13a64c06e38823f5856c1b3f6e073ec3da83a9a2a132f5abee8bb2edde7b83a09845575ac2850bc3b7a1ba95b98a7297d6716456eff454b3f SHA512 a550382b89dc7aa673ee1f2d90eda9cbc5006fa6a112aae70dc82863ec248300189a90ce6195b5fea755ad723e8a4a448762813a8e4c9d7d50bac404f72633ed AUX initd 788 BLAKE2B 7804bc7075c1994266cbf50c531c5627d3e62ae7b1e2c18f6ea2b5bae7f96dc568465f662fae4354a386be11eba0150b658eaaee8add4b74399770d23936e3d1 SHA512 1675727c294354ccc7e2582ea16be9d1f8b0f9c110a8f8e34aab03e052d54ed9134d801a123b5a82d6b40ec65c47cd925a1f7ef9dd91af75b1b12c4b7c19ad38 +DIST crossbar-17.12.1.tar.gz 736982 BLAKE2B bd2af652d376bf8ffe6cc23b0a798bb905ce835ba9282a276e1e5878d01a52370fd887f9e96339e4a2e45b89ca41918a936be7a010d9c1054a3c9f2a8361bd50 SHA512 082432f04fcf578012392d02ddafb4bcd6a61da4a1467a6ae767ca75293747cf84ee7bf27d1e2078e5c637c66b3fbd848b14cfc39eaefd1b98b5ad3b64c0a58d DIST crossbar-17.6.1.post3.tar.gz 725054 BLAKE2B 1c60ae9a29f9d2831dd219c30751c65c07639810c24ea27f35c1fb27fd55c6b97f225e9fef9bbb00c79233a52a5e7ae6f4a61020c028f697e3fbdec1ada41980 SHA512 c3efac2c7f7a41e6544eb98057afb249908453d6ddfb81c514f0705ed967374d50f844fe1a80395652b81a7c23abc90a03a0d6c88287f10cbfe99e64cb70919d DIST crossbar-17.8.1.tar.gz 1545668 BLAKE2B 812a4b423bf663386255332de2ab90afb4f0a44d205a193d71523e7fa0aba2bf1644b2136200c6ae4b1639de2764b7139ee6081a5167b21abc2bdec6400c5a60 SHA512 21ed2031ddebe93fcd4fcd01243b2aa8979444e833386db83b10d032cfc3c3f9d47cf638d4cf26eb2801e91892c85115fec91e0a6f071a619f014132663f6c32 DIST crossbar-17.9.1.tar.gz 730753 BLAKE2B 8fb93b017b6af8264aa828a6353d1c6f5fd7f224797504f67f77b5cf2759ada5f9609eb6815da96afadfc2bae90acb2837be19ed0896e1a8ce37ff384fcea367 SHA512 fee96e1c900c756536dc9bf6088c512a50accbae0e8010b7e058de8ed2ebb2f366e5d5051ab2f07517dd642f4d65c65e9b701b00d7bca1b9352c58f38f892563 +EBUILD crossbar-17.12.1.ebuild 6395 BLAKE2B 2a13a9a82ca3310fe6f09470e86c6dbe553461d5acc32243ad37e9a53d50e80991269df3e5212b958d71bf1ab5a2332240467889e595cbd89b46cfbaef19b8ba SHA512 53a2d820d44ece26b1e829ede44cd57ce44745e8a7ca6ef96422b152a7afcbe15a4083457c8cd598ab8489fa968803a8c40457db1511e115cdb31d13cdf8c15b EBUILD crossbar-17.6.1_p3-r1.ebuild 6035 BLAKE2B 39abc853f66fd6a8fbf5c948b9d7f79ed23c535ed9cf567f6d720d40eb3da1994e990112d847f2423d80fd5febde538e5a5320d56f427f9d8efa828807a4db57 SHA512 1d1b77f2774ce292744ad2475970fc8e14e07e2a8ecf5fe2452af1b59fd40b99a1ff035757435bfd4a192688d7a2005ce1f7e3087e9f7c34a312760a53fcacc3 EBUILD crossbar-17.8.1.ebuild 6442 BLAKE2B aafef7a28631b9b4176e4e06509daef26bfa69f0f0359bc0605d156eaa0feed8415b4fc4cc2803fbeba9957c0ef96f5e8a8e34ffe1c23af825a685ca049037ef SHA512 bcb29637b0171887e4b6088449b7ddc6cb7fdc4f072b9fbe0dbe4fe76b65f5ab87d03def949864650fe7a2397b5f99a0306a13b86e8bd607c3d0a25a77a42a13 EBUILD crossbar-17.9.1.ebuild 6392 BLAKE2B de6a91d336ccc9f731247ab580efcb95b65dcca63e3523e4ed5c545987801246a8853ea42544e834c23525ea3dd74b1b2a0b31b2bb7d754e5a2b826b2b240141 SHA512 50af397430d523c69880a16ea37ca0c412927109532f04e10c0a7743ad0b06b1200cbc13a33b45f2965c4558539d124c58a12dfda09110ea310de034dd7abd63 diff --git a/net-misc/crossbar/crossbar-17.12.1.ebuild b/net-misc/crossbar/crossbar-17.12.1.ebuild new file mode 100644 index 000000000000..973e28aa48d3 --- /dev/null +++ b/net-misc/crossbar/crossbar-17.12.1.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit user systemd distutils-r1 + +MY_PV="${PV}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Crossbar.io - The Unified Application Router for the twisted framework" +HOMEPAGE="http://crossbar.io/ https://github.com/crossbario/crossbar https://pypi.python.org/pypi/crossbar" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test tor" + +RDEPEND=" + >=dev-python/attrs-17.2.0[${PYTHON_USEDEP}] + >=dev-python/autobahn-17.10.1[${PYTHON_USEDEP}] + >=dev-python/bitstring-3.1.5[${PYTHON_USEDEP}] + >=dev-python/cbor-1.0.0[${PYTHON_USEDEP}] + >=dev-python/click-6.7[${PYTHON_USEDEP}] + >=dev-python/constantly-15.1.0[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.9.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/enum34-1.1.6[${PYTHON_USEDEP}]' python2_7) + >=dev-python/hyper-h2-3.0.1[${PYTHON_USEDEP}] + =dev-python/idna-2.5[${PYTHON_USEDEP}] + >=dev-python/incremental-17.5.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.18[${PYTHON_USEDEP}]' python2_7) + >=dev-python/jinja-2.9.6[${PYTHON_USEDEP}] + >=dev-python/lmdb-0.92[${PYTHON_USEDEP}] + >=dev-python/mistune-0.7.4[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.19[${PYTHON_USEDEP}] + >=dev-python/priority-1.3.0[${PYTHON_USEDEP}] + >=dev-python/psutil-5.2.2[${PYTHON_USEDEP}] + >=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}] + >=dev-python/pyasn1-modules-0.0.9[${PYTHON_USEDEP}] + >=dev-python/pygments-2.2.0[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-17.1.0[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.3[${PYTHON_USEDEP}] + >=dev-python/py-ubjson-0.9.0[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.1.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.12[${PYTHON_USEDEP}] + >=dev-python/sdnotify-0.3.1[${PYTHON_USEDEP}] + >=dev-python/service_identity-17.0.0[${PYTHON_USEDEP}] + >=dev-python/setproctitle-1.1.10[${PYTHON_USEDEP}] + >=dev-python/setuptools-36.0.1[${PYTHON_USEDEP}] + >=dev-python/shutilwhich-1.1.0[${PYTHON_USEDEP}] + >=dev-python/treq-17.3.1[${PYTHON_USEDEP}] + >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}] + >=dev-python/txaio-2.8.2[${PYTHON_USEDEP}] + >=dev-python/u-msgpack-2.4.1[${PYTHON_USEDEP}] + >=dev-python/watchdog-0.8.3[${PYTHON_USEDEP}] + >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] + tor? ( >=dev-python/txtorcon-0.19.3[${PYTHON_USEDEP}] ) +" +DEPEND=" + !dev-python/crossbar + >=dev-python/setuptools-36.0.1[${PYTHON_USEDEP}] + >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}] + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" +DOCS=( + README.rst LICENSE-FOR-API LICENSE COPYRIGHT +) + +S="${WORKDIR}"/${MY_P} + +python_prepare_all() { + # don't install the copyright, license... let dodoc do it + sed -e "s/^ data_files=.*//" -i setup.py || die + + if ! use tor; then + eapply "${FILESDIR}/${PN}-17.9.1-Revert-Torservices.patch" + sed -e "s/^txtorcon.*//" -i requirements-min.txt || die + fi + # remove these py2 deps from setuptools install_requires + # it is not filtered out for >=py3.4 and results in test fails + sed -e "s/^ipaddress.*//" -i requirements-min.txt || die + sed -e "s/^enum34.*//" -i requirements-min.txt || die + + distutils-r1_python_prepare_all +} + +pkg_setup() { + enewuser crossbar +} + +python_test() { + pushd "${TEST_DIR}" > /dev/null || die + /usr/bin/trial crossbar || die "Tests failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install_all() { + distutils-r1_python_install_all + + keepdir /var/lib/crossbar + insinto /var/lib/crossbar + doins "${FILESDIR}/config.json.sample" + + newconfd "${FILESDIR}/confd" crossbar + newinitd "${FILESDIR}/initd" crossbar +} + +pkg_posinst() { + einfo "For exapmle configurations and scripts" + einfo "See: https://github.com/crossbario/crossbar-examples" + + if [[ -n ${REPLACING_VERSIONS} ]]; then + ewarn + ewarn "Starting with net-misc/crossbar-17.6.1_p3-r1, more than one instance of crossbar" + ewarn "can be run simultaneously. Note that \"BASEDIR\" in the crossbar conf.d/crossbar file" + ewarn "is the common base directory for all instances. If you are migrating from an older" + ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." + ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance." + ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" + ewarn " ln --symbolic --relative /etc/init.d/crossbar /etc/init.d/crossbar.myinstance" + ewarn " rc-update add crossbar.myinstance default" + ewarn " /etc/init.d/crossbar.myinstance start" + ewarn "Systems using systemd can do the following:" + ewarn " systemctl enable crossbar@myinstance.service" + ewarn " systemctl enable crossbar.target" + ewarn " systemctl start crossbar.target" + fi +} + +pkg_config() { + local crossbar_path="/var/lib/crossbar" + local log_path="/var/log/crossbar" + einfo "This will prepare a new crossbar instance in ${crossbar_path}." + einfo "Press Control-C to abort." + + einfo "Enter the name for the new instance: " + read instance_name + [[ -z "${instance_name}" ]] && die "Invalid instance name" + + local instance_path="${crossbar_path}/${instance_name}" + local instance_log_path="${log_path}/${instance_name}" + + if [[ -e "${instance_path}" ]]; then + eerror "The instance with the specified name already exists:" + eerror "${instance_path}" + die "Instance already exists" + fi + + if [[ ! -d "${instance_path}" ]]; then + mkdir --parents "${instance_path}" || die "Unable to create directory ${crossbar_path}" + fi + chown --recursive crossbar "${instance_path}" || die "Setting permissions for instance failed" + cp "${crossbar_path}/config.json.sample" "${instance_path}/config.json" \ + || die "Moving sample configuration failed" + ln --symbolic --relative "/etc/init.d/crossbar" "/etc/init.d/crossbar.${instance_name}" \ + || die "Unable to create link to init file" + + if [[ ! -d "${instance_log_path}" ]]; then + mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" + fi + ln --symbolic --relative "${instance_log_path}/node.log" "${instance_path}/node.log" \ + || die "Unable to create link to log file" + + einfo "Successfully created a crossbar instance at ${instance_path}." + einfo "To change the default settings edit the config.json file in this directory." +} |