From 1b013d9d13c304bf66a4a6c16d272d25bc480b83 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Feb 2023 02:26:51 +0000 Subject: gentoo auto-resync : 22:02:2023 - 02:26:50 --- net-im/Manifest.gz | Bin 10057 -> 10064 bytes net-im/prosody-modules/Manifest | 4 +- .../prosody-modules-0_pre20220319.ebuild | 55 ------- .../prosody-modules-0_pre20230221.ebuild | 55 +++++++ net-im/prosody/Manifest | 2 + net-im/prosody/prosody-0.12.3.ebuild | 164 +++++++++++++++++++++ 6 files changed, 223 insertions(+), 57 deletions(-) delete mode 100644 net-im/prosody-modules/prosody-modules-0_pre20220319.ebuild create mode 100644 net-im/prosody-modules/prosody-modules-0_pre20230221.ebuild create mode 100644 net-im/prosody/prosody-0.12.3.ebuild (limited to 'net-im') diff --git a/net-im/Manifest.gz b/net-im/Manifest.gz index ef3e066491a1..3ca49b4840fe 100644 Binary files a/net-im/Manifest.gz and b/net-im/Manifest.gz differ diff --git a/net-im/prosody-modules/Manifest b/net-im/prosody-modules/Manifest index 204cd2a87c26..8561bccb7be5 100644 --- a/net-im/prosody-modules/Manifest +++ b/net-im/prosody-modules/Manifest @@ -1,4 +1,4 @@ -DIST prosody-modules-0_pre20220319.tar.xz 1221828 BLAKE2B bb9482a60b15fd456125b512017ee93223bd139ed5b664236db4313b65985729ad4f5b8adb5d76bb9099ff4de816457fffd1277b7d36c556d00ce789d8ecf15f SHA512 a288d082e3bc2f9450c0b09e4f02816322d0db073134b315b2fa19be4d176037b399d763854c6c9a006eef85153c7bbbabddf5da85225d599082bfc7c0101450 -EBUILD prosody-modules-0_pre20220319.ebuild 1637 BLAKE2B d621e4f6c59a96ebf24c413ee683d7cae3c9eb516e956e9f13447d0b21a6d29c41b6afa81a858b459245d2b8a2e1c5655bc87d516b3b98833587612f87f8a68e SHA512 06b51230f675de6a155e1489cc6b6fa6ab2fd13051df76bcf832ccfc4686b2ac85129ec9bd580af15f9d73ea69d0291bd3408388f81038c73d735d33678939af +DIST prosody-modules-0_pre20230221.tar.xz 1243536 BLAKE2B d9bf42acf22f94ab0e3a530ca09e3cdac066c46f8b3e443b1c6e0768e6e0a516175452f673edf85832e527e0533c7ab65f51f328af4f01883d02d91e45880c84 SHA512 b49f4e05ed7b2dbac319380a929240366b2da559bd612838ab447b2b705a962b5d006f1a087d3bbd9df0b6ab307030811747fb2cc78fa2d2e1ab6c8020767c84 +EBUILD prosody-modules-0_pre20230221.ebuild 1637 BLAKE2B 28c562fb9596ff5648c1ab3450f224a0e53fd2566ad1aedf723006f234ee3f37d48b69135088cf7df651061f2c81ef16bb4c36eeff5ac01e4cfa046cf6ae2e90 SHA512 605b8101174fb4c4bb436cec44d52159468158daa061d85953386b1ced8ecbde653b7f6f84d4f8b51377ae81b4d74b0c5ee76cf39eea00d8a58e948d27bb1c32 EBUILD prosody-modules-9999.ebuild 1583 BLAKE2B 5c6e8d6fc573f956529324ce9fb85466276a3648677785872e50a39df5879ca9b0e72c270d7e7652973ee007df1933784e6a94a023df10165991cf1ad8cde1ed SHA512 64d7ef5126a6797b6d12f069c46777468bdf1553b4aaa0905eb6782310d27b91cf2f8c195d359b561664ca0b681baba1fee6a7731af4a35309b473d922c3ddb6 MISC metadata.xml 702 BLAKE2B 1a27a1b550de974f6f28fe5afa1c070c0591efe67b8cddfaeca4307693698592e21e9f8eff2de2776cc37a6d07d9a8944815983928c0dcbd2a7e5ac61c5db6df SHA512 18fc3251c4cc97f6e429fd0ed2e653ba28771a67f7d791154bb22e6532508c528b6a64cdf35a425f978f866fe3abbb803de1d4d3b4ab2083e52a2adb7e6b8827 diff --git a/net-im/prosody-modules/prosody-modules-0_pre20220319.ebuild b/net-im/prosody-modules/prosody-modules-0_pre20220319.ebuild deleted file mode 100644 index a120ace96588..000000000000 --- a/net-im/prosody-modules/prosody-modules-0_pre20220319.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2020-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit savedconfig - -DESCRIPTION="A collection of community-maintained modules for Prosody" -HOMEPAGE="https://modules.prosody.im" -SRC_URI="https://dev.gentoo.org/~conikost/distfiles/${P}.tar.xz" -S="${WORKDIR}/${PN}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" - -RDEPEND="net-im/prosody" - -src_prepare() { - default - - # Exclude 'misc' folder from install, since it does not provide any modules. - echo "# Remove all modules from this list, which you don't want to install." > prosody-modules.conf || die - find * -maxdepth 0 -type d ! -name misc >> prosody-modules.conf || die - - use savedconfig && restore_config prosody-modules.conf -} - -src_install() { - insinto "/usr/$(get_libdir)/prosody/community-modules" - while read prosody_module; do - if ! [[ "${prosody_module}" = \#* ]]; then - if [[ -f "${prosody_module}/README.markdown" ]]; then - newdoc "${prosody_module}/README.markdown" "README.${prosody_module}" - rm "${prosody_module}/README.markdown" || die - fi - - doins -r "${prosody_module}" - fi - done prosody-modules.conf || die + find * -maxdepth 0 -type d ! -name misc >> prosody-modules.conf || die + + use savedconfig && restore_config prosody-modules.conf +} + +src_install() { + insinto "/usr/$(get_libdir)/prosody/community-modules" + while read prosody_module; do + if ! [[ "${prosody_module}" = \#* ]]; then + if [[ -f "${prosody_module}/README.markdown" ]]; then + newdoc "${prosody_module}/README.markdown" "README.${prosody_module}" + rm "${prosody_module}/README.markdown" || die + fi + + doins -r "${prosody_module}" + fi + done =0.12.0, the prosody configuration is now in + # /etc/prosody and no longer in /etc/jabber. + # See if we need to migrate the configuration. Furthermore, + # prosody 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_prosody_user}; then + local -A dirs_to_migrate=( + [/etc/jabber]=/etc/prosody + [/var/log/jabber]=/var/log/prosody + [/var/spool/jabber]=/var/lib/prosody + ) + + 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 prosody:prosody "${eroot_dst_dir}" || die + fi + done + + # Update configuration file to match new pathes and permissions + local mysedargs=( + -e "'s#/etc/jabber#/etc/prosody#g'" + -e "'s#/run/jabber#/run/prosody#g'" + -e "'s#/var/log/jabber#/var/log/prosody#g'" + -e "'s/prosody_user.*/prosody_user = \"prosody\";/g'" + -e "'s/prosody_group.*/prosody_group = \"prosody\";/g'" + -i /etc/prosody/prosody.cfg.lua + ) + + eval sed "${mysedargs[@]}" || die + + ewarn "Newer versions of the prosody (Gentoo) package use ${EROOT}/etc/prosody" + ewarn "(just as upstream) and *not* anymore ${EROOT}/etc/jabber." + ewarn "The files from ${EROOT}/etc/jabber where copied to ${EROOT}/etc/prosody." + ewarn "Also prosody's spool directory became ${EROOT}/var/lib/prosody (was ${EROOT}/var/spool/jabbber)." + ewarn "Please check your configuration." + fi +} -- cgit v1.2.3