summaryrefslogtreecommitdiff
path: root/net-im/ejabberd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-19 04:04:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-19 04:04:36 +0100
commitd895362f98ae63a6ed12cd16d3b3df95d6967f25 (patch)
treee6c8a50e31dc122b10c6dc3d9eee5d6ec6f002c0 /net-im/ejabberd
parent483d7c056fba15727fe24545f93627a1d1e1e2eb (diff)
gentoo auto-resync : 19:10:2024 - 04:04:35
Diffstat (limited to 'net-im/ejabberd')
-rw-r--r--net-im/ejabberd/Manifest12
-rw-r--r--net-im/ejabberd/ejabberd-23.01.ebuild219
-rw-r--r--net-im/ejabberd/ejabberd-23.04.ebuild216
-rw-r--r--net-im/ejabberd/ejabberd-24.07.ebuild (renamed from net-im/ejabberd/ejabberd-23.10-r1.ebuild)48
4 files changed, 27 insertions, 468 deletions
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest
index c79c9d26a1c3..07cbe05c6a11 100644
--- a/net-im/ejabberd/Manifest
+++ b/net-im/ejabberd/Manifest
@@ -4,16 +4,12 @@ AUX ejabberd-22.05.logrotate 209 BLAKE2B f4da9d1ce350f192804e89a6dfea49ac72a432d
AUX ejabberd-22.10-adjust-ejabberd.service.template-to-Gentoo.patch 430 BLAKE2B 0301bd38cf5c08a119ac27368ac7477a5388fd9475a6d8b866635a0b89b989fdff7b41607871d1052a31bba7ddd44035528823caf88a691ffe699ca5f20a1ce5 SHA512 98e41ccceb235dd17c1f265790d5145eae6eadb35e359d935774bdea26739381aad15949fbc22ada394181130556ce91a1d82078d92072e04c91ab212a5ef9dc
AUX ejabberd.confd 161 BLAKE2B f08ab6310c950d3d248fbaf5e6e35bca2e31289ae476b2379a779ebc38926e091cf04883cce94cedff1e4dcf6ec3224079e7828502b97451a8a96fd278a4d102 SHA512 07143642982df18461fdecd16daaad3baf6a06f8222d7a76757797c531be2803975ed60cc43aace24a624aa7c73bd8fdc6e023e739de492271b79e571f27c8fb
AUX epam-wrapper 336 BLAKE2B 914ba9c7469ba58fd29a4c70485c77ff2a93000e397aa8c58aab434cfceda34120880184488659e30f1961d576566111b4159b34b30fea5307bc255ce382781d SHA512 b66dfed9967e6524af8f46204eadcbed0a427ecc5cca30ec1fd58373714467077858a252c039828a18130244d46a54a019e17828cf3ac055c18044c2a6881449
-DIST ejabberd-23.01.tar.gz 2569272 BLAKE2B c8c06204ed6c4992d86b7fcc1a949883267364433fc5d6d05f2214f093301b3fc4cda7b5b078e3ebd1334a418173fd5decd902f582fe0492b2f2f19c39ac88e4 SHA512 3fe11123d24e430fa10d18aabb9cc9613bc25ee48d6c64a642ae1d0d458f220df638b94cde444241399e0d0777a4f64995ad7e37f963f1ee92bbb114ed431c4b
-DIST ejabberd-23.04.tar.gz 2581686 BLAKE2B 292da892f62d6940418980bfaec63f3aa570f0af4c78be80ff6996d13269f5303ff9ecd88c0fa4ba8daecf5183a7eb31a7048f3425d128b03cc7029a3198ff0d SHA512 2edb437baae54afd625222f2b251549af3ec469b535a10109679f1edd27fc840579351499f9bc79e8d0d17f752065787eb52607f886e5599386dbed52c8aecab
-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-23.01.ebuild 6919 BLAKE2B fca1f56db1121f44869330ff2b685b46501d1ed944eac5973346fe3a82bc742abc206d165bde607ac94766664faf926edc191ac264d4aee754ae5549401ab554 SHA512 de6f51f6a9f4e4a00f609cfc6ed6369f71700cb8d9f524654693919c059206238442f3c1a96da71f0fbaa2d1b11574b9cf08a272130d39184ff37522c6ed452c
-EBUILD ejabberd-23.04.ebuild 6770 BLAKE2B c44f66727bf11b39ec21d0d93f61113202cf29ba9e752f8c9e2154bf3ed09864dd57939c88430c8b53342342a4c78f16d2a89a1b19b7c6aa6bbca450190dffff SHA512 49275aa209ad33047578d94b86b74e74a60907a1e0092639616f71fc49c3e504255d655ea9c86a12535183f69d2eede222dc8c2a9aa9a9272e914fde871f5b37
-EBUILD ejabberd-23.10-r1.ebuild 7158 BLAKE2B b5511015822f93ee88e49362f2f0715ee62a011488f7ab77808876f56ded703958de2e0f6b9d13db8db37ab49331921108d137eed160b965e578ddfdd7ec69ec SHA512 1cf8b84f9e2a4d373e5ab523bca666470a55468532aa3ce1f33dc9e7c9b1ff616c5f49676239ed189ccc394d77beb2e5dbf92294cef618d19d9047dd755a87de
+DIST ejabberd-24.07-fix-ejabberdctl.patch 1945 BLAKE2B 3e9e690802dd201aaba50b16435c98e64b52bfa2c77dd054c4db538f8bd9035386282e43b3c51fa444119901addeb2c3174d55d66a515847f80771e350e0a808 SHA512 0a6780915177fa4012a194d3fa755a812f0bed5d446df630c46834953aad54679450ff9fdaa1aa7fb415de5bb905a3dc2b28c65b7b32f0fd83cd99634bb5073d
+DIST ejabberd-24.07-set-ejabberd-opts.patch 1508 BLAKE2B 1692fb54b3aeb9838f057d32ebebffbcca5761c820d95a377b257966094e973465740b224d17bebdae0a4f3d0b5ebe35c9c1b005217a3e9baae69fc2511c69aa SHA512 aa7f13be15ec4cb0a9c17e5c1519d5fd94ccee75b46e3a8ee1de39e23000c7faad530208c049dd4a290be18b8b9f1c866584a9abf3f288a8f2fd66c2d72e4fa5
+DIST ejabberd-24.07.tar.gz 2522211 BLAKE2B 32ac7abbbb2acebfc409e93bde097104354664227cac7e1d673f224681900b1dae74aa770141e520c5d4b35a6bc7748f889ab9647cac812f407f7a0ec8da50f9 SHA512 e53c5082c92297ff956b4d811d69ba5b745a1989590e73dc890663cfcdea102e27bafa79452062883a7de8fdf5b5c481d81c68c61a3e888f5e5b668e9ac9bf3c
EBUILD ejabberd-24.02-r1.ebuild 7046 BLAKE2B 81319a0196bbb12e890cdd01cb43847b1b9e9cee90186341800184f8bdf3521f08fe6d56363a28de414ee0de1540a7c97bb1c077293f233e169fc6850e545f6b SHA512 9dbf247f766c1a26ef90195f36d3c6d43e540f7fc6cc314e611484b2e44ac7ad2a958572320ffec51409360128989e1c0a938af47237a7a5380745621c34fc9c
+EBUILD ejabberd-24.07.ebuild 7052 BLAKE2B c6d6457fd5807cd2485da847e5771ad71a729bd8b5fa8109b1980f32f4a3f1e070223ba09f424bc9d46a6e7c1c34c6fece31c9828e073e56824fa05cfa0f11f8 SHA512 f7ee9a6a00e635cc707e0c26d5d5fb8f093a68a5d9c1c7646c0b40d784b60b099c034a28655c2343d536cf4d60c010a285546b6c4fdfa6ed8fa875a56472bf6d
MISC metadata.xml 1484 BLAKE2B 74f0ec404b37dfe72d8751dd8bc8f0ba0b56f334939a5311af70df4616f19e536209b9be7361b35c8e5d316fbce623afdbf7e3ce53a139eb0d2e0d895275ae3c SHA512 793584e1e44c3a651b15eed84a91a801cd809392ccf7623f1a1b222e65641f8dca18515fb90e42e4a51178f4686d3c61778e14834be23feb23b269b4f07c91fb
diff --git a/net-im/ejabberd/ejabberd-23.01.ebuild b/net-im/ejabberd/ejabberd-23.01.ebuild
deleted file mode 100644
index 0f035a88b40c..000000000000
--- a/net-im/ejabberd/ejabberd-23.01.ebuild
+++ /dev/null
@@ -1,219 +0,0 @@
-# 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
-"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~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-19.3[odbc?,ssl]
- >=dev-erlang/cache_tab-1.0.30
- >=dev-erlang/eimp-1.0.22
- >=dev-erlang/fast_tls-1.1.16
- >=dev-erlang/fast_xml-1.1.49
- >=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.11
- >=dev-erlang/p1_utils-1.0.25
- >=dev-erlang/stringprep-1.0.29
- >=dev-erlang/xmpp-1.6.1
- >=dev-erlang/pkix-1.0.9
- >=dev-erlang/mqtree-1.0.15
- >=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.21 )
- odbc? ( dev-db/unixODBC )
- pam? ( >=dev-erlang/epam-1.0.14 )
- postgres? ( >=dev-erlang/p1_pgsql-1.1.20 )
- redis? ( >=dev-erlang/eredis-1.2.0 )
- sip? ( >=dev-erlang/esip-1.0.49 )
- sqlite? ( >=dev-erlang/sqlite3-1.1.14 )
- stun? ( >=dev-erlang/stun-1.2.7 )
- 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'
- sed -e "/EJABBERD_BIN_PATH=/{s:ejabberd:${P}:}" \
- -i "${S}/ejabberdctl.template" \
- || die 'failed to set ejabberd path in ejabberdctl.template'
-
- # 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/ejabberd/ejabberd-23.04.ebuild b/net-im/ejabberd/ejabberd-23.04.ebuild
deleted file mode 100644
index 93c881b724c4..000000000000
--- a/net-im/ejabberd/ejabberd-23.04.ebuild
+++ /dev/null
@@ -1,216 +0,0 @@
-# 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
-"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~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-19.3[odbc?,ssl]
- >=dev-erlang/cache_tab-1.0.30
- >=dev-erlang/eimp-1.0.22
- >=dev-erlang/fast_tls-1.1.16
- >=dev-erlang/fast_xml-1.1.49
- >=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.11
- >=dev-erlang/p1_utils-1.0.25
- >=dev-erlang/stringprep-1.0.29
- >=dev-erlang/xmpp-1.6.2
- >=dev-erlang/pkix-1.0.9
- >=dev-erlang/mqtree-1.0.15
- >=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.21 )
- odbc? ( dev-db/unixODBC )
- pam? ( >=dev-erlang/epam-1.0.14 )
- postgres? ( >=dev-erlang/p1_pgsql-1.1.22 )
- redis? ( >=dev-erlang/eredis-1.2.0 )
- sip? ( >=dev-erlang/esip-1.0.49 )
- sqlite? ( >=dev-erlang/sqlite3-1.1.14 )
- stun? ( >=dev-erlang/stun-1.2.7 )
- 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/ejabberd/ejabberd-23.10-r1.ebuild b/net-im/ejabberd/ejabberd-24.07.ebuild
index c8083549429e..0ba9c3aefb55 100644
--- a/net-im/ejabberd/ejabberd-23.10-r1.ebuild
+++ b/net-im/ejabberd/ejabberd-24.07.ebuild
@@ -17,7 +17,7 @@ SRC_URI="
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~arm ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~sparc ~x86"
REQUIRED_USE="mssql? ( odbc )"
# TODO: Add 'tools' flag.
IUSE="captcha debug full-xml ldap mssql mysql odbc pam postgres redis
@@ -31,34 +31,34 @@ RESTRICT="test"
# 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.16
- >=dev-erlang/fast_xml-1.1.49
- >=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/cache_tab-1.0.31
+ >=dev-erlang/eimp-1.0.23
+ >=dev-erlang/fast_tls-1.1.21
+ >=dev-erlang/fast_xml-1.1.52
+ >=dev-erlang/fast_yaml-1.0.37
+ >=dev-erlang/yconf-1.0.16
+ >=dev-erlang/jiffy-1.1.1
+ >=dev-erlang/jose-1.11.10
>=dev-erlang/lager-3.9.1
- >=dev-erlang/p1_oauth2-0.6.11
- >=dev-erlang/p1_utils-1.0.25
- >=dev-erlang/stringprep-1.0.29
- >=dev-erlang/xmpp-1.7.0
- >=dev-erlang/pkix-1.0.9
- >=dev-erlang/mqtree-1.0.15
+ >=dev-erlang/p1_oauth2-0.6.14
+ >=dev-erlang/p1_utils-1.0.26-r1
+ >=dev-erlang/stringprep-1.0.30
+ >=dev-erlang/xmpp-1.8.3
+ >=dev-erlang/pkix-1.0.10
+ >=dev-erlang/mqtree-1.0.17
>=dev-erlang/idna-6.0.0-r1
- >=dev-erlang/p1_acme-1.0.22
+ >=dev-erlang/p1_acme-1.0.23
>=dev-erlang/base64url-1.0.1
ldap? ( =net-nds/openldap-2* )
- mysql? ( >=dev-erlang/p1_mysql-1.0.22 )
+ mysql? ( >=dev-erlang/p1_mysql-1.0.24 )
odbc? ( dev-db/unixODBC )
pam? ( >=dev-erlang/epam-1.0.14 )
- postgres? ( >=dev-erlang/p1_pgsql-1.1.23 )
+ postgres? ( >=dev-erlang/p1_pgsql-1.1.27 )
redis? ( >=dev-erlang/eredis-1.2.0 )
- sip? ( >=dev-erlang/esip-1.0.50 )
- sqlite? ( >=dev-erlang/sqlite3-1.1.14 )
- stun? ( >=dev-erlang/stun-1.2.10 )
- zlib? ( >=dev-erlang/ezlib-1.0.12 )
+ sip? ( >=dev-erlang/esip-1.0.54 )
+ sqlite? ( >=dev-erlang/sqlite3-1.1.15 )
+ stun? ( >=dev-erlang/stun-1.2.14 )
+ zlib? ( >=dev-erlang/ezlib-1.0.13 )
"
RDEPEND="
${DEPEND}
@@ -70,9 +70,6 @@ RDEPEND="
DOCS=( CHANGELOG.md README.md )
PATCHES=(
"${FILESDIR}/ejabberd-22.10-adjust-ejabberd.service.template-to-Gentoo.patch"
- # Both patches for https://bugs.gentoo.org/919711
- "${DISTDIR}/${P}-fix-ejabberdctl.patch"
- "${DISTDIR}/${P}-set-ejabberd-opts.patch"
)
# Get path to ejabberd lib directory.
@@ -125,6 +122,7 @@ src_configure() {
--docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
--localstatedir="${EPREFIX}/var" \
--enable-user=${PN} \
+ --with-rebar=rebar \
$(use_enable debug) \
$(use_enable full-xml) \
$(use_enable mssql) \