diff options
Diffstat (limited to 'net-im/coturn')
-rw-r--r-- | net-im/coturn/Manifest | 2 | ||||
-rw-r--r-- | net-im/coturn/coturn-4.5.0.8.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest index a285bd1e166d..10891a2ac101 100644 --- a/net-im/coturn/Manifest +++ b/net-im/coturn/Manifest @@ -3,6 +3,8 @@ AUX coturn.service 470 BLAKE2B 21b1cc005b5b91a8cb80b05a45afc16d73ad88e5b0a851294 AUX logrotate.coturn 345 BLAKE2B 26edd2ad44d947bf943757fb3e3255cafea64fac5d495402bbc3a7088ed6ffd822cc8f07010669f9faf856eb8a893d9ba9ab48d4b417f8c3fd27772ffb71cae0 SHA512 ebfadc7e6435061b7120baffce76a65c224768ab85e59e3b8cd140e394fa6e4eaa258eccce76f3152fd6a1adab0c84e39feb51663c76359401e04df4d8db2c1d AUX turnserver.init 636 BLAKE2B b73a5c43ea89243a77039688822f8188cef1d49f5b9ba7aaf95516ed08f9fe7ba876083c556dd8a58d2c79b0c9b1d28039f2e1893ffd58b1f1b8508f5f7903b3 SHA512 bdfad74908009edce899298aca755cead6bcab77663893d0fb4c83134d5d5eb569493be6ae39c4654ddb0079d6bfa259e3932fbb275eae8f6af13c7c197776a7 DIST coturn-4.5.0.7.tar.gz 396579 BLAKE2B ac66fbac772ad4b182f0c4b64178a780bfb364e4c1cf105fc340ac60da0a4c2e2b186c3ce08cade347a5d1a4b233bfed604db74eacd81967c3090e00bc1e36e8 SHA512 4e6e4efb456449752b2cd242c9be7c5dc2298472e338293d3de21c3a9da968f2f304625663372bb4d857c092c694aa4681630773a46e4928b9c60c69378adacc +DIST coturn-4.5.0.8.tar.gz 403711 BLAKE2B 1bc6a145117ffb3a5ea7d6730524d0ad8857755a3d8a59588ec61df9fcf21c1c68a15efb588c73f659c4e855cb7fdce145a83a8a0e10c0bfae2d0a54d1120475 SHA512 2bf32f72223bcb1ee57254def423a6f6d385df8e20661f79a789b08324d432269eeeb4a6a551769f1f9147447bcf1b4471fc634e9d91ca979947119ae76cec9e EBUILD coturn-4.5.0.7.ebuild 1929 BLAKE2B c5a52b53da3a986076af1c9b79ec4d5ca83199b058b4bfedf855fb7498b799bfa5f4a29f337b6a4bfc9830aa7808be3d12267f43f38861c4163f175771e013f2 SHA512 30cdbe95fbcf2e17979c898c132835928b6508e96fa4f372015e5048bf14cadd0000317cfbdf403023361bda8045177b7e89d55e607e9aa6d7e0450f10ac7c00 +EBUILD coturn-4.5.0.8.ebuild 1926 BLAKE2B 824aece8466077659677411a9c4b9a8829bab5f6a09211b032b8750adf60b12acee5a3cab514aff5e205ba478fb1f02101c6ff567e20a61ce7b7fe301df82eaf SHA512 952c7400c2b684d6eb752a4452e355b213aa7d5afde223066ed36da49f01685ae0f5a341b137b7fd488b15c2237ffa0c8bfae3745ca42de4d9e86930e8219e7d EBUILD coturn-9999.ebuild 1929 BLAKE2B c5a52b53da3a986076af1c9b79ec4d5ca83199b058b4bfedf855fb7498b799bfa5f4a29f337b6a4bfc9830aa7808be3d12267f43f38861c4163f175771e013f2 SHA512 30cdbe95fbcf2e17979c898c132835928b6508e96fa4f372015e5048bf14cadd0000317cfbdf403023361bda8045177b7e89d55e607e9aa6d7e0450f10ac7c00 MISC metadata.xml 497 BLAKE2B 522928095883e077064a9971e45e4e644461ce6d7a07720920a7bc96afc326b6ab337aa64704518a866f0df276f5bc284660e81561874631ff84c395035051dd SHA512 62689abd67427c6dd3de86c139b2cb94f7dc3ba8c8f9d3fced5b91b6de36cd30caa1a7805c0dc3aa64fa35e154e4509a607ef7eae62fe6894084383b2226b8bb diff --git a/net-im/coturn/coturn-4.5.0.8.ebuild b/net-im/coturn/coturn-4.5.0.8.ebuild new file mode 100644 index 000000000000..029e6d5d704e --- /dev/null +++ b/net-im/coturn/coturn-4.5.0.8.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils user systemd tmpfiles +DESCRIPTION="coturn TURN server project" +HOMEPAGE="https://github.com/${PN}/${PN}" + +if [ ${PV} = 9999 ]; then + KEYWORDS="" + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" + inherit git-r3 + DEPEND="dev-vcs/git" +# S="${WORKDIR}/${PN}-master" +else + KEYWORDS="~x86 ~amd64" + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="mongodb mysql postgres redis sqlite" +RDEPEND="|| ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl,-libressl] >dev-libs/libevent-2.1.8[ssl,libressl] ) + mongodb? ( dev-libs/mongo-c-driver ) + mysql? ( dev-db/mysql-connector-c ) + postgres? ( dev-db/postgresql:* ) + redis? ( dev-libs/hiredis ) + sqlite? ( dev-db/sqlite )" + +DEPEND="${RDEPEND}" + +src_configure() { + sed 's:#log-file=/var/tmp/turn.log:log-file=/var/log/turnserver.log:' \ + -i "${S}/examples/etc/turnserver.conf" || die "sed for logdir failed" + sed 's:#simple-log:simple-log:' -i "${S}/examples/etc/turnserver.conf" \ + || die "sed for simple-log failed" + if ! use mongodb; then + export TURN_NO_MONGO=yes + fi + if ! use mysql; then + export TURN_NO_MYSQL=yes + fi + if ! use postgres; then + export TURN_NO_PQ=yes + fi + if ! use redis; then + export TURN_NO_HIREDIS=yes + fi + if ! use sqlite; then + export TURN_NO_SQLITE=yes + fi + + econf $(use_with sqlite) +} + +src_install() { + default + newinitd "${FILESDIR}/turnserver.init" turnserver + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate.${PN}" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + dotmpfiles "${FILESDIR}/${PN}.conf" +} + +pkg_postinst() { + tmpfiles_process "${PN}.conf" + enewgroup turnserver + enewuser turnserver -1 -1 -1 turnserver + elog "You need to copy /etc/turnserver.conf.default to" + elog "/etc/turnserver.conf and do your settings there." +} |