From: "Petr Vaněk" <arkamar@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/coturn/
Date: Thu, 31 Oct 2024 15:26:15 +0000 (UTC) [thread overview]
Message-ID: <1730388314.12afa9d5fca2b23b7b5bfabab88d46b3c5b17bbc.arkamar@gentoo> (raw)
commit: 12afa9d5fca2b23b7b5bfabab88d46b3c5b17bbc
Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 31 13:21:56 2024 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 15:25:14 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12afa9d5
net-im/coturn: add 4.6.2
- EAPI bump
- correct deps
- clean configuration phase
Closes: https://bugs.gentoo.org/835852
Closes: https://bugs.gentoo.org/880095
Closes: https://bugs.gentoo.org/912283
Closes: https://bugs.gentoo.org/926075
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
net-im/coturn/Manifest | 1 +
net-im/coturn/coturn-4.6.2.ebuild | 100 ++++++++++++++++++++++++++++++++++++++
2 files changed, 101 insertions(+)
diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index b7be62479570..533ebcb9922c 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,2 +1,3 @@
DIST coturn-4.5.2.tar.gz 442745 BLAKE2B c18d5f5cfedd600875c0bfa08b874ef6316a5aa9af34c27e2901825da412b794d437e08f0706f9651bdf6d3d19e151486af39a42f2326c7ab6bb802d33fd0ba4 SHA512 00e86a3a273a8e4e69deaefd338bdd6c44739a807f21a72a2d68efc089053e16efd1d5b34b0c6dea7a0fa2b66f70821d8c3e1107561e1f08dfac2c93933a6121
DIST coturn-4.6.0.tar.gz 474423 BLAKE2B b70ecd1f333f4f9f37adcab6f5fd3406aa0eb962488b7cae4a30c9339cf7b11b2bfedd1fa70bd3b0c32bf82702d39eb22278506521f71e0cb6aaadee9d3c3d05 SHA512 a80ea1b8d9c78b8f9fc632517a0246cb0d2d4ff21c59d53827f026fb3a145a01b3bec637af94a96b525c35251cb5e9e209ba7f368f08e12ef61220bcb784637c
+DIST coturn-4.6.2.tar.gz 506275 BLAKE2B 0755e5ab8a5aa87606a604f7ebda81dfd1e5ae04e394316d841954f2d45caafccab43c17aee6de241b7b3e8483a4f7b54f68b915921b36621929d60127d1084b SHA512 ab8457921952a00b34111c03f2e5a2a9035977566270fdf9c8b9b777346645a8b233574134c0ef1c3aa2cf84bd89fbc82648678144c68ac0dff1712ce503b731
diff --git a/net-im/coturn/coturn-4.6.2.ebuild b/net-im/coturn/coturn-4.6.2.ebuild
new file mode 100644
index 000000000000..0f909893645e
--- /dev/null
+++ b/net-im/coturn/coturn-4.6.2.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs systemd tmpfiles
+
+DESCRIPTION="coturn TURN server project"
+HOMEPAGE="https://github.com/coturn/coturn"
+
+if [[ ${PV} == *9999 ]]; then
+ EGIT_REPO_URI="https://github.com/coturn/coturn.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/coturn/coturn/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="mongodb mysql postgres redis sqlite"
+
+DEPEND="
+ >dev-libs/libevent-2.1.8:=[ssl]
+ dev-libs/openssl:=
+ mongodb? (
+ dev-libs/libbson
+ dev-libs/mongo-c-driver
+ )
+ mysql? ( dev-db/mysql-connector-c:= )
+ postgres? ( dev-db/postgresql:* )
+ redis? ( dev-libs/hiredis:= )
+ sqlite? ( dev-db/sqlite:3 )
+"
+RDEPEND="
+ ${DEPEND}
+ acct-group/turnserver
+ acct-user/turnserver
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
+)
+
+src_configure() {
+ sed -e '/MANPREFIX/s:/man/:/:' \
+ -e '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca \${DESTDIR}${EXAMPLESDIR}' \
+ -e '/INSTALL_STATIC_LIB/d' \
+ -i "Makefile.in" || die "sed for Makefile.in failed"
+
+ sed -e 's:#log-file=/var/tmp/turn.log:log-file=/var/log/turnserver.log:' \
+ -e 's:#simple-log:simple-log:' \
+ -i "examples/etc/turnserver.conf" || die "sed for turnserve.conf 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
+
+ tc-export CC
+
+ export ARCHIVERCMD="$(tc-getAR) -r"
+ export PKGCONFIG="$(tc-getPKG_CONFIG)"
+ export DOCSDIR="/usr/share/doc/${PF}"
+
+ econf $(use_with sqlite)
+}
+
+src_install() {
+ default
+
+ keepdir /var/lib/db
+
+ 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
+
+ elog "You need to copy ${EROOT}/etc/turnserver.conf.default to"
+ elog "${EROOT}/etc/turnserver.conf and do your settings there."
+}
next reply other threads:[~2024-10-31 15:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 15:26 Petr Vaněk [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-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-12-17 18:01 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=1730388314.12afa9d5fca2b23b7b5bfabab88d46b3c5b17bbc.arkamar@gentoo \
--to=arkamar@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