This commit is contained in:
ace
2025-12-08 00:42:50 +03:00
parent 7aaf6cb565
commit 3a29f1e8a7
43 changed files with 13471 additions and 0 deletions

1
net-libs/dhtnet/Manifest Normal file
View File

@@ -0,0 +1 @@
EBUILD dhtnet-9999.ebuild 1241 BLAKE2B 927e694104a1fa3ce86b8385c88b678d040477df2e1ddd0333cba14de305238e737a0ba4ff18c1f97b4a778c98873a78fed60c7af9831aef3117f141a4ed4d4b SHA512 36d832b12e36a42219c8fb5cf9ccf25c8bbc0ee6d47a7e7563c63f068b13e4e7ef52b57a734167fe80061755c62174ae52edfb6073d4a2d600ad22ef92c4c318

View File

@@ -0,0 +1,62 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="The DHTNet library is designed to establish secure peer-to-peer connections using public-key authentication"
HOMEPAGE="https://github.com/savoirfairelinux/dhtnet"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}"
EGIT_COMMIT="6c5ee3a21556d668d047cdedb5c4b746c3c6bdb2"
else
SRC_URI="https://github.com/savoirfairelinux/dhtnet/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="tools"
DEPEND="
dev-cpp/yaml-cpp
net-libs/libnatpmp
net-libs/libupnp
app-crypt/argon2
net-libs/opendht
net-libs/pjproject[sfl(+),speex(+),gsm(+),portaudio(+)]
dev-libs/libfmt
dev-cpp/asio
dev-cpp/msgpack-cxx
|| (
net-libs/gnutls
dev-libs/nettle
)
tools? ( sys-libs/readline:0 )
"
RDEPEND="
${DEPEND}
"
src_configure() {
local mycmakeargs=(
-DDHTNET_PUPNP=ON
-DDHTNET_NATPMP=ON
-DBUILD_TOOLS=$(usex tools)
-DBUILD_BENCHMARKS=OFF
-DBUILD_DEPENDENCIES=OFF
-DDNC_SYSTEMD=OFF
-DBUILD_EXAMPLE=OFF
-DBUILD_TESTING=OFF
)
cmake_src_configure
}
src_install() {
cmake_src_install
}

View File

@@ -0,0 +1,6 @@
DIST opendht-3.5.4.tar.gz 532306 BLAKE2B 2dd34abe704e6cf0c751474243d033de7b205ae0f598094e542b94c32944dedc83cdb34d22d19561af38fb01a426af91b8303a45855c3c1106809530b04f1600 SHA512 25d11e8bbadc844e449e2baccd38ae55e2b0a3c165b889c9a296ed39eb4c263a177a9171ede063cd493d52fea4ccedf3c2b012dad64af1c8bb96f6024ee56498
DIST opendht-3.5.5.tar.gz 533772 BLAKE2B a4e824f4d0d91a271416ca083a41818b66883c4630ece78e8a5ba2ed877efb14d527c63f6e34dc9f47497fdbb05f0254ca7142962359f5ca5c705dfe48aae266 SHA512 0f3783be2637c72c3f5f1c1ded49dcbc84d1cb7ba338550c0b3d20995b56287eb37b4ff283773d7262202ec2f9e9df2160db717e4fdd9bfcb8331edc628b46cf
DIST opendht-3.6.0.tar.gz 533860 BLAKE2B fcc2a1fc6a11062fe2382568446ac876580c219e00b6931a3f70b2aca5df0bff9e23f40b5129169963ee6f254c778f010370fd18f2532f0731adcf129d291c5e SHA512 f7cd106d9d96b51ad9775486c09fdef3a147678aeda5a4a403f1a0d6cc324a79ed612a40abefff373420f02c016c2884b83a2105eb4388a06e76486346963235
EBUILD opendht-3.5.4.ebuild 1931 BLAKE2B 80335158ab3f07fd1cc907f77eef22b76d33f4ca87775a4379a4d5e9c130115c2d3c35006a1728c3a9939b4b1e1dfbbf3db527b1b6cea85904d1de6cad085821 SHA512 06f9797d732069ab35f8b4764d3919091a5263a352a40aee8bb1937ee66c75c63e9436d1443ed0d54d8156fda73d395d9bd216e3a60da4c375327bf6249ce10c
EBUILD opendht-3.5.5.ebuild 1931 BLAKE2B 80335158ab3f07fd1cc907f77eef22b76d33f4ca87775a4379a4d5e9c130115c2d3c35006a1728c3a9939b4b1e1dfbbf3db527b1b6cea85904d1de6cad085821 SHA512 06f9797d732069ab35f8b4764d3919091a5263a352a40aee8bb1937ee66c75c63e9436d1443ed0d54d8156fda73d395d9bd216e3a60da4c375327bf6249ce10c
EBUILD opendht-3.6.0.ebuild 1948 BLAKE2B e7b4c81957b980adf43443c406b413949bcd4d827add4d8281a780bc408e683992f4dab73db7ae29bbb8a43227ee04de1969287c3c799b2a307cb6ba01833bae SHA512 8744a56953eb8db2bfda54a1843acd3e9f2c150d1a6c227bdbf3d7b71e27b5fc61f3de66d660378e69e5fa0ba4c3b64ded0c4639de592b9d0f8fa12b01ce397c

View File

@@ -0,0 +1,76 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{{8..13},13t} )
inherit cmake python-r1
DESCRIPTION="A lightweight C++11 Distributed Hash Table implementation"
HOMEPAGE="https://github.com/savoirfairelinux/opendht"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}"
else
SRC_URI="https://github.com/savoirfairelinux/opendht/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="doc +dht-index +http-client +peer-discovery +proxy-client +proxy-server +proxy-server-identity +proxy-openssl +push-notifications python systemd +tools"
DEPEND="
app-crypt/argon2
dev-libs/libfmt
dev-util/cppunit
dev-cpp/asio
dev-cpp/msgpack-cxx
net-libs/restinio
|| (
net-libs/gnutls
dev-libs/nettle
)
python? ( dev-python/cython[${PYTHON_USEDEP}] )
tools? ( sys-libs/readline:0 )
proxy-openssl? ( dev-libs/openssl:= )
doc? ( app-text/doxygen )
"
RDEPEND="
${DEPEND}
${PYTHON_DEPS}
"
#REQUIRED_USE="http-client? ( !proxy-server !proxy-client ) ${PYTHON_REQUIRED_USE}"
src_configure() {
local mycmakeargs=(
-DOPENDHT_PYTHON=$(usex python)
-DOPENDHT_TOOLS=$(usex tools)
-DOPENDHT_SYSTEMD=$(usex systemd)
-DOPENDHT_HTTP=$(usex http-client)
-DOPENDHT_INDEX=$(usex dht-index)
-DOPENDHT_PEER_DISCOVERY=$(usex peer-discovery)
-DOPENDHT_PROXY_SERVER=$(usex proxy-server)
-DOPENDHT_PROXY_SERVER_IDENTITY=$(usex proxy-server-identity)
-DOPENDHT_PROXY_CLIENT=$(usex proxy-client)
-DOPENDHT_PROXY_OPENSSL=$(usex proxy-openssl)
-DOPENDHT_PUSH_NOTIFICATIONS=$(usex push-notifications)
-DOPENDHT_DOCUMENTATION=$(usex doc)
-DOPENDHT_SANITIZE=OFF
-DOPENDHT_TESTS_NETWORK=OFF
-DOPENDHT_C=ON
-DOPENDHT_CPACK=ON
-DOPENDHT_DOWNLOAD_DEPS=OFF
)
cmake_src_configure
}
src_install() {
cmake_src_install
einstalldocs
}

View File

@@ -0,0 +1,76 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{{8..13},13t} )
inherit cmake python-r1
DESCRIPTION="A lightweight C++11 Distributed Hash Table implementation"
HOMEPAGE="https://github.com/savoirfairelinux/opendht"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}"
else
SRC_URI="https://github.com/savoirfairelinux/opendht/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="doc +dht-index +http-client +peer-discovery +proxy-client +proxy-server +proxy-server-identity +proxy-openssl +push-notifications python systemd +tools"
DEPEND="
app-crypt/argon2
dev-libs/libfmt
dev-util/cppunit
dev-cpp/asio
dev-cpp/msgpack-cxx
net-libs/restinio
|| (
net-libs/gnutls
dev-libs/nettle
)
python? ( dev-python/cython[${PYTHON_USEDEP}] )
tools? ( sys-libs/readline:0 )
proxy-openssl? ( dev-libs/openssl:= )
doc? ( app-text/doxygen )
"
RDEPEND="
${DEPEND}
${PYTHON_DEPS}
"
#REQUIRED_USE="http-client? ( !proxy-server !proxy-client ) ${PYTHON_REQUIRED_USE}"
src_configure() {
local mycmakeargs=(
-DOPENDHT_PYTHON=$(usex python)
-DOPENDHT_TOOLS=$(usex tools)
-DOPENDHT_SYSTEMD=$(usex systemd)
-DOPENDHT_HTTP=$(usex http-client)
-DOPENDHT_INDEX=$(usex dht-index)
-DOPENDHT_PEER_DISCOVERY=$(usex peer-discovery)
-DOPENDHT_PROXY_SERVER=$(usex proxy-server)
-DOPENDHT_PROXY_SERVER_IDENTITY=$(usex proxy-server-identity)
-DOPENDHT_PROXY_CLIENT=$(usex proxy-client)
-DOPENDHT_PROXY_OPENSSL=$(usex proxy-openssl)
-DOPENDHT_PUSH_NOTIFICATIONS=$(usex push-notifications)
-DOPENDHT_DOCUMENTATION=$(usex doc)
-DOPENDHT_SANITIZE=OFF
-DOPENDHT_TESTS_NETWORK=OFF
-DOPENDHT_C=ON
-DOPENDHT_CPACK=ON
-DOPENDHT_DOWNLOAD_DEPS=OFF
)
cmake_src_configure
}
src_install() {
cmake_src_install
einstalldocs
}

View File

@@ -0,0 +1,77 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{{8..13},13t} )
inherit cmake python-r1
DESCRIPTION="A lightweight C++11 Distributed Hash Table implementation"
HOMEPAGE="https://github.com/savoirfairelinux/opendht"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/savoirfairelinux/${PN}"
else
SRC_URI="https://github.com/savoirfairelinux/opendht/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="doc +dht-index +http-client +peer-discovery +proxy-client +proxy-server +proxy-server-identity +proxy-openssl +push-notifications python systemd +tools"
DEPEND="
app-crypt/argon2
dev-libs/libfmt
dev-util/cppunit
dev-cpp/asio
dev-cpp/msgpack-cxx
net-libs/restinio
dev-cpp/simdutf
|| (
net-libs/gnutls
dev-libs/nettle
)
python? ( dev-python/cython[${PYTHON_USEDEP}] )
tools? ( sys-libs/readline:0 )
proxy-openssl? ( dev-libs/openssl:= )
doc? ( app-text/doxygen )
"
RDEPEND="
${DEPEND}
${PYTHON_DEPS}
"
#REQUIRED_USE="http-client? ( !proxy-server !proxy-client ) ${PYTHON_REQUIRED_USE}"
src_configure() {
local mycmakeargs=(
-DOPENDHT_PYTHON=$(usex python)
-DOPENDHT_TOOLS=$(usex tools)
-DOPENDHT_SYSTEMD=$(usex systemd)
-DOPENDHT_HTTP=$(usex http-client)
-DOPENDHT_INDEX=$(usex dht-index)
-DOPENDHT_PEER_DISCOVERY=$(usex peer-discovery)
-DOPENDHT_PROXY_SERVER=$(usex proxy-server)
-DOPENDHT_PROXY_SERVER_IDENTITY=$(usex proxy-server-identity)
-DOPENDHT_PROXY_CLIENT=$(usex proxy-client)
-DOPENDHT_PROXY_OPENSSL=$(usex proxy-openssl)
-DOPENDHT_PUSH_NOTIFICATIONS=$(usex push-notifications)
-DOPENDHT_DOCUMENTATION=$(usex doc)
-DOPENDHT_SANITIZE=OFF
-DOPENDHT_TESTS_NETWORK=OFF
-DOPENDHT_C=ON
-DOPENDHT_CPACK=ON
-DOPENDHT_DOWNLOAD_DEPS=OFF
)
cmake_src_configure
}
src_install() {
cmake_src_install
einstalldocs
}

View File

@@ -0,0 +1,3 @@
AUX sfl-pjproject-2.15.1.patch 485727 BLAKE2B 9c5d94ac9aefd625c6aad055bca90bf64eb3fcd89ba3c110d06c483195e680fc8e7c67c309412c742bfa956df99897a87551863a5282fb6fb024f5d1f2a1b9ff SHA512 27f40e057218096dd1a5ce345643b2f6746c51b173ff5c363515b52a167ae9458e4686e23b779cb3d8ec536c5ca8b4d33ccfef147e459a3e5f09ed6e83f87189
DIST pjproject-2.15.1.tar.gz 10425868 BLAKE2B cb4fdeca8559460f5335ffa7723e58fea3cb3f81cb55170ab7694b7828e3179c39c0fc376bebed566a212ec2b102349fc78593e414cb03864e4b111cdbf8b77c SHA512 2f83ed32f16c27808d3b9cc8f3b364c68fe88caae9765012b385a0fea70ba8ef4dcfebe3b130156047546720351a527e17d6a1e967877d6a44a6ff3a1f695599
EBUILD pjproject-2.15.1-r2.ebuild 4035 BLAKE2B af7acfa7c32ef22939ba3908f6f57f14e4b550eacc56912bc10dfc1c98c22a66a7f366f12d678c2c50546b55804b09955ed61d7cd1d342ef38b0b88233d6d3fc SHA512 34809afb773e7f949befd363cd4bcb9e2e78da54455dd15450b9523265d6e21640ba028a18d858f21ffefd907193f5c2d5ee6961747837d354629db0766783a8

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,145 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# TODO: Figure out a way to disable SRTP from pjproject entirely.
EAPI=8
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="Open source SIP, Media, and NAT Traversal Library"
HOMEPAGE="https://github.com/pjsip/pjproject https://www.pjsip.org/"
SRC_URI="https://github.com/pjsip/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 x86"
# g729 not included due to special bcg729 handling.
CODEC_FLAGS="g711 g722 g7221 gsm ilbc speex l16"
VIDEO_FLAGS="sdl ffmpeg v4l2 openh264 libyuv vpx"
SOUND_FLAGS="alsa portaudio"
IUSE="amr debug epoll examples opus resample silk srtp ssl static-libs webrtc sfl
${CODEC_FLAGS} g729
${VIDEO_FLAGS}
${SOUND_FLAGS}"
RDEPEND="
sys-apps/util-linux
alsa? ( media-libs/alsa-lib )
amr? ( media-libs/opencore-amr )
ffmpeg? ( media-video/ffmpeg:= )
g729? ( media-libs/bcg729 )
gsm? ( media-sound/gsm )
ilbc? ( media-libs/libilbc )
libyuv? ( media-libs/libyuv:= )
openh264? ( media-libs/openh264 )
opus? ( media-libs/opus )
portaudio? ( media-libs/portaudio )
resample? ( media-libs/libsamplerate )
sdl? ( media-libs/libsdl2 )
speex? (
media-libs/speex
media-libs/speexdsp
)
srtp? ( >=net-libs/libsrtp-2.3.0:= )
ssl? ( dev-libs/openssl:0= )
vpx? ( media-libs/libvpx:= )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
if use sfl; then
eapply "${FILESDIR}"/sfl-${P}.patch
else
rm configure || die "Unable to remove unwanted wrapper"
mv aconfigure.ac configure.ac || die "Unable to rename configure script source"
eautoreconf
cp "${FILESDIR}/pjproject-2.13.1-r1-config_site.h" "${S}/pjlib/include/pj/config_site.h" \
|| die "Unable to create config_site.h"
fi
}
_pj_enable() {
usex "$1" '' "--disable-${2:-$1}"
}
_pj_get_define() {
local r="$(sed -nre "s/^#define[[:space:]]+$1[[:space:]]+//p" "${S}/pjlib/include/pj/config_site.h")"
[[ -z "${r}" ]] && die "Unable to fine #define $1 in config_site.h"
echo "$r"
}
_pj_set_define() {
local c=$(_pj_get_define "$1")
[[ "$c" = "$2" ]] && return 0
sed -re "s/^#define[[:space:]]+$1[[:space:]].*/#define $1 $2/" -i "${S}/pjlib/include/pj/config_site.h" \
|| die "sed failed updating $1 to $2."
[[ "$(_pj_get_define "$1")" != "$2" ]] && die "sed failed to perform update for $1 to $2."
}
_pj_use_set_define() {
_pj_set_define "$2" $(usex "$1" 1 0)
}
src_configure() {
if use sfl; then
videnable="--enable-video"
else
local myconf=()
local videnable="--disable-video"
local t
use debug || append-cflags -DNDEBUG=1
for t in ${CODEC_FLAGS}; do
myconf+=( $(_pj_enable ${t} ${t}-codec) )
done
myconf+=( $(_pj_enable g729 bcg729) )
for t in ${VIDEO_FLAGS}; do
myconf+=( $(_pj_enable ${t}) )
use "${t}" && videnable="--enable-video"
done
[ "${videnable}" = "--enable-video" ] && _pj_set_define PJMEDIA_HAS_VIDEO 1 || _pj_set_define PJMEDIA_HAS_VIDEO 0
fi
# bug 955077 and bug 955129
use libyuv && myconf+=( --with-external-yuv )
LD="$(tc-getCXX)" econf \
--enable-shared \
${videnable} \
$(_pj_enable alsa sound) \
$(_pj_enable amr opencore-amr) \
$(_pj_enable epoll) \
$(_pj_enable opus) \
$(_pj_enable portaudio ext-sound) \
$(_pj_enable resample libsamplerate) \
$(_pj_enable resample resample-dll) \
$(_pj_enable resample) \
$(_pj_enable silk) \
$(_pj_enable speex speex-aec) \
$(_pj_enable ssl) \
$(_pj_enable webrtc libwebrtc) \
$(use_with gsm external-gsm) \
$(use_with portaudio external-pa) \
$(use_with speex external-speex) \
$(usex srtp --with-external-srtp --disable-libsrtp) \
"${myconf[@]}"
}
src_install() {
default
newbin pjsip-apps/bin/pjsua-${CHOST} pjsua
newbin pjsip-apps/bin/pjsystest-${CHOST} pjsystest
if use examples; then
insinto "/usr/share/doc/${PF}/examples"
doins -r pjsip-apps/src/samples
fi
use static-libs || rm "${ED}/usr/$(get_libdir)"/*.a || die "Error removing static archives"
}

View File

@@ -0,0 +1,2 @@
DIST restinio-0.7.7.tar.gz 448624 BLAKE2B efd0c4d0a40412d7a86b3cbf86ca2a34cf6bf7d649958cd6d039130d71951e79b9c3d39984d3d85d45f8c063b95153e55e4f7d981c702b5a4ecc0390aae3ad02 SHA512 02427f50c725ad15ba16518d946dbeea881d9ba0c5d1783c0645ca3e6c684ab4063f6fac9c69dd74366d4aef53a6b3333ec31cbb5b8ca3935c7ab427f24f8738
EBUILD restinio-0.7.7.ebuild 1039 BLAKE2B e521c7c63c11938907feeb6654062a989da3d64ca65de628e4dcaff3cb1e87ca79e800dd6ca4317e3a047adf43d0f24b2f957072588f7b74871294851de91a4d SHA512 c8553c1151560f040ccb97794b2ebe3a11d6cd72d1d2302a5693fdd221e1347de92b0a1aadba1b96772e85c0c7e874eb976a81eac64ced543ea2ee199c01cd43

View File

@@ -0,0 +1,55 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="RESTinio is a C++17 library that gives you an embedded HTTP/Websocket server"
HOMEPAGE="https://stiffstream.com"
if [[ "${PV}" == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Stiffstream/restinio/${PN}"
else
SRC_URI="https://github.com/Stiffstream/restinio/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE=""
DEPEND="
dev-libs/libfmt
dev-cpp/asio
net-libs/llhttp
dev-cpp/expected-lite
dev-cpp/catch
"
RDEPEND="
${DEPEND}
"
S="${WORKDIR}/${P}/dev"
src_configure() {
local mycmakeargs=(
-DRESTINIO_TEST=Off
-DRESTINIO_SAMPLE=Off
-DRESTINIO_BENCHMARK=Off
-DRESTINIO_WITH_SOBJECTIZER=Off
-DRESTINIO_DEP_STANDALONE_ASIO=system
-DRESTINIO_DEP_LLHTTP=system
-DRESTINIO_DEP_FMT=system
-DRESTINIO_DEP_EXPECTED_LITE=system
-Wno-dev
)
cmake_src_configure
}
src_install() {
cmake_src_install
}