[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/, net-im/coturn/files/

2024-11-07 Thread Petr Vaněk
commit: cd0419b27573bf5dca336298305822a6435201c4
Author: Petr Vaněk  gentoo  org>
AuthorDate: Thu Nov  7 09:07:20 2024 +
Commit: Petr Vaněk  gentoo  org>
CommitDate: Thu Nov  7 09:08:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd0419b2

net-im/coturn: drop 4.6.0

Signed-off-by: Petr Vaněk  gentoo.org>

 net-im/coturn/Manifest  |   1 -
 net-im/coturn/coturn-4.6.0.ebuild   |  98 ---
 net-im/coturn/files/coturn-4.6.0-openssl3.patch | 356 
 3 files changed, 455 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index b3201c354154..e9b58ef076e4 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,2 +1 @@
-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.0.ebuild 
b/net-im/coturn/coturn-4.6.0.ebuild
deleted file mode 100644
index 92b69c62eba0..
--- a/net-im/coturn/coturn-4.6.0.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs systemd tmpfiles
-
-DESCRIPTION="coturn TURN server project"
-HOMEPAGE="https://github.com/coturn/coturn";
-
-if [[ ${PV} == * ]]; then
-   EGIT_REPO_URI="https://github.com/coturn/coturn.git";
-   inherit git-r3
-   #S="${WORKDIR}/${PN}-master"
-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"
-
-RDEPEND="
-   acct-group/turnserver
-   acct-user/turnserver
-   >dev-libs/libevent-2.1.8:=
-   dev-libs/openssl:=
-   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}"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
-   "${FILESDIR}"/${P}-openssl3.patch
-)
-
-src_configure() {
-   if [[ -n "${AR}" ]]; then
-   sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i 
"${S}/configure"
-   fi
-
-   sed 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed 
for mandir failed"
-   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"
-   sed '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca 
\${DESTDIR}${EXAMPLESDIR}' \
-   -i "${S}/Makefile.in" || die "sed for example ca 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/${PN}-${PV}"
-
-   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
-
-   elog "You need to copy ${EROOT}/etc/turnserver.conf.default to"
-   elog "${EROOT}/etc/turnserver.conf and do your settings there."
-}

diff --git a/net-im/coturn/files/coturn-4.6.0-openssl3.patch 
b/net-im/coturn/files/coturn-4.6.0-openssl3.patch
deleted file mode 100644
index 19b88048af50..
--- a/net-im/coturn/files/coturn-4.6.0-openssl3.patch
+++ /dev/null
@@ -1,356 +0,0 @@
-https://github.com/coturn/coturn/commit/9af9f6306ab73c3403f9e11086b1936e9148f7de
-https://github.com/coturn/coturn/commit/4ce784a8781ab086c150e2b9f5641b1a37fd9b31
-https://github.com/coturn/cotu

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2024-10-31 Thread Petr Vaněk
commit: 12afa9d5fca2b23b7b5bfabab88d46b3c5b17bbc
Author: Petr Vaněk  gentoo  org>
AuthorDate: Thu Oct 31 13:21:56 2024 +
Commit: Petr Vaněk  gentoo  org>
CommitDate: Thu Oct 31 15:25:14 2024 +
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  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 ..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} == * ]]; 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."
+}



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2024-10-31 Thread Petr Vaněk
commit: 594b221caa3554acf8f44fe1a3d2925b91b953a8
Author: Petr Vaněk  gentoo  org>
AuthorDate: Thu Oct 31 15:03:30 2024 +
Commit: Petr Vaněk  gentoo  org>
CommitDate: Thu Oct 31 15:25:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594b221c

net-im/coturn: drop 4.5.2-r1

Signed-off-by: Petr Vaněk  gentoo.org>

 net-im/coturn/Manifest   |  1 -
 net-im/coturn/coturn-4.5.2-r1.ebuild | 87 
 2 files changed, 88 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 533ebcb9922c..b3201c354154 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,3 +1,2 @@
-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.5.2-r1.ebuild 
b/net-im/coturn/coturn-4.5.2-r1.ebuild
deleted file mode 100644
index d3a3c8813604..
--- a/net-im/coturn/coturn-4.5.2-r1.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs systemd tmpfiles
-DESCRIPTION="coturn TURN server project"
-HOMEPAGE="https://github.com/coturn/coturn";
-
-if [ ${PV} =  ]; then
-   EGIT_REPO_URI="https://github.com/${PN}/${PN}.git";
-   inherit git-r3
-#  S="${WORKDIR}/${PN}-master"
-else
-   KEYWORDS="~amd64 ~x86"
-   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="acct-group/turnserver
-   acct-user/turnserver
-   >dev-libs/libevent-2.1.8:=
-   dev-libs/openssl:=
-   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}"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
-)
-
-src_configure() {
-   if [ -n "${AR}" ]; then
-   sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i 
"${S}/configure"
-   fi
-   sed 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed 
for mandir failed"
-   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"
-   sed '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca 
\${DESTDIR}${EXAMPLESDIR}' \
-   -i "${S}/Makefile.in" || die "sed for example ca 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/${PN}-${PV}"
-
-   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"
-   elog "You need to copy /etc/turnserver.conf.default to"
-   elog "/etc/turnserver.conf and do your settings there."
-}



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2024-10-31 Thread Petr Vaněk
commit: f119717434590921f9bc01419cda1b34def2c72b
Author: Petr Vaněk  gentoo  org>
AuthorDate: Thu Oct 31 15:02:56 2024 +
Commit: Petr Vaněk  gentoo  org>
CommitDate: Thu Oct 31 15:25:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1197174

net-im/coturn: sync live

Signed-off-by: Petr Vaněk  gentoo.org>

 net-im/coturn/coturn-.ebuild | 50 +---
 1 file changed, 26 insertions(+), 24 deletions(-)

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 8c10c10306aa..0f909893645e 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit toolchain-funcs systemd tmpfiles
 
@@ -11,47 +11,47 @@ HOMEPAGE="https://github.com/coturn/coturn";
 if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/coturn/coturn.git";
inherit git-r3
-   #S="${WORKDIR}/${PN}-master"
 else
SRC_URI="https://github.com/coturn/coturn/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
+   KEYWORDS="~amd64 ~arm64 ~x86"
 fi
 
 LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
 
-RDEPEND="
-   acct-group/turnserver
-   acct-user/turnserver
-   >dev-libs/libevent-2.1.8:=
+DEPEND="
+   >dev-libs/libevent-2.1.8:=[ssl]
dev-libs/openssl:=
-   mongodb? ( dev-libs/mongo-c-driver )
-   mysql?  ( dev-db/mysql-connector-c:= )
+   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 )
+   sqlite? ( dev-db/sqlite:3 )
+"
+RDEPEND="
+   ${DEPEND}
+   acct-group/turnserver
+   acct-user/turnserver
 "
-DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
"${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
-   "${FILESDIR}"/${P}-openssl3.patch
 )
 
 src_configure() {
-   if [[ -n "${AR}" ]]; then
-   sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i 
"${S}/configure"
-   fi
+   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 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed 
for mandir failed"
-   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"
-   sed '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca 
\${DESTDIR}${EXAMPLESDIR}' \
-   -i "${S}/Makefile.in" || die "sed for example ca 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
@@ -73,7 +73,7 @@ src_configure() {
 
export ARCHIVERCMD="$(tc-getAR) -r"
export PKGCONFIG="$(tc-getPKG_CONFIG)"
-   export DOCSDIR="/usr/share/doc/${PN}-${PV}"
+   export DOCSDIR="/usr/share/doc/${PF}"
 
econf $(use_with sqlite)
 }
@@ -81,6 +81,8 @@ src_configure() {
 src_install() {
default
 
+   keepdir /var/lib/db
+
newinitd "${FILESDIR}/turnserver.init" turnserver
 
insinto /etc/logrotate.d



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2024-04-27 Thread Sam James
commit: c6da9509749afd048901e147715d74dbdee963f3
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 28 01:02:50 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 28 01:02:50 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6da9509

net-im/coturn: Keyword 4.6.0 arm64, #930670

Signed-off-by: Sam James  gentoo.org>

 net-im/coturn/coturn-4.6.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-im/coturn/coturn-4.6.0.ebuild 
b/net-im/coturn/coturn-4.6.0.ebuild
index 8c10c10306aa..92b69c62eba0 100644
--- a/net-im/coturn/coturn-4.6.0.ebuild
+++ b/net-im/coturn/coturn-4.6.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,7 +14,7 @@ if [[ ${PV} == * ]]; then
#S="${WORKDIR}/${PN}-master"
 else
SRC_URI="https://github.com/coturn/coturn/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
+   KEYWORDS="~amd64 ~arm64 ~x86"
 fi
 
 LICENSE="BSD"



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/, net-im/coturn/files/

2022-10-30 Thread Sam James
commit: c0ca7de3d5a6cf9272978d19b813c5697abba710
Author: Sam James  gentoo  org>
AuthorDate: Mon Oct 31 01:24:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Oct 31 01:42:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0ca7de3

net-im/coturn: add 4.6.0

Closes: https://bugs.gentoo.org/729820
Signed-off-by: Sam James  gentoo.org>

 net-im/coturn/Manifest |   1 +
 .../{coturn-.ebuild => coturn-4.6.0.ebuild}|  31 +-
 net-im/coturn/coturn-.ebuild   |  31 +-
 net-im/coturn/files/coturn-4.6.0-openssl3.patch| 356 +
 4 files changed, 399 insertions(+), 20 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index f6b191a10c62..b7be62479570 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1 +1,2 @@
 DIST coturn-4.5.2.tar.gz 442745 BLAKE2B 
c18d5f5cfedd600875c0bfa08b874ef6316a5aa9af34c27e2901825da412b794d437e08f0706f9651bdf6d3d19e151486af39a42f2326c7ab6bb802d33fd0ba4
 SHA512 
00e86a3a273a8e4e69deaefd338bdd6c44739a807f21a72a2d68efc089053e16efd1d5b34b0c6dea7a0fa2b66f70821d8c3e1107561e1f08dfac2c93933a6121
+DIST coturn-4.6.0.tar.gz 474423 BLAKE2B 
b70ecd1f333f4f9f37adcab6f5fd3406aa0eb962488b7cae4a30c9339cf7b11b2bfedd1fa70bd3b0c32bf82702d39eb22278506521f71e0cb6aaadee9d3c3d05
 SHA512 
a80ea1b8d9c78b8f9fc632517a0246cb0d2d4ff21c59d53827f026fb3a145a01b3bec637af94a96b525c35251cb5e9e209ba7f368f08e12ef61220bcb784637c

diff --git a/net-im/coturn/coturn-.ebuild 
b/net-im/coturn/coturn-4.6.0.ebuild
similarity index 80%
copy from net-im/coturn/coturn-.ebuild
copy to net-im/coturn/coturn-4.6.0.ebuild
index d3a3c8813604..8c10c10306aa 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-4.6.0.ebuild
@@ -4,22 +4,25 @@
 EAPI=7
 
 inherit toolchain-funcs systemd tmpfiles
+
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/coturn/coturn";
 
-if [ ${PV} =  ]; then
-   EGIT_REPO_URI="https://github.com/${PN}/${PN}.git";
+if [[ ${PV} == * ]]; then
+   EGIT_REPO_URI="https://github.com/coturn/coturn.git";
inherit git-r3
-#  S="${WORKDIR}/${PN}-master"
+   #S="${WORKDIR}/${PN}-master"
 else
+   SRC_URI="https://github.com/coturn/coturn/archive/${PV}.tar.gz -> 
${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
-   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="acct-group/turnserver
+
+RDEPEND="
+   acct-group/turnserver
acct-user/turnserver
>dev-libs/libevent-2.1.8:=
dev-libs/openssl:=
@@ -27,18 +30,21 @@ RDEPEND="acct-group/turnserver
mysql?  ( dev-db/mysql-connector-c:= )
postgres? ( dev-db/postgresql:* )
redis? ( dev-libs/hiredis:= )
-   sqlite? ( dev-db/sqlite )"
+   sqlite? ( dev-db/sqlite )
+"
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
"${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
+   "${FILESDIR}"/${P}-openssl3.patch
 )
 
 src_configure() {
-   if [ -n "${AR}" ]; then
+   if [[ -n "${AR}" ]]; then
sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i 
"${S}/configure"
fi
+
sed 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed 
for mandir failed"
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"
@@ -46,6 +52,7 @@ src_configure() {
|| die "sed for simple-log failed"
sed '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca 
\${DESTDIR}${EXAMPLESDIR}' \
-i "${S}/Makefile.in" || die "sed for example ca failed"
+
if ! use mongodb; then
export TURN_NO_MONGO=yes
fi
@@ -73,15 +80,19 @@ src_configure() {
 
 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"
-   elog "You need to copy /etc/turnserver.conf.default to"
-   elog "/etc/turnserver.conf and do your settings there."
+   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."
 }

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index d3a3c8813604..8c10c10306aa 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -4,22 +4,25 @@
 EAPI=7
 
 inherit toolchain-funcs systemd tmpfiles
+
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/coturn/coturn";
 
-if [ ${PV} =  ]; then
-   EGI

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/, net-im/coturn/files/

2022-05-18 Thread Sam James
commit: 23af4fed2d7cc961e7df0ccb0765e590e673f9ab
Author: Sam James  gentoo  org>
AuthorDate: Thu May 19 03:41:36 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu May 19 03:41:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23af4fed

net-im/coturn: fix automagic OpenSSL dep

Also:
- Fix calling AR, CC directly
- Fix TMPDIR usage

Bug: https://bugs.gentoo.org/729820
Closes: https://bugs.gentoo.org/835652
Closes: https://bugs.gentoo.org/724918
Signed-off-by: Sam James  gentoo.org>

 net-im/coturn/coturn-4.5.2-r1.ebuild   | 17 +---
 net-im/coturn/coturn-.ebuild   | 31 +++---
 .../coturn/files/coturn-4.5.2-respect-TMPDIR.patch | 24 +
 3 files changed, 59 insertions(+), 13 deletions(-)

diff --git a/net-im/coturn/coturn-4.5.2-r1.ebuild 
b/net-im/coturn/coturn-4.5.2-r1.ebuild
index 37dde1c42c28..d3a3c8813604 100644
--- a/net-im/coturn/coturn-4.5.2-r1.ebuild
+++ b/net-im/coturn/coturn-4.5.2-r1.ebuild
@@ -2,14 +2,14 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit systemd tmpfiles
+
+inherit toolchain-funcs systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/coturn/coturn";
 
 if [ ${PV} =  ]; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git";
inherit git-r3
-   DEPEND="dev-vcs/git"
 #  S="${WORKDIR}/${PN}-master"
 else
KEYWORDS="~amd64 ~x86"
@@ -22,13 +22,18 @@ IUSE="mongodb mysql postgres redis sqlite"
 RDEPEND="acct-group/turnserver
acct-user/turnserver
>dev-libs/libevent-2.1.8:=
+   dev-libs/openssl:=
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}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
+)
 
 src_configure() {
if [ -n "${AR}" ]; then
@@ -56,7 +61,13 @@ src_configure() {
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/${PN}-${PV}"
+
econf $(use_with sqlite)
 }
 

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 4f65686782b4..d3a3c8813604 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -2,14 +2,14 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit systemd tmpfiles
+
+inherit toolchain-funcs systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/coturn/coturn";
 
 if [ ${PV} =  ]; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git";
inherit git-r3
-   DEPEND="dev-vcs/git"
 #  S="${WORKDIR}/${PN}-master"
 else
KEYWORDS="~amd64 ~x86"
@@ -20,15 +20,20 @@ LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
 RDEPEND="acct-group/turnserver
-acct-user/turnserver
->dev-libs/libevent-2.1.8:=
-mongodb? ( dev-libs/mongo-c-driver )
-mysql?  ( dev-db/mysql-connector-c:= )
-postgres? ( dev-db/postgresql:* )
-redis? ( dev-libs/hiredis:= )
-sqlite? ( dev-db/sqlite )"
-
+   acct-user/turnserver
+   >dev-libs/libevent-2.1.8:=
+   dev-libs/openssl:=
+   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}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-4.5.2-respect-TMPDIR.patch
+)
 
 src_configure() {
if [ -n "${AR}" ]; then
@@ -56,7 +61,13 @@ src_configure() {
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/${PN}-${PV}"
+
econf $(use_with sqlite)
 }
 

diff --git a/net-im/coturn/files/coturn-4.5.2-respect-TMPDIR.patch 
b/net-im/coturn/files/coturn-4.5.2-respect-TMPDIR.patch
new file mode 100644
index ..036705afc1f2
--- /dev/null
+++ b/net-im/coturn/files/coturn-4.5.2-respect-TMPDIR.patch
@@ -0,0 +1,24 @@
+diff --git a/configure b/configure
+index caf11f5..003da8d 100755
+--- a/configure
 b/configure
+@@ -513,12 +513,13 @@ fi
+ # Temporary DIR location:
+ #
+ 
+-TMPDIR="."
+-
+-if [ -d /var/tmp ] ; then
+-  TMPDIR="/var/tmp"
+-elif [ -d /tmp ] ; then
+-  TMPDIR=/tmp
++TMPDIR=${TMPDIR:-.}
++if test x"${TMPDIR}" = "." ; then
++  if [ -d /var/tmp ] ; then
++TMPDIR="/var/tmp"
++  elif [ -d /tmp ] ; then
++TMPDIR=/tmp
++  fi
+ fi
+

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2022-03-22 Thread Sam James
commit: 9a11c5e701edf5c1497c584a891a6db135548f7e
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 23 01:23:39 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 23 01:23:39 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a11c5e7

net-im/coturn: add subslot dep on hiredis

They break ABI liberally.

Signed-off-by: Sam James  gentoo.org>

 net-im/coturn/{coturn-4.5.2.ebuild => coturn-4.5.2-r1.ebuild} | 8 
 net-im/coturn/coturn-.ebuild  | 8 
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/net-im/coturn/coturn-4.5.2.ebuild 
b/net-im/coturn/coturn-4.5.2-r1.ebuild
similarity index 93%
rename from net-im/coturn/coturn-4.5.2.ebuild
rename to net-im/coturn/coturn-4.5.2-r1.ebuild
index a183b67dbeae..37dde1c42c28 100644
--- a/net-im/coturn/coturn-4.5.2.ebuild
+++ b/net-im/coturn/coturn-4.5.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -21,11 +21,11 @@ SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
 RDEPEND="acct-group/turnserver
acct-user/turnserver
-   >dev-libs/libevent-2.1.8
+   >dev-libs/libevent-2.1.8:=
mongodb? ( dev-libs/mongo-c-driver )
-   mysql?  ( dev-db/mysql-connector-c )
+   mysql?  ( dev-db/mysql-connector-c:= )
postgres? ( dev-db/postgresql:* )
-   redis? ( dev-libs/hiredis )
+   redis? ( dev-libs/hiredis:= )
sqlite? ( dev-db/sqlite )"
 
 DEPEND="${RDEPEND}"

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 4830d0550d0b..4f65686782b4 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -21,11 +21,11 @@ SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
 RDEPEND="acct-group/turnserver
 acct-user/turnserver
->dev-libs/libevent-2.1.8
+>dev-libs/libevent-2.1.8:=
 mongodb? ( dev-libs/mongo-c-driver )
-mysql?  ( dev-db/mysql-connector-c )
+mysql?  ( dev-db/mysql-connector-c:= )
 postgres? ( dev-db/postgresql:* )
-redis? ( dev-libs/hiredis )
+redis? ( dev-libs/hiredis:= )
 sqlite? ( dev-db/sqlite )"
 
 DEPEND="${RDEPEND}"



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2021-05-01 Thread Sam James
commit: b5ca8837ddffe8c99e244e52a02c9c6aaf093f7b
Author: Sam James  gentoo  org>
AuthorDate: Sat May  1 17:50:50 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May  1 18:06:49 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5ca8837

net-im/coturn: drop obsolete LibreSSL support

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sam James  gentoo.org>

 net-im/coturn/coturn-4.5.2.ebuild | 14 +++---
 net-im/coturn/coturn-.ebuild  |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/net-im/coturn/coturn-4.5.2.ebuild 
b/net-im/coturn/coturn-4.5.2.ebuild
index d8ac519acbc..a183b67dbea 100644
--- a/net-im/coturn/coturn-4.5.2.ebuild
+++ b/net-im/coturn/coturn-4.5.2.ebuild
@@ -20,13 +20,13 @@ LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
 RDEPEND="acct-group/turnserver
-acct-user/turnserver
-|| ( 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 )"
+   acct-user/turnserver
+   >dev-libs/libevent-2.1.8
+   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}"
 

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index d8ac519acbc..4830d0550d0 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -21,7 +21,7 @@ SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
 RDEPEND="acct-group/turnserver
 acct-user/turnserver
-|| ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl,-libressl] 
>dev-libs/libevent-2.1.8[ssl,libressl] )
+>dev-libs/libevent-2.1.8
 mongodb? ( dev-libs/mongo-c-driver )
 mysql?  ( dev-db/mysql-connector-c )
 postgres? ( dev-db/postgresql:* )



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2021-02-26 Thread Andreas Schuerch
commit: 8e630a6aa441efbe733ee9db6f2d7016914cbc86
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Feb 26 12:52:27 2021 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Feb 26 12:52:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e630a6a

net-im/coturn: Bump to 4.5.2, remove old #765157

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-im/coturn/Manifest   | 2 +-
 net-im/coturn/{coturn-4.5.1.3.ebuild => coturn-4.5.2.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 8684e55c807..f6b191a10c6 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1 +1 @@
-DIST coturn-4.5.1.3.tar.gz 437084 BLAKE2B 
6652400cea6e11e83a3319a5058c334b99dfcd3f5524e03b97d0aa11df1fbf7297c182af1c9f0085271279a0704ca728297b4618e384f61335ab928772f9f9a8
 SHA512 
f86cd953cc967bd8474df110ac45ae315e1a5fca48b17a5395a7159384e4a99ecf01787e096a88ec8ec64e1f7545e754579c8ba2ac43cc072d93bf0e180e4133
+DIST coturn-4.5.2.tar.gz 442745 BLAKE2B 
c18d5f5cfedd600875c0bfa08b874ef6316a5aa9af34c27e2901825da412b794d437e08f0706f9651bdf6d3d19e151486af39a42f2326c7ab6bb802d33fd0ba4
 SHA512 
00e86a3a273a8e4e69deaefd338bdd6c44739a807f21a72a2d68efc089053e16efd1d5b34b0c6dea7a0fa2b66f70821d8c3e1107561e1f08dfac2c93933a6121

diff --git a/net-im/coturn/coturn-4.5.1.3.ebuild 
b/net-im/coturn/coturn-4.5.2.ebuild
similarity index 100%
rename from net-im/coturn/coturn-4.5.1.3.ebuild
rename to net-im/coturn/coturn-4.5.2.ebuild



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2020-07-07 Thread Andreas Schuerch
commit: 3ed0c52d429d5ffa13e359a22c40de424a2c9084
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Jul  7 09:50:36 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Jul  7 09:50:36 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ed0c52d

net-im/coturn: bump, remove old, bug 730180

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-im/coturn/Manifest | 2 +-
 net-im/coturn/{coturn-4.5.1.2.ebuild => coturn-4.5.1.3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index c40ac5708b1..8684e55c807 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1 +1 @@
-DIST coturn-4.5.1.2.tar.gz 436487 BLAKE2B 
c59a3ba0554111c6f70db04438e08b4d78bacc312bc5e5c2435e92f697222c8a3ab1c4f3e25de15174c3c359acda4760f855d88e37e68d333568c0882f4139a5
 SHA512 
6dd223fee866d97a3e55d87250fcb5d6ecc56f14b30029685406237aedd3d3cd6c09b685ef13ed2d1ebed3a4a3a80a88151c6498f312e53e3f5848d4af489478
+DIST coturn-4.5.1.3.tar.gz 437084 BLAKE2B 
6652400cea6e11e83a3319a5058c334b99dfcd3f5524e03b97d0aa11df1fbf7297c182af1c9f0085271279a0704ca728297b4618e384f61335ab928772f9f9a8
 SHA512 
f86cd953cc967bd8474df110ac45ae315e1a5fca48b17a5395a7159384e4a99ecf01787e096a88ec8ec64e1f7545e754579c8ba2ac43cc072d93bf0e180e4133

diff --git a/net-im/coturn/coturn-4.5.1.2.ebuild 
b/net-im/coturn/coturn-4.5.1.3.ebuild
similarity index 100%
rename from net-im/coturn/coturn-4.5.1.2.ebuild
rename to net-im/coturn/coturn-4.5.1.3.ebuild



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2020-06-25 Thread Andreas Schuerch
commit: a6598a9bfa5866d1e6bb2fbb7c2df3e828fdadb6
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Jun 24 17:45:56 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Thu Jun 25 10:44:43 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6598a9b

net-im/coturn: versionbump, remove old, solves 724918,716096,710286

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-im/coturn/Manifest | 2 +-
 net-im/coturn/{coturn-4.5.1.1.ebuild => coturn-4.5.1.2.ebuild} | 8 +++-
 net-im/coturn/coturn-.ebuild   | 8 +++-
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 0f48d31a5c5..c40ac5708b1 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1 +1 @@
-DIST coturn-4.5.1.1.tar.gz 420069 BLAKE2B 
fe0e0334658d2a69132d7a83667ee52927e888f8978bd03eb099e61f17a4516d10a36d2abb1c93e2b25bc4192c342fba581b85892e99b139016e09c77a365cc2
 SHA512 
a5e1aecdab5a7060ffbc73cc8dd294cafa701f2e0d2a827e40901cb6001af5a2c5ecbafdf14662410713818aad0ad259133f0dc9b34730bf7911863e1e255f70
+DIST coturn-4.5.1.2.tar.gz 436487 BLAKE2B 
c59a3ba0554111c6f70db04438e08b4d78bacc312bc5e5c2435e92f697222c8a3ab1c4f3e25de15174c3c359acda4760f855d88e37e68d333568c0882f4139a5
 SHA512 
6dd223fee866d97a3e55d87250fcb5d6ecc56f14b30029685406237aedd3d3cd6c09b685ef13ed2d1ebed3a4a3a80a88151c6498f312e53e3f5848d4af489478

diff --git a/net-im/coturn/coturn-4.5.1.1.ebuild 
b/net-im/coturn/coturn-4.5.1.2.ebuild
similarity index 82%
rename from net-im/coturn/coturn-4.5.1.1.ebuild
rename to net-im/coturn/coturn-4.5.1.2.ebuild
index 4a1fd749973..f3a72b58154 100644
--- a/net-im/coturn/coturn-4.5.1.1.ebuild
+++ b/net-im/coturn/coturn-4.5.1.2.ebuild
@@ -32,10 +32,16 @@ RDEPEND="acct-group/turnserver
 DEPEND="${RDEPEND}"
 
 src_configure() {
+   if [ -n "${AR}" ]; then
+   sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i 
"${S}/configure"
+   fi
+   sed 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed 
for mandir failed"
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"
+   sed '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca 
\${DESTDIR}${EXAMPLESDIR}' \
+   -i "${S}/Makefile.in" || die "sed for example ca failed"
if ! use mongodb; then
export TURN_NO_MONGO=yes
fi
@@ -51,7 +57,7 @@ src_configure() {
if ! use sqlite; then
export TURN_NO_SQLITE=yes
fi
-
+   export DOCSDIR="/usr/share/doc/${PN}-${PV}"
econf $(use_with sqlite)
 }
 

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 4a1fd749973..f3a72b58154 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -32,10 +32,16 @@ RDEPEND="acct-group/turnserver
 DEPEND="${RDEPEND}"
 
 src_configure() {
+   if [ -n "${AR}" ]; then
+   sed 's:ARCHIVERCMD="ar -r":ARCHIVERCMD="${AR} -r":g' -i 
"${S}/configure"
+   fi
+   sed 's:MANPREFIX}/man/:MANPREFIX}/:g' -i "${S}/Makefile.in" || die "sed 
for mandir failed"
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"
+   sed '/INSTALL_DIR} examples\/script/a \ \${INSTALL_DIR} examples\/ca 
\${DESTDIR}${EXAMPLESDIR}' \
+   -i "${S}/Makefile.in" || die "sed for example ca failed"
if ! use mongodb; then
export TURN_NO_MONGO=yes
fi
@@ -51,7 +57,7 @@ src_configure() {
if ! use sqlite; then
export TURN_NO_SQLITE=yes
fi
-
+   export DOCSDIR="/usr/share/doc/${PN}-${PV}"
econf $(use_with sqlite)
 }
 



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2020-01-03 Thread Andreas Schuerch
commit: f8a1d692b28c55a15276b9139fa414bb337c7215
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Jan  3 21:28:58 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Jan  3 21:28:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a1d692

net-im/coturn: remove unused user eclass

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-im/coturn/coturn-4.5.1.1.ebuild | 4 ++--
 net-im/coturn/coturn-.ebuild| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-im/coturn/coturn-4.5.1.1.ebuild 
b/net-im/coturn/coturn-4.5.1.1.ebuild
index 9978e282984..4a1fd749973 100644
--- a/net-im/coturn/coturn-4.5.1.1.ebuild
+++ b/net-im/coturn/coturn-4.5.1.1.ebuild
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils user systemd tmpfiles
+inherit eutils systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
-HOMEPAGE="https://github.com/${PN}/${PN}";
+HOMEPAGE="https://github.com/coturn/coturn";
 
 if [ ${PV} =  ]; then
KEYWORDS=""

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 9978e282984..4a1fd749973 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils user systemd tmpfiles
+inherit eutils systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
-HOMEPAGE="https://github.com/${PN}/${PN}";
+HOMEPAGE="https://github.com/coturn/coturn";
 
 if [ ${PV} =  ]; then
KEYWORDS=""



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2020-01-03 Thread Andreas Schuerch
commit: 675e58039db9523f25192d9b7c06d5ea34302691
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Jan  3 11:06:53 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Jan  3 11:06:53 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=675e5803

net-im/coturn: remove old ebuilds

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-im/coturn/Manifest  |  2 --
 net-im/coturn/coturn-4.5.0.7.ebuild | 71 -
 net-im/coturn/coturn-4.5.0.8.ebuild | 71 -
 3 files changed, 144 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 5484deb1c6e..0f48d31a5c5 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,3 +1 @@
-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
 DIST coturn-4.5.1.1.tar.gz 420069 BLAKE2B 
fe0e0334658d2a69132d7a83667ee52927e888f8978bd03eb099e61f17a4516d10a36d2abb1c93e2b25bc4192c342fba581b85892e99b139016e09c77a365cc2
 SHA512 
a5e1aecdab5a7060ffbc73cc8dd294cafa701f2e0d2a827e40901cb6001af5a2c5ecbafdf14662410713818aad0ad259133f0dc9b34730bf7911863e1e255f70

diff --git a/net-im/coturn/coturn-4.5.0.7.ebuild 
b/net-im/coturn/coturn-4.5.0.7.ebuild
deleted file mode 100644
index a1fe9ad57b2..000
--- a/net-im/coturn/coturn-4.5.0.7.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2019 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} =  ]; then
-   KEYWORDS=""
-   EGIT_REPO_URI="https://github.com/${PN}/${PN}.git";
-   inherit git-r3
-   DEPEND="dev-vcs/git"
-#  S="${WORKDIR}/${PN}-master"
-else
-   KEYWORDS="~amd64 ~x86"
-   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."
-}

diff --git a/net-im/coturn/coturn-4.5.0.8.ebuild 
b/net-im/coturn/coturn-4.5.0.8.ebuild
deleted file mode 100644
index a1fe9ad57b2..000
--- a/net-im/coturn/coturn-4.5.0.8.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2019 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} =  ]; then
-   KEYWORDS=""
-   EGIT_REPO_URI="https://github.com/${PN}/${PN}.git";
-   inherit git-r3
-   DEPEND="dev-vcs/git"
-#  S="${WORKDIR}/${PN}-master"
-else
-   KEYWORDS="~amd64 ~x86"
-   SRC_URI="http

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/, net-im/coturn/files/

2020-01-03 Thread Andreas Schuerch
commit: 9dd19782a4400174b4f33b36a21be137de341e69
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Jan  3 11:04:10 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Jan  3 11:04:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dd19782

net-im/coturn: version bump and chmod -x on initscript

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-im/coturn/Manifest  |  1 +
 net-im/coturn/{coturn-.ebuild => coturn-4.5.1.1.ebuild} | 10 +-
 net-im/coturn/coturn-.ebuild| 10 +-
 net-im/coturn/files/turnserver.init |  2 +-
 4 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index a8812e377e7..5484deb1c6e 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,2 +1,3 @@
 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
+DIST coturn-4.5.1.1.tar.gz 420069 BLAKE2B 
fe0e0334658d2a69132d7a83667ee52927e888f8978bd03eb099e61f17a4516d10a36d2abb1c93e2b25bc4192c342fba581b85892e99b139016e09c77a365cc2
 SHA512 
a5e1aecdab5a7060ffbc73cc8dd294cafa701f2e0d2a827e40901cb6001af5a2c5ecbafdf14662410713818aad0ad259133f0dc9b34730bf7911863e1e255f70

diff --git a/net-im/coturn/coturn-.ebuild 
b/net-im/coturn/coturn-4.5.1.1.ebuild
similarity index 88%
copy from net-im/coturn/coturn-.ebuild
copy to net-im/coturn/coturn-4.5.1.1.ebuild
index a1fe9ad57b2..9978e282984 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-4.5.1.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 inherit eutils user systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
@@ -20,7 +20,9 @@ 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] )
+RDEPEND="acct-group/turnserver
+acct-user/turnserver
+|| ( 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:* )
@@ -64,8 +66,6 @@ src_install() {
 
 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."
 }

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index a1fe9ad57b2..9978e282984 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 inherit eutils user systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
@@ -20,7 +20,9 @@ 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] )
+RDEPEND="acct-group/turnserver
+acct-user/turnserver
+|| ( 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:* )
@@ -64,8 +66,6 @@ src_install() {
 
 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."
 }

diff --git a/net-im/coturn/files/turnserver.init 
b/net-im/coturn/files/turnserver.init
old mode 100755
new mode 100644
index 682e4f12202..676fe1037ad
--- a/net-im/coturn/files/turnserver.init
+++ b/net-im/coturn/files/turnserver.init
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
+# Copy

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2018-12-17 Thread Andreas Schuerch
commit: acdebeecdd5eab99bec70c2760852370e38e6979
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Mon Dec 17 17:58:25 2018 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Mon Dec 17 18:01:33 2018 +
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  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 000..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} =  ]; 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."
+}



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2018-09-18 Thread Andreas Schuerch
commit: b7e2e8d2e8445949d6a020974b0d75b21c49ba1f
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Sep 18 17:46:57 2018 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Sep 18 17:46:57 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7e2e8d2

net-im/coturn: remove old ebuilds

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-im/coturn/Manifest |  2 -
 net-im/coturn/coturn-4.5.0.4-r1.ebuild | 71 --
 net-im/coturn/coturn-4.5.0.6.ebuild| 71 --
 3 files changed, 144 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index f2225cc4c99..79584dfa4d9 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,3 +1 @@
-DIST coturn-4.5.0.4.tar.gz 381015 BLAKE2B 
838cbdbcc2a3a5b1bdd93f2688ecca8bd81b3349501b6729562b6d45037a8fc27fce6c39a035ecfd6f36d03402e78f796cf3b19a4894e5bfcd89ab3172980c36
 SHA512 
1d267b715b08853a5434d0a10cffd49e035624353e6733ff7349c549ef3f69240c2488097d81e33f7a551e02d72a26f1f430aefb9cbacda511a2ae6f883cd414
-DIST coturn-4.5.0.6.tar.gz 394071 BLAKE2B 
35a805d0e210439cd8f32621f342f3a2d9da17392d8fbae5ac8165bcefa6e8f0ed1a32a2c785bff075bcf33ab2f0f22da8c7c620e40f3ae6f582733f6802c431
 SHA512 
4ad7d482af675033d050258e2af04b813561414d4ba926cfd336c6548200dbf1a90f9511983b8cad20713c7edff2a424c9d6b11d401717794e3d1af6b7ed9208
 DIST coturn-4.5.0.7.tar.gz 396579 BLAKE2B 
ac66fbac772ad4b182f0c4b64178a780bfb364e4c1cf105fc340ac60da0a4c2e2b186c3ce08cade347a5d1a4b233bfed604db74eacd81967c3090e00bc1e36e8
 SHA512 
4e6e4efb456449752b2cd242c9be7c5dc2298472e338293d3de21c3a9da968f2f304625663372bb4d857c092c694aa4681630773a46e4928b9c60c69378adacc

diff --git a/net-im/coturn/coturn-4.5.0.4-r1.ebuild 
b/net-im/coturn/coturn-4.5.0.4-r1.ebuild
deleted file mode 100644
index 02115af3223..000
--- a/net-im/coturn/coturn-4.5.0.4-r1.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# 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} =  ]; 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]
-dev-libs/openssl:*
-mongodb? ( dev-libs/mongo-c-driver )
-mysql? ( virtual/mysql )
-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."
-}

diff --git a/net-im/coturn/coturn-4.5.0.6.ebuild 
b/net-im/coturn/coturn-4.5.0.6.ebuild
deleted file mode 100644
index 02115af3223..000
--- a/net-im/coturn/coturn-4.5.0.6.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# 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} =  ]; 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="mo

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2018-09-18 Thread Andreas Schuerch
commit: 3e8ec0df0d136f81859982abcac18a83e40efc2f
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Sep 18 17:21:30 2018 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Sep 18 17:22:43 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8ec0df

net-im/coturn: libressl deps - Bug 652586. mysql deps - Bug 665978

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-im/coturn/coturn-4.5.0.7.ebuild | 4 ++--
 net-im/coturn/coturn-.ebuild| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-im/coturn/coturn-4.5.0.7.ebuild 
b/net-im/coturn/coturn-4.5.0.7.ebuild
index 438817b8c4a..daad5953188 100644
--- a/net-im/coturn/coturn-4.5.0.7.ebuild
+++ b/net-im/coturn/coturn-4.5.0.7.ebuild
@@ -20,9 +20,9 @@ fi
 LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
-RDEPEND="|| ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl] )
+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? ( virtual/mysql )
+mysql?  ( dev-db/mysql-connector-c )
 postgres? ( dev-db/postgresql:* )
 redis? ( dev-libs/hiredis )
 sqlite? ( dev-db/sqlite )"

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 438817b8c4a..daad5953188 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -20,9 +20,9 @@ fi
 LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
-RDEPEND="|| ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl] )
+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? ( virtual/mysql )
+mysql?  ( dev-db/mysql-connector-c )
 postgres? ( dev-db/postgresql:* )
 redis? ( dev-libs/hiredis )
 sqlite? ( dev-db/sqlite )"



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/

2018-07-11 Thread Andreas Schuerch
commit: 239c240cbc5792dfbb4fdd6cfe48980aba48b07c
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Jul 11 10:06:44 2018 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Wed Jul 11 10:06:44 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=239c240c

net-im/coturn: version bump and libressl deps. Bug 652586

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-im/coturn/Manifest  | 1 +
 net-im/coturn/{coturn-.ebuild => coturn-4.5.0.7.ebuild} | 6 +++---
 net-im/coturn/coturn-.ebuild| 6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 00fbd87c3fb..f2225cc4c99 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1,2 +1,3 @@
 DIST coturn-4.5.0.4.tar.gz 381015 BLAKE2B 
838cbdbcc2a3a5b1bdd93f2688ecca8bd81b3349501b6729562b6d45037a8fc27fce6c39a035ecfd6f36d03402e78f796cf3b19a4894e5bfcd89ab3172980c36
 SHA512 
1d267b715b08853a5434d0a10cffd49e035624353e6733ff7349c549ef3f69240c2488097d81e33f7a551e02d72a26f1f430aefb9cbacda511a2ae6f883cd414
 DIST coturn-4.5.0.6.tar.gz 394071 BLAKE2B 
35a805d0e210439cd8f32621f342f3a2d9da17392d8fbae5ac8165bcefa6e8f0ed1a32a2c785bff075bcf33ab2f0f22da8c7c620e40f3ae6f582733f6802c431
 SHA512 
4ad7d482af675033d050258e2af04b813561414d4ba926cfd336c6548200dbf1a90f9511983b8cad20713c7edff2a424c9d6b11d401717794e3d1af6b7ed9208
+DIST coturn-4.5.0.7.tar.gz 396579 BLAKE2B 
ac66fbac772ad4b182f0c4b64178a780bfb364e4c1cf105fc340ac60da0a4c2e2b186c3ce08cade347a5d1a4b233bfed604db74eacd81967c3090e00bc1e36e8
 SHA512 
4e6e4efb456449752b2cd242c9be7c5dc2298472e338293d3de21c3a9da968f2f304625663372bb4d857c092c694aa4681630773a46e4928b9c60c69378adacc

diff --git a/net-im/coturn/coturn-.ebuild 
b/net-im/coturn/coturn-4.5.0.7.ebuild
similarity index 93%
copy from net-im/coturn/coturn-.ebuild
copy to net-im/coturn/coturn-4.5.0.7.ebuild
index 02115af3223..438817b8c4a 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-4.5.0.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,13 +20,13 @@ fi
 LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
-RDEPEND="dev-libs/libevent[ssl]
-dev-libs/openssl:*
+RDEPEND="|| ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl] )
 mongodb? ( dev-libs/mongo-c-driver )
 mysql? ( virtual/mysql )
 postgres? ( dev-db/postgresql:* )
 redis? ( dev-libs/hiredis )
 sqlite? ( dev-db/sqlite )"
+
 DEPEND="${RDEPEND}"
 
 src_configure() {

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 02115af3223..438817b8c4a 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,13 +20,13 @@ fi
 LICENSE="BSD"
 SLOT="0"
 IUSE="mongodb mysql postgres redis sqlite"
-RDEPEND="dev-libs/libevent[ssl]
-dev-libs/openssl:*
+RDEPEND="|| ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl] )
 mongodb? ( dev-libs/mongo-c-driver )
 mysql? ( virtual/mysql )
 postgres? ( dev-db/postgresql:* )
 redis? ( dev-libs/hiredis )
 sqlite? ( dev-db/sqlite )"
+
 DEPEND="${RDEPEND}"
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/, net-im/coturn/files/

2017-05-30 Thread Andreas Schuerch
commit: 6062ad6ab9032d245a846cb81e188575dae4b876
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue May 30 14:39:08 2017 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue May 30 14:39:08 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6062ad6a

net-im/coturn: bump to 4.5.0.6 and use of systemd tmpfiles.d

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 net-im/coturn/Manifest| 1 +
 net-im/coturn/coturn-4.5.0.4-r1.ebuild| 4 +++-
 net-im/coturn/{coturn-4.5.0.4-r1.ebuild => coturn-4.5.0.6.ebuild} | 4 +++-
 net-im/coturn/coturn-.ebuild  | 4 +++-
 net-im/coturn/files/coturn.conf   | 1 +
 net-im/coturn/files/coturn.service| 1 -
 6 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
index 0546106ac25..59f230fb683 100644
--- a/net-im/coturn/Manifest
+++ b/net-im/coturn/Manifest
@@ -1 +1,2 @@
 DIST coturn-4.5.0.4.tar.gz 381015 SHA256 
582c5816b115b403f980f3c38edb12b74d3b2500b7cde190cfb292ae5c056c36 SHA512 
1d267b715b08853a5434d0a10cffd49e035624353e6733ff7349c549ef3f69240c2488097d81e33f7a551e02d72a26f1f430aefb9cbacda511a2ae6f883cd414
 WHIRLPOOL 
7ff9b31c3a1a0e2fbc7ae0580df00476e803160fd7f92f3a02ab611c6f940a39334ea5efccb576b348f87c87ff690087af3c9304560caf8215fb14bef9a45f8f
+DIST coturn-4.5.0.6.tar.gz 394071 SHA256 
5ad976e142daf392351f86623b217be7ca91322105e0500c379a9dcdbbc466e8 SHA512 
4ad7d482af675033d050258e2af04b813561414d4ba926cfd336c6548200dbf1a90f9511983b8cad20713c7edff2a424c9d6b11d401717794e3d1af6b7ed9208
 WHIRLPOOL 
517353ce5cd90aca4f3991d87cdb0835e97eecf0c6529e93360b9506194f4c0cb1f3cc47e207510bbf3e4f465ab088303cdcd235cccbb11555940a8fa60f0478

diff --git a/net-im/coturn/coturn-4.5.0.4-r1.ebuild 
b/net-im/coturn/coturn-4.5.0.4-r1.ebuild
index 2ffd86380e4..02115af3223 100644
--- a/net-im/coturn/coturn-4.5.0.4-r1.ebuild
+++ b/net-im/coturn/coturn-4.5.0.4-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils user systemd
+inherit eutils user systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
 
@@ -59,9 +59,11 @@ src_install() {
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"

diff --git a/net-im/coturn/coturn-4.5.0.4-r1.ebuild 
b/net-im/coturn/coturn-4.5.0.6.ebuild
similarity index 94%
copy from net-im/coturn/coturn-4.5.0.4-r1.ebuild
copy to net-im/coturn/coturn-4.5.0.6.ebuild
index 2ffd86380e4..02115af3223 100644
--- a/net-im/coturn/coturn-4.5.0.4-r1.ebuild
+++ b/net-im/coturn/coturn-4.5.0.6.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils user systemd
+inherit eutils user systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
 
@@ -59,9 +59,11 @@ src_install() {
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"

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 2ffd86380e4..02115af3223 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils user systemd
+inherit eutils user systemd tmpfiles
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
 
@@ -59,9 +59,11 @@ src_install() {
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"

diff --git a/net-im/coturn/files/coturn.conf b/net-im/coturn/files/coturn.conf
new file mode 100644
index 000..0097a3b49a6
--- /dev/null
+++ b/net-im/coturn/files/coturn.conf
@@ -0,0 +1 @@
+d  /run/turnserver -   turnserver  turnserver  -   -

diff --git a/net-im/coturn/files/coturn.service 
b/net-im/coturn/files/coturn.service
index 81465f589d8..e072759e61b 10064

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/, net-im/coturn/files/

2017-04-01 Thread Andreas Schuerch
commit: 781c7df3a4d765bb6f592f1d4b4e521a9de56a60
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sat Apr  1 10:44:07 2017 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sat Apr  1 10:45:42 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=781c7df3

net-im/coturn: sane logging defaults thanks to Andrey Utkin. New systemd unit, 
see bug 605302

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../{coturn-4.5.0.4.ebuild => coturn-4.5.0.4-r1.ebuild} | 16 +++-
 net-im/coturn/coturn-.ebuild| 16 +++-
 net-im/coturn/files/coturn.service  | 17 +
 net-im/coturn/files/logrotate.coturn| 15 +++
 net-im/coturn/files/turnserver.init |  3 ++-
 5 files changed, 56 insertions(+), 11 deletions(-)

diff --git a/net-im/coturn/coturn-4.5.0.4.ebuild 
b/net-im/coturn/coturn-4.5.0.4-r1.ebuild
similarity index 68%
rename from net-im/coturn/coturn-4.5.0.4.ebuild
rename to net-im/coturn/coturn-4.5.0.4-r1.ebuild
index 6fa8344cd79..2ffd86380e4 100644
--- a/net-im/coturn/coturn-4.5.0.4.ebuild
+++ b/net-im/coturn/coturn-4.5.0.4-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils user
+inherit eutils user systemd
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
 
@@ -30,6 +30,10 @@ RDEPEND="dev-libs/libevent[ssl]
 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
@@ -52,12 +56,14 @@ src_configure() {
 src_install() {
default
newinitd "${FILESDIR}/turnserver.init" turnserver
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/logrotate.${PN}" "${PN}"
+   systemd_dounit "${FILESDIR}/${PN}.service"
 }
 
 pkg_postinst() {
enewgroup turnserver
enewuser turnserver -1 -1 -1 turnserver
-   elog "Be aware that the default path for logfiles in coturn is 
/var/tmp!"
-   elog "You should copy /etc/turnserver.conf.default to"
-   elog "/etc/turnserver.conf and change not only the log option."
+   elog "You need to copy /etc/turnserver.conf.default to"
+   elog "/etc/turnserver.conf and do your settings there."
 }

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
index 6fa8344cd79..2ffd86380e4 100644
--- a/net-im/coturn/coturn-.ebuild
+++ b/net-im/coturn/coturn-.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils user
+inherit eutils user systemd
 DESCRIPTION="coturn TURN server project"
 HOMEPAGE="https://github.com/${PN}/${PN}";
 
@@ -30,6 +30,10 @@ RDEPEND="dev-libs/libevent[ssl]
 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
@@ -52,12 +56,14 @@ src_configure() {
 src_install() {
default
newinitd "${FILESDIR}/turnserver.init" turnserver
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/logrotate.${PN}" "${PN}"
+   systemd_dounit "${FILESDIR}/${PN}.service"
 }
 
 pkg_postinst() {
enewgroup turnserver
enewuser turnserver -1 -1 -1 turnserver
-   elog "Be aware that the default path for logfiles in coturn is 
/var/tmp!"
-   elog "You should copy /etc/turnserver.conf.default to"
-   elog "/etc/turnserver.conf and change not only the log option."
+   elog "You need to copy /etc/turnserver.conf.default to"
+   elog "/etc/turnserver.conf and do your settings there."
 }

diff --git a/net-im/coturn/files/coturn.service 
b/net-im/coturn/files/coturn.service
new file mode 100644
index 000..81465f589d8
--- /dev/null
+++ b/net-im/coturn/files/coturn.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=turnserver daemon
+After=networking.target
+
+[Service]
+Type=simple
+User=turnserver
+Group=turnserver
+PermissionsStartOnly=true
+ExecStartPre=/bin/bash -c "[ -f /var/log/turnserver.log ] || touch 
/var/log/turnserver.log && chown turnserver:turnserver /var/log/turnserver.log 
&& chmod 660 /var/log/turnserver.log"
+ExecStartPre=/bin/bash -c "[ -d /var/run/tur

[gentoo-commits] repo/gentoo:master commit in: net-im/coturn/files/, net-im/coturn/

2016-09-07 Thread Andreas Schuerch
commit: e003f96c094d230eaf7dc69ebdc72e1ae74ea040
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Sep  7 15:54:18 2016 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Wed Sep  7 15:54:18 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e003f96c

net-im/coturn: new ebuild, written by me

Package-Manager: portage-2.2.28

 net-im/coturn/Manifest  |  1 +
 net-im/coturn/coturn-4.5.0.4.ebuild | 64 +
 net-im/coturn/coturn-.ebuild| 64 +
 net-im/coturn/files/turnserver.init | 26 +++
 net-im/coturn/metadata.xml  | 15 +
 5 files changed, 170 insertions(+)

diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest
new file mode 100644
index ..0546106
--- /dev/null
+++ b/net-im/coturn/Manifest
@@ -0,0 +1 @@
+DIST coturn-4.5.0.4.tar.gz 381015 SHA256 
582c5816b115b403f980f3c38edb12b74d3b2500b7cde190cfb292ae5c056c36 SHA512 
1d267b715b08853a5434d0a10cffd49e035624353e6733ff7349c549ef3f69240c2488097d81e33f7a551e02d72a26f1f430aefb9cbacda511a2ae6f883cd414
 WHIRLPOOL 
7ff9b31c3a1a0e2fbc7ae0580df00476e803160fd7f92f3a02ab611c6f940a39334ea5efccb576b348f87c87ff690087af3c9304560caf8215fb14bef9a45f8f

diff --git a/net-im/coturn/coturn-4.5.0.4.ebuild 
b/net-im/coturn/coturn-4.5.0.4.ebuild
new file mode 100644
index ..4932955
--- /dev/null
+++ b/net-im/coturn/coturn-4.5.0.4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils user
+DESCRIPTION="coturn TURN server project"
+HOMEPAGE="https://github.com/${PN}/${PN}";
+
+if [ ${PV} =  ]; 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]
+dev-libs/openssl:*
+mongodb? ( dev-libs/mongo-c-driver )
+mysql? ( virtual/mysql )
+postgres? ( dev-db/postgresql:* )
+redis? ( dev-libs/hiredis )
+sqlite? ( dev-db/sqlite )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+   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
+}
+
+pkg_postinst() {
+   enewgroup turnserver
+   enewuser turnserver -1 -1 -1 turnserver
+   elog "Be aware that the default path for logfiles in coturn is 
/var/tmp!"
+   elog "You should copy /etc/turnserver.conf.default to"
+   elog "/etc/turnserver.conf and change not only the log option."
+}

diff --git a/net-im/coturn/coturn-.ebuild b/net-im/coturn/coturn-.ebuild
new file mode 100644
index ..4932955
--- /dev/null
+++ b/net-im/coturn/coturn-.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils user
+DESCRIPTION="coturn TURN server project"
+HOMEPAGE="https://github.com/${PN}/${PN}";
+
+if [ ${PV} =  ]; 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]
+dev-libs/openssl:*
+mongodb? ( dev-libs/mongo-c-driver )
+mysql? ( virtual/mysql )
+postgres? ( dev-db/postgresql:* )
+redis? ( dev-libs/hiredis )
+sqlite? ( dev-db/sqlite )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+   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
+}
+
+pkg_postinst() {
+   enewgroup turnserver
+