diff --git a/net-im/eturnal/Manifest b/net-im/eturnal/Manifest index f63060abde..24d95afe24 100644 --- a/net-im/eturnal/Manifest +++ b/net-im/eturnal/Manifest @@ -1 +1,2 @@ DIST eturnal-1.12.0.tar.gz 919050 BLAKE2B 76c7f0709f82231cff47609e234e2555d68f86df8efa6117351cea8e632b91d023bf22542953a083b0172f9b55f0b1a24dd4abee94cbfde8b86ff4e76b233b82 SHA512 b990fd010d26dc29ab69124dd6db354ab018c1b8882ef7f82631c06234b79027ba838a746d6c606a9f6678feffb6bcaa2b879270c3abe407ef509a5f50367774 +DIST eturnal-1.12.1.tar.gz 965160 BLAKE2B 7a908b52beda6a9acda92fec21ff5583e8bbd657b47ebac23ed1f589e576f19708a4c17261a1500b88a3d6f0f5a2c9163713485e83848639c6cc635f60e941cc SHA512 ffd8e9376944babd4a3afade3cc0421ad146f8ec24e04f0b59964e3f1d6f8b05951e7d59bab5ac940e5b9e818450346cad1f42c9c0d30b76ec4c5e1590c885eb diff --git a/net-im/eturnal/eturnal-1.12.1.ebuild b/net-im/eturnal/eturnal-1.12.1.ebuild new file mode 100644 index 0000000000..4556b00134 --- /dev/null +++ b/net-im/eturnal/eturnal-1.12.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 2024-2025 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=" + acct-user/eturnal + >=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}" + +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 "${FILESDIR}"/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 +}