commit:     3824bbabce1b156d659ee190635b52a1ce7f19c4
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 13 00:39:39 2018 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Mar 13 23:56:33 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3824bbab

net-misc/crossbar: Version bump

Package-Manager: Portage-2.3.13, Repoman-2.3.3

 net-misc/crossbar/Manifest               |   1 +
 net-misc/crossbar/crossbar-18.3.1.ebuild | 168 +++++++++++++++++++++++++++++++
 2 files changed, 169 insertions(+)

diff --git a/net-misc/crossbar/Manifest b/net-misc/crossbar/Manifest
index c129d90db93..1048f72fdfa 100644
--- a/net-misc/crossbar/Manifest
+++ b/net-misc/crossbar/Manifest
@@ -2,3 +2,4 @@ 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

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 00000000000..f651f274fa6
--- /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."
+}

Reply via email to