commit:     4191fce4033e78123f956115f857f94f63ab7550
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Jan  1 17:50:29 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Mon Jan  1 21:27:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4191fce4

net-im/eturnal: new package, add 1.12.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-im/eturnal/Manifest              |  1 +
 net-im/eturnal/eturnal-1.12.0.ebuild | 66 ++++++++++++++++++++++++++++++++++++
 net-im/eturnal/metadata.xml          | 13 +++++++
 3 files changed, 80 insertions(+)

diff --git a/net-im/eturnal/Manifest b/net-im/eturnal/Manifest
new file mode 100644
index 0000000000..f63060abde
--- /dev/null
+++ b/net-im/eturnal/Manifest
@@ -0,0 +1 @@
+DIST eturnal-1.12.0.tar.gz 919050 BLAKE2B 
76c7f0709f82231cff47609e234e2555d68f86df8efa6117351cea8e632b91d023bf22542953a083b0172f9b55f0b1a24dd4abee94cbfde8b86ff4e76b233b82
 SHA512 
b990fd010d26dc29ab69124dd6db354ab018c1b8882ef7f82631c06234b79027ba838a746d6c606a9f6678feffb6bcaa2b879270c3abe407ef509a5f50367774

diff --git a/net-im/eturnal/eturnal-1.12.0.ebuild 
b/net-im/eturnal/eturnal-1.12.0.ebuild
new file mode 100644
index 0000000000..ec8200c41c
--- /dev/null
+++ b/net-im/eturnal/eturnal-1.12.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit rebar3 systemd
+
+DESCRIPTION="STUN/TURN server"
+HOMEPAGE="
+       https://eturnal.net/
+       https://github.com/processone/eturnal
+"
+SRC_URI="https://eturnal.net/download/${P}.tar.gz";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+       >=dev-lang/erlang-21[ssl]
+       dev-libs/libyaml
+       dev-libs/openssl:=
+       >=dev-erlang/conf-0.1
+       dev-erlang/fast_tls
+       dev-erlang/fast_yaml
+       dev-erlang/p1_utils
+       >=dev-erlang/stun-1.2
+       dev-erlang/yval
+"
+RDEPEND="${DEPEND}
+       acct-user/eturnal
+"
+
+DOCS=( {CHANGELOG,README}.md doc/. )
+
+REBAR_PROFILE=distro
+
+src_configure() {
+       export ETURNAL_USER=eturnal
+       export ETURNAL_PREFIX="${EPREFIX}"/opt/eturnal
+       export ETURNAL_ETC_DIR="${EPREFIX}"/etc
+       export ERL_EPMD_ADDRESS=""
+       export CODE_LOADING=dynamic
+
+       export SKIP_DEPS=true
+
+       rebar3_src_configure
+}
+
+rebar3_install_release() {
+       mkdir -p "${ED}"/opt/eturnal || die
+       cp -pR bin lib releases "${ED}"/opt/eturnal/ || die
+
+       systemd_dounit etc/systemd/system/eturnal.service
+       newinitd etc/openrc/eturnal.initd eturnal
+       newconfd etc/openrc/eturnal.confd eturnal
+
+       insinto /etc
+       doins etc/eturnal.yml
+       doins -r etc/logrotate.d
+
+       keepdir /opt/eturnal/{log,run}
+       fowners eturnal:turnserver /opt/eturnal/{log,run}
+
+       dosym -r /opt/eturnal/bin/eturnalctl /usr/sbin/eturnalctl
+}

diff --git a/net-im/eturnal/metadata.xml b/net-im/eturnal/metadata.xml
new file mode 100644
index 0000000000..e9e540aab7
--- /dev/null
+++ b/net-im/eturnal/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+               <maintainer type="person">
+                               <email>[email protected]</email>
+                               <name>Anna</name>
+               </maintainer>
+               <upstream>
+                               <remote-id 
type="github">processone/eturnal</remote-id>
+                               
<bugs-to>https://github.com/processone/eturnal/issues</bugs-to>
+                               <doc>https://eturnal.net/doc/</doc>
+               </upstream>
+</pkgmetadata>

Reply via email to