diff options
Diffstat (limited to 'net-im/coturn')
-rw-r--r-- | net-im/coturn/Manifest | 6 | ||||
-rw-r--r-- | net-im/coturn/coturn-4.5.2-r1.ebuild | 87 | ||||
-rw-r--r-- | net-im/coturn/coturn-4.6.2.ebuild | 100 | ||||
-rw-r--r-- | net-im/coturn/coturn-9999.ebuild | 50 |
4 files changed, 129 insertions, 114 deletions
diff --git a/net-im/coturn/Manifest b/net-im/coturn/Manifest index 2d75a21d590f..3089c2714184 100644 --- a/net-im/coturn/Manifest +++ b/net-im/coturn/Manifest @@ -4,9 +4,9 @@ AUX coturn.conf 46 BLAKE2B 8ae3300f7a0a6e09fde5259b660ec69c7b15cd08d2edcd7a5f77d AUX coturn.service 470 BLAKE2B 21b1cc005b5b91a8cb80b05a45afc16d73ad88e5b0a851294a6fab79d01a3bebbd048dc0bdd2423b62c2b56fe16dece95613846ad45bc9d5c3642a79fa726eff SHA512 f4228af88e51a38b06b0f91e1494d4e61a9a9f18cbab9fe85c323267e28045ebaae2832bae114da6e326cf22bf8efbd2bd5677cbcdde8fe994eca60802a6dc66 AUX logrotate.coturn 345 BLAKE2B 26edd2ad44d947bf943757fb3e3255cafea64fac5d495402bbc3a7088ed6ffd822cc8f07010669f9faf856eb8a893d9ba9ab48d4b417f8c3fd27772ffb71cae0 SHA512 ebfadc7e6435061b7120baffce76a65c224768ab85e59e3b8cd140e394fa6e4eaa258eccce76f3152fd6a1adab0c84e39feb51663c76359401e04df4d8db2c1d AUX turnserver.init 633 BLAKE2B 78da89afc2be30bac969bb2a393d454d32ba77e199f2ccb5e34557ce34cf3a242402210afe6e30400b4a47ef9dc7880cded44a1932f7769f21f4143261a3569e SHA512 3b86b2186499c96ec0cfd3a124ea058a622c21cc870e079414f6055f7ba85830a5b85c424c809c010144f9270fcada80ef20bcab4cbc9c7fe0949b24fef02b59 -DIST coturn-4.5.2.tar.gz 442745 BLAKE2B c18d5f5cfedd600875c0bfa08b874ef6316a5aa9af34c27e2901825da412b794d437e08f0706f9651bdf6d3d19e151486af39a42f2326c7ab6bb802d33fd0ba4 SHA512 00e86a3a273a8e4e69deaefd338bdd6c44739a807f21a72a2d68efc089053e16efd1d5b34b0c6dea7a0fa2b66f70821d8c3e1107561e1f08dfac2c93933a6121 DIST coturn-4.6.0.tar.gz 474423 BLAKE2B b70ecd1f333f4f9f37adcab6f5fd3406aa0eb962488b7cae4a30c9339cf7b11b2bfedd1fa70bd3b0c32bf82702d39eb22278506521f71e0cb6aaadee9d3c3d05 SHA512 a80ea1b8d9c78b8f9fc632517a0246cb0d2d4ff21c59d53827f026fb3a145a01b3bec637af94a96b525c35251cb5e9e209ba7f368f08e12ef61220bcb784637c -EBUILD coturn-4.5.2-r1.ebuild 2397 BLAKE2B 5c2a056db7dc714a73f6e49ac5e4d0cf3a8c4555dcdab39276bdd845353860475acccd09dad8dae9358f6623b9bd4449ac0f17dbd6ead186c14e7c31c66b2808 SHA512 6a278b46b214dd6d7f0d3599d72aa1961a54a83a0ac47f50259461d82bebac3483cdaba7ec289aed118c980849a6693512b2b9670ac4219af0b8a64cf664f714 +DIST coturn-4.6.2.tar.gz 506275 BLAKE2B 0755e5ab8a5aa87606a604f7ebda81dfd1e5ae04e394316d841954f2d45caafccab43c17aee6de241b7b3e8483a4f7b54f68b915921b36621929d60127d1084b SHA512 ab8457921952a00b34111c03f2e5a2a9035977566270fdf9c8b9b777346645a8b233574134c0ef1c3aa2cf84bd89fbc82648678144c68ac0dff1712ce503b731 EBUILD coturn-4.6.0.ebuild 2474 BLAKE2B 7a81afdb915486a7be151062c4025b7dabe4641c6392c52b1f7f44eaee8a7af702abac7099ca76e221a56278832070eb2d36371db4f387aca8cda29431461149 SHA512 745fd66e91b4a2b6d23d32c2259e7ff7f5bfca236baceaaa792e6c04bd9ba8a03f2abace55a70854693d82db37c2b6d5b689407d75a56a40309cbcfcb797201f -EBUILD coturn-9999.ebuild 2467 BLAKE2B a476558982c0a4dc7528a89352a361d1530f6a445d23beb06f532f2dd523f0d553c8397849999e7519777f3bcc9c05994742aa048f26d1bb3491073fac734d31 SHA512 23c020bb991f10c23c354b0708856881b64eb25c08018f8ef366d9d98d81ebd408c1d2fd4359264ba71945863026e46e16d21cfe25f0ac9a0c523688217d8362 +EBUILD coturn-4.6.2.ebuild 2239 BLAKE2B 3cd9b86adc41d20ffb80c4f0b7e293f45be3e5570900f711816d45430f54b820457f0f88659efe24cc6fdc0c0788549fa8f4ff5b6740a4c7a3bc29955ddb7da8 SHA512 7390bc878a1ca7dba04a5076aff1ca5ecaaf5c9db297f4a1d3bcb5a917a942581fb4876a7e07ff9b22448b0b91a2cf5487cad5670bfc9cfabd0821a7e3aa8f2e +EBUILD coturn-9999.ebuild 2239 BLAKE2B 3cd9b86adc41d20ffb80c4f0b7e293f45be3e5570900f711816d45430f54b820457f0f88659efe24cc6fdc0c0788549fa8f4ff5b6740a4c7a3bc29955ddb7da8 SHA512 7390bc878a1ca7dba04a5076aff1ca5ecaaf5c9db297f4a1d3bcb5a917a942581fb4876a7e07ff9b22448b0b91a2cf5487cad5670bfc9cfabd0821a7e3aa8f2e MISC metadata.xml 408 BLAKE2B 0105aa40210140e67d836f67867c65a3a42aaf0fb29515072ea357818eab1da26fcfd3fd436a23aaa0b139b3aa917dbf253f6eaf42421db011fe2d01163d4e94 SHA512 b2e3da210628f283adfa1dcd6b4ea62c3e49e2dc390e8addf15e286af7bfa2bfae90116c714f011f55f99ffb21ee598033e5ddade23f7bab2f03cc7a06f1512a 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..000000000000 --- 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} = 9999 ]; 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." -} 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." +} diff --git a/net-im/coturn/coturn-9999.ebuild b/net-im/coturn/coturn-9999.ebuild index 8c10c10306aa..0f909893645e 100644 --- a/net-im/coturn/coturn-9999.ebuild +++ b/net-im/coturn/coturn-9999.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} == *9999 ]]; 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 |