summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2016-08-21 11:36:50 +0100
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2016-08-21 11:45:57 +0100
commitea72aea8d3e567e29f4a643a819c6350e21cbeeb (patch)
tree1dc2b91b590ac29c3663b1d092b376a177f293be /net-im/ejabberd
parentsci-mathematics/octave: version bump (diff)
downloadgentoo-ea72aea8d3e567e29f4a643a819c6350e21cbeeb.tar.gz
gentoo-ea72aea8d3e567e29f4a643a819c6350e21cbeeb.tar.bz2
gentoo-ea72aea8d3e567e29f4a643a819c6350e21cbeeb.zip
net-im/ejabberd: Remove old, vulnerable ejabberd version
Gentoo-Bug: 539040 Gentoo-Bug: 525478 Package-Manager: portage-2.3.0
Diffstat (limited to 'net-im/ejabberd')
-rw-r--r--net-im/ejabberd/Manifest2
-rw-r--r--net-im/ejabberd/ejabberd-2.1.13-r2.ebuild222
-rw-r--r--net-im/ejabberd/metadata.xml2
3 files changed, 0 insertions, 226 deletions
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest
index 9524ed7c77f..b2fcc5e861f 100644
--- a/net-im/ejabberd/Manifest
+++ b/net-im/ejabberd/Manifest
@@ -2,8 +2,6 @@ DIST cache_tab-1.0.1.zip 16719 SHA256 149eff4dfb01f633cab643f368e5f96825c26c85ae
DIST eiconv-0.9.0.zip 101407 SHA256 fdaa09bcc79b556f2250c4693bc57c89ce474a5ea6ea12429cbb6c2d4ed3619b SHA512 44d0af378b9873dede92657c53557a565050cd4259598a1fe92e1c9bddc8219922ff093bfc20e380f3e39fc0d5648d6d6f72766a5847781cf2101dbd4b922fb6 WHIRLPOOL 97d97f527aaf4d0fb0176723bde464ab003b49b12acca1f657efe83f8c03186e6b4819f4aadedebb8e703e16cc4af23d317b6ebebe96a9a794e6aa78c8e6fc80
DIST ejabberd-16.01.tgz 1651587 SHA256 e2cc479d5870539b2e6756690b227969c88a541d464d1fc6e1cbf7270ad7d681 SHA512 f0614db0d0eaf6d4f25b75b8eefbcf93260549876535fd5d82498c75779d182b19ec249ffb9b1b168cb5a887e8e6933eb868892b4aa5cd2933b739d263adca8a WHIRLPOOL 65bc13ba5e380a999ed2ae9c816856f90e24393343d16ae52349350687dfdb15857a3358d856de5694c30718cefc5513b9d3c75871bb368cac54547becc1607a
DIST ejabberd-16.04.tar.gz 1715963 SHA256 3d964fe74e438253c64c8498eb7465d2440823614a23df8d33bdf40126d72cc3 SHA512 5975d5a164060cca59b6d92de2c432f063061e832b2e03cae351fe3c16b178259489dc0b82ea800f1c2388eeb7e3aa4340630ad3c10a22cc6d6f0b4eef8fa0f2 WHIRLPOOL d9018835aaa736040f63222c73b54ea65385532989390c007f4cb736b474da40d9fdceb6c377a251398fb6de87869a13dec0ac160fe9a0d081337efd35dc66b4
-DIST ejabberd-2.1.13.tgz 1999853 SHA256 a80d1c72e435da31758261cb0c04fe750ac71fc3e33a3b606123efd3b3abc86d SHA512 9348271f0cf1d9a7e6c53204121568e77820afc50fff1271e7b7ef66c5c5d7d067034c46472250423c4e9052046b18c1c8178f09eda0b0bfe25a1eac465fd07b WHIRLPOOL 2c366d2f7c4371db56f47f5492ef27028a589186eeddb7a6b4e8aac0537b1b80ee31a9760f0551063ce2c2a658b9b5eafb7ed25294e00eb69480231a599a7b10
-DIST ejabberd-mod_statsdx-1118.patch.gz 13989 SHA256 5e5d975e44248cf2b0d6dd0ecf4c477e8479b2b4d0bd531e80f4623fd787320e SHA512 99399323150990cda15e707385f0f26fa790d4ba188a97ac46daaaab9c25e72a7ec72a875573136f17a18648017074d76e4e267b544dc4c95a5101ed9ad6815d WHIRLPOOL 05997f03bb70136ee5e829ea9c55e3aeb0704150f1ed54f11c6cce382a82106129fc1a6ef35a62780837cd2b59fbb384fa10f3bb49813acaee8c5edc22ae3702
DIST elixir-f2a9c7016633ca63541a8160c63a53eb7edbccdb.zip 1335681 SHA256 4ef8cd93e68a314bb4702547629f9be7a6bb840f6b7956aead6f51700e73c41a SHA512 a6e5170f8d3efc1d31aa82477f4ff377ea7205d106bbf633075df5bef0b22a276cc6897c2a8b7fcbbff269c9fe8378f4802876e0e2aecb90012c0c2165c2b8e8 WHIRLPOOL 716e45804df24b7a4a55e0ad81f72c9961e4066dd3e24b1e3cd1ba041c6c1dc8426d0feaf97580eaf9b369d0fee33cb9e3c26b71eaf6c91d318590e9e6b5ab0c
DIST epam-1.0.0.zip 47889 SHA256 6704010b14034881d8c60f52d1a82d8125f20cdf1e52a7113c838f1db6be7e81 SHA512 710919ff2883a5e1a99703f3b72ad8a0d61c612b2af66b57b88a6bd9faddc64c61b8b44998feb37d3d3338d24d4c1d8d6a73d6836e254b8f8452249b41427c78 WHIRLPOOL 48a9fedc2fa52a7d5dc1cdcf11a48096798cd87d37987b709ffd0c6cf49881f9afec7fd85b3f8d84020e41920e129534d5f8d6adce92916370ab3a413d4919c9
DIST eredis-cbc013f516e464706493c01662e5e9dd82d1db01.zip 133223 SHA256 707c54c568b6d07a4a1ac82a528cabef73469136cc14b4f69457e28de9827227 SHA512 fbaa323da0d668fc7147bc406dd4f00bd132d592d4fd3d61c2bee59f4b1c9390784a4c03737d6efd3b004855a92911878bfb11a966dc1853a785c9b10714f34f WHIRLPOOL d6713eef9328f70d6f003c4a27b560715d7a4c433d522dde3a99731e7b868353082b2ba62060fcefc6241977713627b57353ba47919553fe6eb47a554d3b7264
diff --git a/net-im/ejabberd/ejabberd-2.1.13-r2.ebuild b/net-im/ejabberd/ejabberd-2.1.13-r2.ebuild
deleted file mode 100644
index fd065b351d2..00000000000
--- a/net-im/ejabberd/ejabberd-2.1.13-r2.ebuild
+++ /dev/null
@@ -1,222 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils multilib pam ssl-cert systemd
-
-DESCRIPTION="The Erlang Jabber Daemon"
-HOMEPAGE="http://www.ejabberd.im/ https://github.com/processone/ejabberd/"
-SRC_URI="http://www.process-one.net/downloads/${PN}/${PV}/${P}.tgz
- mod_statsdx? ( https://dev.gentoo.org/~radhermit/dist/${PN}-mod_statsdx-1118.patch.gz )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
-EJABBERD_MODULES="mod_irc mod_muc mod_proxy65 mod_pubsub mod_statsdx"
-IUSE="captcha debug ldap odbc pam +web zlib ${EJABBERD_MODULES}"
-
-DEPEND=">=net-im/jabber-base-0.01
- >=dev-libs/expat-1.95
- >=dev-lang/erlang-12.2.5[ssl]
- <dev-lang/erlang-16
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- >=dev-libs/openssl-0.9.8e:=
- captcha? ( media-gfx/imagemagick[truetype,png] )
- zlib? ( sys-libs/zlib )"
-#>=sys-apps/shadow-4.1.4.2-r3 - fixes bug in su that made ejabberdctl unworkable.
-RDEPEND="${DEPEND}
- >=sys-apps/shadow-4.1.4.2-r3
- pam? ( virtual/pam )"
-
-S=${WORKDIR}/${P}/src
-
-# paths in net-im/jabber-base
-JABBER_ETC="${EPREFIX}/etc/jabber"
-#JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="${EPREFIX}/var/spool/jabber"
-JABBER_LOG="${EPREFIX}/var/log/jabber"
-JABBER_DOC="${EPREFIX}/usr/share/doc/${PF}"
-
-src_prepare() {
- if use mod_statsdx; then
- ewarn "mod_statsdx is not a part of upstream tarball but is a third-party module"
- ewarn "taken from here: http://www.ejabberd.im/mod_stats2file"
- EPATCH_OPTS="-p2" epatch "${WORKDIR}"/${PN}-mod_statsdx-1118.patch
- fi
-
- # don't install release notes (we'll do this manually)
- sed '/install .* [.][.]\/doc\/[*][.]txt $(DOCDIR)/d' -i Makefile.in || die
- # Set correct paths
- sed -e "/^EJABBERDDIR[[:space:]]*=/{s:ejabberd:${PF}:}" \
- -e "/^ETCDIR[[:space:]]*=/{s:@sysconfdir@/ejabberd:${JABBER_ETC}:}" \
- -e "/^LOGDIR[[:space:]]*=/{s:@localstatedir@/log/ejabberd:${JABBER_LOG}:}" \
- -e "/^SPOOLDIR[[:space:]]*=/{s:@localstatedir@/lib/ejabberd:${JABBER_SPOOL}:}" \
- -i Makefile.in || die
- sed -e "/EJABBERDDIR=/{s:ejabberd:${PF}:}" \
- -e "s|\(ETCDIR=\)@SYSCONFDIR@.*|\1${JABBER_ETC}|" \
- -e "s|\(LOGS_DIR=\)@LOCALSTATEDIR@.*|\1${JABBER_LOG}|" \
- -e "s|\(SPOOLDIR=\)@LOCALSTATEDIR@.*|\1${JABBER_SPOOL}|" \
- -i ejabberdctl.template || die
-
- # Set shell, so it'll work even in case jabber user have no shell
- # This is gentoo specific I guess since other distributions may have
- # ejabberd user with reall shell, while we share this user among different
- # jabberd implementations.
- sed '/^HOME/aSHELL=/bin/sh' -i ejabberdctl.template || die
- sed '/^export HOME/aexport SHELL' -i ejabberdctl.template || die
-
- #sed -e "s:/share/doc/ejabberd/:${JABBER_DOC}:" -i web/ejabberd_web_admin.erl
-
- # fix up the ssl cert paths in ejabberd.cfg to use our cert
- sed -e "s:/path/to/ssl.pem:/etc/ssl/ejabberd/server.pem:g" \
- -i ejabberd.cfg.example || die "Failed sed ejabberd.cfg.example"
-
- # correct path to captcha script in default ejabberd.cfg
- sed -e 's|\({captcha_cmd,[[:space:]]*"\).\+"}|\1/usr/'$(get_libdir)'/erlang/lib/'${P}'/priv/bin/captcha.sh"}|' \
- -i ejabberd.cfg.example || die "Failed sed ejabberd.cfg.example"
-
- # disable mod_irc in ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- -i ejabberd.cfg.example || die "Failed to disable mod_irc"
- fi
-
-}
-
-src_configure() {
- econf \
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
- --libdir="${EPREFIX}/usr/$(get_libdir)/erlang/lib/" \
- $(use_enable mod_irc) \
- $(use_enable ldap eldap) \
- $(use_enable mod_muc) \
- $(use_enable mod_proxy65) \
- $(use_enable mod_pubsub) \
- $(use_enable web) \
- $(use_enable odbc) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- --enable-user=jabber
-}
-
-src_compile() {
- emake $(use debug && echo debug=true ejabberd_debug=true)
-}
-
-src_install() {
- default
-
- # Pam helper module permissions
- # http://www.process-one.net/docs/ejabberd/guide_en.html
- if use pam; then
- pamd_mimic_system xmpp auth account || die "Cannot create pam.d file"
- fowners root:jabber "/usr/$(get_libdir)/erlang/lib/${PF}/priv/bin/epam"
- fperms 4750 "/usr/$(get_libdir)/erlang/lib/${PF}/priv/bin/epam"
- fi
-
- cd "${WORKDIR}"/${P}/doc
- dodoc release_notes_${PV%%_rc*}.txt
-
- newinitd "${FILESDIR}"/${PN}-3.initd ${PN}
- newconfd "${FILESDIR}"/${PN}-3.confd ${PN}
- systemd_dounit "${FILESDIR}"/${PN}.service
- systemd_dotmpfilesd "${FILESDIR}"/${PN}.tmpfiles.conf
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/${PN}.logrotate ${PN}
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- elog "For configuration instructions, please see"
- elog "/usr/share/doc/${PF}/html/guide.html, or the online version at"
- elog "http://www.process-one.net/en/ejabberd/docs/guide_en/"
-
- if ! use web ; then
- ewarn
- ewarn "The web USE flag is off, this has disabled the web admin interface."
- ewarn
- fi
-
- elog
- elog '===================================================================='
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 91'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 360'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start (for openRC)'
- elog ' # systemctl start ejabberd (for Systemd)'
- elog '4) Register the admin user'
- elog ' # /usr/sbin/ejabberdctl register theadmin thehost thepassword'
- elog '5) Log in with your favourite jabber client or using the web admin'
- fi
-
- # Upgrading from ejabberd-2.0.x:
- if grep -E '^[^#]*EJABBERD_NODE=' "${EROOT}/etc/conf.d/ejabberd" >/dev/null 2>&1; then
- source "${EROOT}/etc/conf.d/ejabberd"
- ewarn
- ewarn "!!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!"
- ewarn "Starting with 2.1.x some paths and configuration files were"
- ewarn "changed to reflect upstream intentions better. Notable changes are:"
- ewarn
- ewarn "1. Everything (even init scripts) is now handled with ejabberdctl script."
- ewarn "Thus main configuration file became /etc/jabberd/ejabberdctl.cfg"
- ewarn "You must update ERLANG_NODE there with the value of EJABBERD_NODE"
- ewarn "from /etc/conf.d/ejebberd or ejabberd will refuse to start."
- ewarn
- ewarn "2. SSL certificate is now generated with ssl-cert eclass and resides"
- ewarn "at standard location: /etc/ssl/ejabberd/server.pem."
- ewarn
- ewarn "3. Cookie now resides at /var/spool/jabber/.erlang.cookie"
- ewarn
- ewarn "4. /var/log/jabber/sasl.log is now /var/log/jabber/erlang.log"
- ewarn
- ewarn "5. Crash dumps (if any) will be located at /var/log/jabber"
-
- local i ctlcfg new_ctlcfg
- i=0
- ctlcfg=${EROOT}/etc/jabber/ejabberdctl.cfg
- while :; do
- new_ctlcfg=$(printf "${EROOT}/etc/jabber/._cfg%04d_ejabberdctl.cfg" ${i})
- [[ ! -e ${new_ctlcfg} ]] && break
- ctlcfg=${new_ctlcfg}
- ((i++))
- done
-
- ewarn
- ewarn "Updating ${ctlcfg} (debug: ${new_ctlcfg})"
- sed -e "/#ERLANG_NODE=/aERLANG_NODE=$EJABBERD_NODE" "${ctlcfg}" > "${new_ctlcfg}" || die
-
- if [[ -e ${EROOT}/var/run/jabber/.erlang.cookie ]]; then
- ewarn "Moving .erlang.cookie..."
- if [[ -e ${EROOT}/var/spool/jabber/.erlang.cookie ]]; then
- mv -v "${EROOT}"/var/spool/jabber/.erlang.cookie{,bak}
- fi
- mv -v "${EROOT}"/var/{run/jabber,spool/jabber}/.erlang.cookie
- fi
- ewarn
- ewarn "We'll try to handle upgrade automagically but, please, do your"
- ewarn "own checks and do not forget to run 'etc-update'!"
- ewarn "PLEASE! Run 'etc-update' now!"
- fi
-
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Ejabberd XMPP Server}"
- install_cert /etc/ssl/ejabberd/server
- # Fix ssl cert permissions bug #369809
- chown root:jabber "${EROOT}/etc/ssl/ejabberd/server.pem"
- chmod 0440 "${EROOT}/etc/ssl/ejabberd/server.pem"
- if [[ -e ${EROOT}/etc/jabber/ssl.pem ]]; then
- ewarn
- ewarn "The location of SSL certificates has changed. If you are"
- ewarn "upgrading from ${CATEGORY}/${PN}-2.0.5* or earlier you might"
- ewarn "want to move your old certificates from /etc/jabber into"
- ewarn "/etc/ssl/ejabberd/, update config files and"
- ewarn "rm /etc/jabber/ssl.pem to avoid this message."
- ewarn
- fi
-}
diff --git a/net-im/ejabberd/metadata.xml b/net-im/ejabberd/metadata.xml
index 97487c35c24..1abb244b571 100644
--- a/net-im/ejabberd/metadata.xml
+++ b/net-im/ejabberd/metadata.xml
@@ -32,7 +32,6 @@
<flag name="zlib">Enable Stream Compression (XEP-0138) using zlib</flag>
<flag name="mod_proxy65">Support for SOCKS5 Bytestreams (XEP-0065)</flag>
- <flag name="mod_statsdx">Measures several statistics, and provides a new section in ejabberd Web Admin to view them.</flag>
<flag name="elixir">Enable Elixir language support (http://elixir-lang.org/). Use bundled plugin instead of dev-lang/elixir.</flag>
<flag name="lager">Use lager Erlang logging tool instead of standard error logger</flag>
<flag name="mod_bosh">Enable support for XMPP over BOSH (XEP-0206)</flag>
@@ -40,7 +39,6 @@
<flag name="mod_muc">Build Multi User Chat module</flag>
<flag name="mod_pubsub">Build Pubsub module</flag>
<flag name="tools">Build development tools</flag>
- <flag name="web">Enable web admin interface</flag>
</use>
<upstream>
<remote-id type="github">processone/ejabberd</remote-id>