From 5510d9d7d1c93c2ea71a2bd6f0666168808d5dd6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Mar 2018 04:54:42 +0000 Subject: gentoo resync : 18.03.2018 --- net-misc/crossbar/Manifest | 2 + net-misc/crossbar/crossbar-18.3.1.ebuild | 168 +++++++++++++++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 net-misc/crossbar/crossbar-18.3.1.ebuild (limited to 'net-misc/crossbar') diff --git a/net-misc/crossbar/Manifest b/net-misc/crossbar/Manifest index 276ecee61704..60c44a5a34a4 100644 --- a/net-misc/crossbar/Manifest +++ b/net-misc/crossbar/Manifest @@ -7,8 +7,10 @@ DIST crossbar-17.12.1.tar.gz 736982 BLAKE2B bd2af652d376bf8ffe6cc23b0a798bb905ce 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 +DIST crossbar-18.3.1.tar.gz 736736 BLAKE2B 546a7d4ff173928179eeff86aef50e3517067e6aede145a5185e891fe749e0e2c507b577ea3be8f416c5894e8c43db42d8ceaabbdc64823b305219c2f6277ff4 SHA512 cb85ba44054c59eecb751896c5f0d793ccc8990c9d00733de546512b7e500a90ef4042d49ec6f648ec3677687950fbee62208c9bbb6692de65df4f238a2414dc 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 +EBUILD crossbar-18.3.1.ebuild 6337 BLAKE2B 9dbba00431507fbfa0477b9736586fa357e0d0bdbb46d971be480bc49ff1ce842d79da8312be5524e11180791899c41fd1578cf723ac03ddbb76b9e12ce309f1 SHA512 a9d2b73e7a5bd1ed28e069209e72931f6b7f66199755317616ed378851ad689cc83b3d11efdb64bf719f6d00686a3e77933dc6b481e3421b03a60cfbdd63f4c9 MISC metadata.xml 861 BLAKE2B acef636c9c51de3530425dcf3ab31afe8300c3fcbe1615d374c52610647086324887e2fb97b7a2fc9aeae73c48f5742b67ee9190abab5b01f3f7e762ae286851 SHA512 90ce37e4764583a09f90e99c7010de5c1f2abff6837cef4255eee5d83f7d9de2f641812700fa180cdb0e0511d401cb1e160a721600efabc787fc2a32ac0b83bc diff --git a/net-misc/crossbar/crossbar-18.3.1.ebuild b/net-misc/crossbar/crossbar-18.3.1.ebuild new file mode 100644 index 000000000000..f651f274fa6d --- /dev/null +++ b/net-misc/crossbar/crossbar-18.3.1.ebuild @@ -0,0 +1,168 @@ +# 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" + +RDEPEND=" + >=dev-python/attrs-17.2.0[${PYTHON_USEDEP}] + >=dev-python/autobahn-18.3.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.9.0[${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}] + >=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 + + # 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 crossbar-18.3.1 the tor service capability and dependency are now built-in" + 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." +} -- cgit v1.2.3