summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-11 00:45:39 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-11 00:45:39 +0000
commit6c988f4ed171aed46326587a0ec0d64297b20f49 (patch)
treea1e28a95096953f81b35cb145abe37b83f20c174 /net-im
parentf50d60b8eb707b56133e594376e993b98e726b5d (diff)
gentoo auto-resync : 11:03:2024 - 00:45:38
Diffstat (limited to 'net-im')
-rw-r--r--net-im/Manifest.gzbin9414 -> 9419 bytes
-rw-r--r--net-im/ejabberd/Manifest4
-rw-r--r--net-im/ejabberd/ejabberd-24.02.ebuild220
-rw-r--r--net-im/synapse/Manifest2
-rw-r--r--net-im/synapse/synapse-1.100.0.ebuild2
5 files changed, 226 insertions, 2 deletions
diff --git a/net-im/Manifest.gz b/net-im/Manifest.gz
index e22b595f24a4..d7453d862f85 100644
--- a/net-im/Manifest.gz
+++ b/net-im/Manifest.gz
Binary files differ
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest
index 95417b0ebb4d..d041b166b1f1 100644
--- a/net-im/ejabberd/Manifest
+++ b/net-im/ejabberd/Manifest
@@ -10,8 +10,12 @@ DIST ejabberd-23.04.tar.gz 2581686 BLAKE2B 292da892f62d6940418980bfaec63f3aa570f
DIST ejabberd-23.10-fix-ejabberdctl.patch 1945 BLAKE2B 3e9e690802dd201aaba50b16435c98e64b52bfa2c77dd054c4db538f8bd9035386282e43b3c51fa444119901addeb2c3174d55d66a515847f80771e350e0a808 SHA512 0a6780915177fa4012a194d3fa755a812f0bed5d446df630c46834953aad54679450ff9fdaa1aa7fb415de5bb905a3dc2b28c65b7b32f0fd83cd99634bb5073d
DIST ejabberd-23.10-set-ejabberd-opts.patch 1508 BLAKE2B 1692fb54b3aeb9838f057d32ebebffbcca5761c820d95a377b257966094e973465740b224d17bebdae0a4f3d0b5ebe35c9c1b005217a3e9baae69fc2511c69aa SHA512 aa7f13be15ec4cb0a9c17e5c1519d5fd94ccee75b46e3a8ee1de39e23000c7faad530208c049dd4a290be18b8b9f1c866584a9abf3f288a8f2fd66c2d72e4fa5
DIST ejabberd-23.10.tar.gz 2615643 BLAKE2B 0c3adfac5d99a33f37b0bd9970489f7a9e32bc1a832efe510be3281cd4ac2df890aa7eeab5758149b3cb16a2e6a71937ee955a86113bba14540d5c685f900ef6 SHA512 d42af356b0b6ebbba757de4256e308766f046d6c2a7df355330fbc9a9fb329635a22c2f9e5fc4d0a9dbe2d7e5488efe85000c4d04a9a0ce12921d839899e0c45
+DIST ejabberd-24.02-fix-ejabberdctl.patch 1945 BLAKE2B 3e9e690802dd201aaba50b16435c98e64b52bfa2c77dd054c4db538f8bd9035386282e43b3c51fa444119901addeb2c3174d55d66a515847f80771e350e0a808 SHA512 0a6780915177fa4012a194d3fa755a812f0bed5d446df630c46834953aad54679450ff9fdaa1aa7fb415de5bb905a3dc2b28c65b7b32f0fd83cd99634bb5073d
+DIST ejabberd-24.02-set-ejabberd-opts.patch 1508 BLAKE2B 1692fb54b3aeb9838f057d32ebebffbcca5761c820d95a377b257966094e973465740b224d17bebdae0a4f3d0b5ebe35c9c1b005217a3e9baae69fc2511c69aa SHA512 aa7f13be15ec4cb0a9c17e5c1519d5fd94ccee75b46e3a8ee1de39e23000c7faad530208c049dd4a290be18b8b9f1c866584a9abf3f288a8f2fd66c2d72e4fa5
+DIST ejabberd-24.02.tar.gz 2531049 BLAKE2B 6d18393dd909ef580fdcc173fb927a1302f7d444e5587c30f36e5bbfe7634b61c14e06d31f386123ec8732f0c49180a10b0abbd7dea42589d1d0ec9df54ca0f4 SHA512 43dcf1c0f1a2a0390de9edfa24705be6b5bcfdc83b307c175effeae043b4a67dd00c4930c5e43fda98c7c3e0060fac7198313cd27b7962a8997e006ef255df0c
EBUILD ejabberd-22.10.ebuild 6925 BLAKE2B acf99298e11c8bb573be35d3cfda71d2789b884027bc2366a432b6d3a9df78c82868fe075d8f99b0b62a11be332fa728910c7677a05e1cc5a28fbaa4820658dc SHA512 f93095f1d16a3a85d9c2b44c12f04656f3222614826bf5b6d8808cecfe9a1aad1904a0a56fe5874a7f96f549a74738587e13088ee6759b7678fa7fd2593a87d3
EBUILD ejabberd-23.01.ebuild 6925 BLAKE2B 6253509421453e88062317a7c6f28a9c7ad3c76d637392e3d5ee65920f9ffeea3e4f39c2da3c1ed25d5e5f7cd324ab473517dda89c64cf6bfbe7cc52604e27a6 SHA512 6227a9c5826f106b03878c6bdb6a91bf13ace70a21afb40c598d84a1db69f0f5a6d6dcd2f88067fee8694678e713efd703ed00c8fd1bf886383e7129a649d7de
EBUILD ejabberd-23.04.ebuild 6776 BLAKE2B c7f404b51df06d7c28212f2fb2f22ed54c8289ae07fcf75bfb6ca4bb43b6493d589a4e291e3f836d7945ab045f66fd88babd29427366dd34a5bbdff39d8c05df SHA512 51a7a89f0b6c0f7560566ef474e362902a54b22471e10af59c90aaec5739178742e00bffedd090d0cc9d932f3d00f21eb3b1a93ff459c933c68c07151facf33d
EBUILD ejabberd-23.10-r1.ebuild 7165 BLAKE2B 55cc3aa2820eebb73aa67e81c15965e6e0139d41787063e7121c3231d9be4d31dc6d33e947ffc81ace964620cc2fd1d18a55892f8fe7c0c0f150521225985c3c SHA512 d33787538c827b08f7e3e4a9b468dce3d72a86d749db242420d965246516316a916017706d6723baf70fcf89572c717ec0fdb775aaae939d2db17bf0e7c25c4e
+EBUILD ejabberd-24.02.ebuild 7030 BLAKE2B 887ec0627892bf69e66629816b3776496d8c8f26fd324b9168cb7ffe723efe646e5a8ce879b10677c83d3b95aed9f6c93b5a3dbe77a0494c1e1af5fe1b419d4e SHA512 4a7d753a3fa8c863f169de9fd7f3797cd66271fb6b59f2b3948d0101065f21d0088f50e2fd53cd1703c0ea1030731acf96dddda5e128dbd22f00a3605a98279d
MISC metadata.xml 1484 BLAKE2B 74f0ec404b37dfe72d8751dd8bc8f0ba0b56f334939a5311af70df4616f19e536209b9be7361b35c8e5d316fbce623afdbf7e3ce53a139eb0d2e0d895275ae3c SHA512 793584e1e44c3a651b15eed84a91a801cd809392ccf7623f1a1b222e65641f8dca18515fb90e42e4a51178f4686d3c61778e14834be23feb23b269b4f07c91fb
diff --git a/net-im/ejabberd/ejabberd-24.02.ebuild b/net-im/ejabberd/ejabberd-24.02.ebuild
new file mode 100644
index 000000000000..1a918b3c7001
--- /dev/null
+++ b/net-im/ejabberd/ejabberd-24.02.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools pam rebar systemd
+
+DESCRIPTION="Robust, scalable and extensible XMPP server"
+HOMEPAGE="https://www.ejabberd.im/ https://github.com/processone/ejabberd/"
+SRC_URI="
+ https://github.com/processone/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/processone/ejabberd/commit/841d5c029905d5feabe07ab5a4db3aacfeedefb6.patch ->
+ ${P}-fix-ejabberdctl.patch
+ https://github.com/processone/ejabberd/commit/4ea46c57653b3d9ea9c1386d1cc3dd07163d74d6.patch ->
+ ${P}-set-ejabberd-opts.patch
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~sparc ~x86"
+REQUIRED_USE="mssql? ( odbc )"
+# TODO: Add 'tools' flag.
+IUSE="captcha debug full-xml ldap mssql mysql odbc pam postgres redis
+ roster-gw selinux sip sqlite +stun zlib"
+
+RESTRICT="test"
+
+# TODO: Add dependencies for 'tools' flag enabled.
+# TODO: tools? (
+# TODO: >=dev-erlang/luerl-0.3
+# TODO: )
+DEPEND="
+ >=dev-lang/erlang-20[odbc?,ssl]
+ >=dev-erlang/cache_tab-1.0.30
+ >=dev-erlang/eimp-1.0.22
+ >=dev-erlang/fast_tls-1.1.19
+ >=dev-erlang/fast_xml-1.1.51
+ >=dev-erlang/fast_yaml-1.0.36
+ >=dev-erlang/yconf-1.0.15
+ >=dev-erlang/jiffy-1.0.5
+ >=dev-erlang/jose-1.11.5
+ >=dev-erlang/lager-3.9.1
+ >=dev-erlang/p1_oauth2-0.6.14
+ >=dev-erlang/p1_utils-1.0.25
+ >=dev-erlang/stringprep-1.0.29
+ >=dev-erlang/xmpp-1.8.1
+ >=dev-erlang/pkix-1.0.9
+ >=dev-erlang/mqtree-1.0.16
+ >=dev-erlang/idna-6.0.0-r1
+ >=dev-erlang/p1_acme-1.0.22
+ >=dev-erlang/base64url-1.0.1
+ ldap? ( =net-nds/openldap-2* )
+ mysql? ( >=dev-erlang/p1_mysql-1.0.23 )
+ odbc? ( dev-db/unixODBC )
+ pam? ( >=dev-erlang/epam-1.0.14 )
+ postgres? ( >=dev-erlang/p1_pgsql-1.1.25 )
+ redis? ( >=dev-erlang/eredis-1.2.0 )
+ sip? ( >=dev-erlang/esip-1.0.52 )
+ sqlite? ( >=dev-erlang/sqlite3-1.1.14 )
+ stun? ( >=dev-erlang/stun-1.2.12 )
+ zlib? ( >=dev-erlang/ezlib-1.0.12 )
+"
+RDEPEND="
+ ${DEPEND}
+ >=acct-user/ejabberd-2[pam?]
+ captcha? ( media-gfx/imagemagick[truetype,png] )
+ selinux? ( sec-policy/selinux-jabber )
+"
+
+DOCS=( CHANGELOG.md README.md )
+PATCHES=(
+ "${FILESDIR}/ejabberd-22.10-adjust-ejabberd.service.template-to-Gentoo.patch"
+)
+
+# Get path to ejabberd lib directory.
+#
+# This is the path ./configure script Base for this path is path set in
+# ./configure script which is /usr/lib by default. If libdir is explicitely set
+# to something else than this should be adjusted here as well.
+get_ejabberd_path() {
+ echo "/usr/$(get_libdir)/${P}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ rebar_remove_deps
+
+ # Set paths to ejabberd lib directory consistently to point always to directory
+ # suffixed with version.
+ sed -e "/^EJABBERDDIR[[:space:]]*=/{s:ejabberd:${P}:}" \
+ -i "${S}/Makefile.in" \
+ || die 'failed to set ejabberd path in Makefile.in'
+
+ # Get epam-wrapper from 'files' directory and correct path to lib directory in
+ # it. epam-wrapper is placed into work directory. It is assumed no epam-wrapper
+ # file exists there already.
+ local epam_wrapper_src="${FILESDIR}/epam-wrapper"
+ local epam_wrapper_dst="${S}/epam-wrapper"
+ [[ -e ${epam_wrapper_dst} ]] && die 'epam-wrapper already exists'
+ sed -r -e "s@^(ERL_LIBS=).*\$@\1${EPREFIX}$(get_erl_libs)@" \
+ "${epam_wrapper_src}" >"${epam_wrapper_dst}" \
+ || die 'failed to install epam-wrapper'
+
+ rebar_fix_include_path fast_xml
+ rebar_fix_include_path p1_utils
+ rebar_fix_include_path xmpp
+
+ # Fix bug #591862. ERL_LIBS should point directly to ejabberd directory
+ # rather than its parent which is default. That way ejabberd directory
+ # takes precedence is module lookup.
+ local ejabberd_erl_libs="$(get_ejabberd_path):$(get_erl_libs)"
+ sed -e "s|\(ERL_LIBS=\)'{{libdir}}'\.*|\1${ejabberd_erl_libs}|" \
+ -i "${S}/ejabberdctl.template" \
+ || die 'failed to set ERL_LIBS in ejabberdctl.template'
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
+ --localstatedir="${EPREFIX}/var" \
+ --enable-user=${PN} \
+ $(use_enable debug) \
+ $(use_enable full-xml) \
+ $(use_enable mssql) \
+ $(use_enable mysql) \
+ $(use_enable odbc) \
+ $(use_enable pam) \
+ $(use_enable postgres pgsql) \
+ $(use_enable redis) \
+ $(use_enable roster-gw roster-gateway-workaround) \
+ $(use_enable sqlite) \
+ $(use_enable sip) \
+ $(use_enable stun) \
+ $(use_enable zlib)
+
+ # more options to support
+ # --enable-elixir requires https://github.com/elixir-lang/elixir
+}
+
+src_compile() {
+ # Note that we also add ejabberdctl.example, which will be used by
+ # ejabberd's build system to create /usr/sbin/ejabberdctl, as
+ # target. Otherwise, ejabberdctl.example is due to be created by the
+ # 'install' target (as per upstream's Makefile.in). However when
+ # invoke the 'install' target (in src_install below), DESTDIR is
+ # set, which causes DESTDIR to scope into the ejabberdctl.example
+ # generation.
+ emake REBAR='rebar -v' src ejabberdctl.example ejabberd.service
+}
+
+src_install() {
+ default
+
+ if use pam; then
+ local epam_path="$(get_ejabberd_path)/priv/bin/epam"
+
+ pamd_mimic_system xmpp auth account
+ into "$(get_ejabberd_path)/priv"
+ newbin epam-wrapper epam
+ fi
+
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ newinitd "${FILESDIR}/${PN}-22.05.initd" "${PN}"
+ systemd_dounit "${PN}.service"
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}-22.05.logrotate" "${PN}"
+
+ keepdir /var/{lib,log}/ejabberd
+}
+
+pkg_postinst() {
+ local migrate_to_ejabberd_user=false
+
+ if [[ ${REPLACING_VERSIONS} ]]; then
+ for v in ${REPLACING_VERSIONS}; do
+ if ver_test "${v}" -lt 21.04-r1; then
+ migrate_to_ejabberd_user=true
+ break
+ fi
+ done
+ fi
+
+ # Sarting with >=21.04-r1, the ejabberd configuration is now in
+ # /etc/ejabberd and no longer in /etc/jabber. See if we need to
+ # migrate the configuration. Furthermore, ejabberd no longer runs
+ # under the, shared via net-im/jabber-base, 'jabber' use, but under
+ # its own user. This increase isolation and hence robustness and
+ # security.
+ if $migrate_to_ejabberd_user; then
+ ewarn "Newer versions of the ejabberd Gentoo package use /etc/ejabberd"
+ ewarn "(just as upstream) and *not* /etc/jabber."
+ ewarn "The files from /etc/jabber will now be copied to /etc/ejabberd."
+ ewarn "Also ejabberd's spool directory became /var/lib/ejabberd (was /var/spool/jabber)."
+ ewarn "Please check your configuration, and finish the migration by stopping ejabberd"
+ ewarn "followed by rsync'ing /var/spool/jabber to /var/lib/ejabberd."
+
+ local -A dirs_to_migrate=(
+ [/etc/jabber]=/etc/ejabberd
+ [/var/spool/jabber]=/var/lib/ejabberd
+ )
+
+ for src_dir in "${!dirs_to_migrate[@]}"; do
+ local eroot_src_dir="${EROOT}${src_dir}"
+ local eroot_dst_dir="${EROOT}${dirs_to_migrate[${src_dir}]}"
+
+ cp -r "${eroot_src_dir}"/. "${eroot_dst_dir}" || die "Could not copy ${eroot_src_dir} to ${eroot_dst_dir}"
+
+ if [[ -f "${eroot_dst_dir}"/.keep_net-im_jabber-base-0 ]]; then
+ rm "${eroot_dst_dir}"/.keep_net-im_jabber-base-0 || die
+ fi
+ if ! use prefix; then
+ chown --recursive ejabberd:ejabberd "${eroot_dst_dir}" || die
+ fi
+ done
+ fi
+}
diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest
index 7fd476a31f87..ea8907bc4b84 100644
--- a/net-im/synapse/Manifest
+++ b/net-im/synapse/Manifest
@@ -79,7 +79,7 @@ DIST windows_i686_gnu-0.36.1.crate 818115 BLAKE2B fdb78cf88e1049d1ed6c474f870dfd
DIST windows_i686_msvc-0.36.1.crate 724575 BLAKE2B cf964bec007d8432e2009644cf7f89ea7d910ccf9512c067b7bf5c6c825208ce4a36e9864c0cbca137f523983eb46e58e4bd01054cecd7ac7126d2ba9f67ac0c SHA512 02bb1507981229422498ce29f6c777d5e412358040128f84b09d948ccddf0461b078a0a20cc7f6ab7da8595121bb369453ae9ea1f0506aab715662e8c631e737
DIST windows_x86_64_gnu-0.36.1.crate 790934 BLAKE2B 9dec5d966bdc89efbc81989acca242d519f51676ec37487df2bfacd6bfbc5a8de2871be72c5b96a073a899c666e3a39aa60d493e7df39fa90efe869fb744a332 SHA512 598b69e4f2cd3d68f910d526a66dadb465ff30a8c261c9a4455aa1c5b952d23c04f8edaa063cd16fb43564c116a13f06d607f3a0a9c7495054b8bfe1c04d1865
DIST windows_x86_64_msvc-0.36.1.crate 661999 BLAKE2B 4cf967f10d4ce148bac967598168752d1996b4ddf5278a8fca53360566c37c1a014bfb4dfdc0ae2d96e01196c42eb4906ea80d8e9dd23b9e9f3163631c9e253e SHA512 89c22ed51a74f531662d80ae0fa5e0215728db1e6caf3c13eaeba95a93548b43c00b8474f52553ac866ac83c203b6c22dc44fbc870e882a4c9c97ba54b87c631
-EBUILD synapse-1.100.0.ebuild 5685 BLAKE2B 340f6f36823f94cf39e39959a7ff9d2f705b7d14659a68886ae6b12f3bf492f76590ffb84da7c4168e5c0287adcbfa135099f685c6664ef933684384a0fc7646 SHA512 c14117a72738db2a2d850e5558150bf18e1daea874f943e1a6e154a22b766929c65433cfa4da52bea5662fc263bbddea0bce00ddc53843d9b4187f846d88bbcf
+EBUILD synapse-1.100.0.ebuild 5684 BLAKE2B 5a950634fcb16049c25613341fbc6222af32d0e4dafc0847befb3b6a0edde10b93423813a64e09aa4449fa5a9afa6d6d11346fd283bcc15b7dce65a909288e76 SHA512 d175fcbe582c712b6650dcfc5d4f63ec481071b267c1849de3a42f07cbae73b3de73c7886b8161ee065cc31616cf7c08aca3741363f218f8da7e9feb4e25cbc3
EBUILD synapse-1.101.0.ebuild 5676 BLAKE2B 96e4da15572e64e544e934c8fb7f5c26553a7230431cb0b4e65f3e07d017e54fb609ec12cd1c08693f1ed9f741bf8e431787c714c7d04b407ef9520517ae5164 SHA512 ff27b7d91f2ef23bec4cbc77b84141e7af35f92be205b24b88f19455e3745e9a51523ba60b96f58cda0f6faa6de57e5fc7b38d7bf6239b94e1d907fe41ffcad7
EBUILD synapse-1.102.0.ebuild 5685 BLAKE2B 7099d408d0ab67195abcafb66e4c0007cc01cd50f661e8d4894c1a6579e10f402494ba57d339a9e539fadc02bf76196fb4363f41074f0c0f65733d2b23b273dd SHA512 72ccb14e10410270a38b3c2ff79d97002030d4d5c092b727ce25ccd80a613e370205588360f7400dd63b04332aca1320a3832b8b30737a5aabf6d222fa6d6d6f
EBUILD synapse-1.99.0.ebuild 5683 BLAKE2B a57aff93d38f926162571ca8092fa9e8dd2718e37bf9abccf0b52ae2f99559cd145e2d15b2dfd0ab87890ebb5fca9641b8310cb2ca3ade027d882ba82708907c SHA512 08c5100a99fc048c842dbb6a3dab1dd97bb74151d095e95c6e59b31cffbf0aee3b63bedb6853de50b84ee6cf0c62c793979f226835564492db169025d797eb2d
diff --git a/net-im/synapse/synapse-1.100.0.ebuild b/net-im/synapse/synapse-1.100.0.ebuild
index 9a49db29ad94..dc1cc546a498 100644
--- a/net-im/synapse/synapse-1.100.0.ebuild
+++ b/net-im/synapse/synapse-1.100.0.ebuild
@@ -86,7 +86,7 @@ LICENSE+="
|| ( Apache-2.0 Boost-1.0 )
"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64"
+KEYWORDS="amd64 ~arm64 ~ppc64"
IUSE="postgres systemd test"
RESTRICT="!test? ( test )"