From 9a11c5e701edf5c1497c584a891a6db135548f7e Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 23 Mar 2022 01:23:39 +0000 Subject: net-im/coturn: add subslot dep on hiredis They break ABI liberally. Signed-off-by: Sam James --- net-im/coturn/coturn-4.5.2-r1.ebuild | 76 ++++++++++++++++++++++++++++++++++++ net-im/coturn/coturn-4.5.2.ebuild | 76 ------------------------------------ net-im/coturn/coturn-9999.ebuild | 8 ++-- 3 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 net-im/coturn/coturn-4.5.2-r1.ebuild delete mode 100644 net-im/coturn/coturn-4.5.2.ebuild (limited to 'net-im/coturn') diff --git a/net-im/coturn/coturn-4.5.2-r1.ebuild b/net-im/coturn/coturn-4.5.2-r1.ebuild new file mode 100644 index 000000000000..37dde1c42c28 --- /dev/null +++ b/net-im/coturn/coturn-4.5.2-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit systemd tmpfiles +DESCRIPTION="coturn TURN server project" +HOMEPAGE="https://github.com/coturn/coturn" + +if [ ${PV} = 9999 ]; 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" + 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:= + 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() { + 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 + 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." +} diff --git a/net-im/coturn/coturn-4.5.2.ebuild b/net-im/coturn/coturn-4.5.2.ebuild deleted file mode 100644 index a183b67dbeae..000000000000 --- a/net-im/coturn/coturn-4.5.2.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit systemd tmpfiles -DESCRIPTION="coturn TURN server project" -HOMEPAGE="https://github.com/coturn/coturn" - -if [ ${PV} = 9999 ]; 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" - 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 - 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() { - 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 - 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." -} diff --git a/net-im/coturn/coturn-9999.ebuild b/net-im/coturn/coturn-9999.ebuild index 4830d0550d0b..4f65686782b4 100644 --- a/net-im/coturn/coturn-9999.ebuild +++ b/net-im/coturn/coturn-9999.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}" -- cgit v1.2.3-65-gdbad