public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Schuerch" <nativemad@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/coturn/
Date: Mon, 17 Dec 2018 18:01:52 +0000 (UTC)	[thread overview]
Message-ID: <1545069693.acdebeecdd5eab99bec70c2760852370e38e6979.nativemad@gentoo> (raw)

commit:     acdebeecdd5eab99bec70c2760852370e38e6979
Author:     Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 17 17:58:25 2018 +0000
Commit:     Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
CommitDate: Mon Dec 17 18:01:33 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acdebeec

net-im/coturn: bump to 4.5.0.8

Package-Manager: Portage-2.3.49, Repoman-2.3.11
Signed-off-by: Andreas Schuerch <nativemad <AT> gentoo.org>

 net-im/coturn/Manifest              |  1 +
 net-im/coturn/coturn-4.5.0.8.ebuild | 71 +++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 79584dfa4d9..a8812e377e7 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1 +1,2 @@
 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

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


             reply	other threads:[~2018-12-17 18:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 18:01 Andreas Schuerch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-31 15:26 [gentoo-commits] repo/gentoo:master commit in: net-im/coturn/ Petr Vaněk
2024-10-31 15:26 Petr Vaněk
2024-10-31 15:26 Petr Vaněk
2024-04-28  1:03 Sam James
2022-03-23  1:24 Sam James
2021-05-01 18:07 Sam James
2021-02-26 12:52 Andreas Schuerch
2020-07-07  9:51 Andreas Schuerch
2020-06-25 10:45 Andreas Schuerch
2020-01-03 21:29 Andreas Schuerch
2020-01-03 11:07 Andreas Schuerch
2018-09-18 17:47 Andreas Schuerch
2018-09-18 17:23 Andreas Schuerch
2018-07-11 10:07 Andreas Schuerch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1545069693.acdebeecdd5eab99bec70c2760852370e38e6979.nativemad@gentoo \
    --to=nativemad@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox