diff options
author | Stefan Cornelius <dercorny@gentoo.org> | 2007-02-27 20:26:12 +0000 |
---|---|---|
committer | Stefan Cornelius <dercorny@gentoo.org> | 2007-02-27 20:26:12 +0000 |
commit | 68bf8831a76ba27cc77214a64f03f597854f169b (patch) | |
tree | cd586f6a08c44104431379a1beb652ecb1f028c6 | |
parent | Use generation 2 eclasses and remove compnerd from metadata.xml. Part of fixi... (diff) | |
download | gentoo-2-68bf8831a76ba27cc77214a64f03f597854f169b.tar.gz gentoo-2-68bf8831a76ba27cc77214a64f03f597854f169b.tar.bz2 gentoo-2-68bf8831a76ba27cc77214a64f03f597854f169b.zip |
Bumping to version 1.1.3 due to security bug #159580
(Portage version: 2.1.2-r9)
-rw-r--r-- | net-im/ejabberd/ChangeLog | 11 | ||||
-rw-r--r-- | net-im/ejabberd/ejabberd-1.1.3.ebuild | 125 | ||||
-rw-r--r-- | net-im/ejabberd/files/digest-ejabberd-1.1.3 | 3 |
3 files changed, 136 insertions, 3 deletions
diff --git a/net-im/ejabberd/ChangeLog b/net-im/ejabberd/ChangeLog index 4881816a9106..1d21a9b17106 100644 --- a/net-im/ejabberd/ChangeLog +++ b/net-im/ejabberd/ChangeLog @@ -1,11 +1,16 @@ # ChangeLog for net-im/ejabberd # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.12 2007/02/27 17:47:38 humpback Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.13 2007/02/27 20:26:12 dercorny Exp $ + +*ejabberd-1.1.3 (27 Feb 2007) + + 27 Feb 2007; Stefan Cornelius <dercorny@gentoo.org> +ejabberd-1.1.3.ebuild: + Bumping to version 1.1.3 wrt security bug #159580 27 Feb 2007; Gustavo Felisberto <humpback@gentoo.org>; metadata.xml: Corrected maintainer in metadata. - 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: + 22 Feb 2007; Piotr JaroszyÅski <peper@gentoo.org> ChangeLog: Transition to Manifest2. *ejabberd-1.1.2-r1 (16 Oct 2006) @@ -42,7 +47,7 @@ +files/ejabberd-1.1.1.initd, +ejabberd-1.1.1.ebuild: Version bump, thanks to all contributors in bug #101708. - 05 May 2006; Diego Pettenò <flameeyes@gentoo.org> ejabberd-0.7.5.ebuild: + 05 May 2006; Diego Pettenò <flameeyes@gentoo.org> ejabberd-0.7.5.ebuild: Fix enewuser/enewgroup location, bug #130849. 23 Aug 2005; Gustavo Felisberto <humpback@gentoo.org>; diff --git a/net-im/ejabberd/ejabberd-1.1.3.ebuild b/net-im/ejabberd/ejabberd-1.1.3.ebuild new file mode 100644 index 000000000000..590054e897e5 --- /dev/null +++ b/net-im/ejabberd/ejabberd-1.1.3.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-1.1.3.ebuild,v 1.1 2007/02/27 20:26:12 dercorny Exp $ + +inherit eutils multilib versionator + +JABBER_ETC="/etc/jabber" +JABBER_RUN="/var/run/jabber" +JABBER_SPOOL="/var/spool/jabber" +JABBER_LOG="/var/log/jabber" + +DESCRIPTION="The Erlang Jabber Daemon" +HOMEPAGE="http://ejabberd.jabber.ru/" +SRC_URI="http://process-one.net/en/projects/${PN}/download/${PV}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="mod_irc mod_muc mod_pubsub ldap odbc ssl web" + +DEPEND=">=net-im/jabber-base-0.01 + >=dev-libs/expat-1.95 + >=dev-lang/erlang-10.2.0 + odbc? ( dev-db/unixODBC ) + ldap? ( =net-nds/openldap-2* )" + +PROVIDE="virtual/jabber-server" +S=${WORKDIR}/${P}/src + +src_compile() { + econf ${myconf} \ + $(use_enable mod_irc) \ + $(use_enable ldap eldap) \ + $(use_enable mod_muc) \ + $(use_enable mod_pubsub) \ + $(use_enable ssl tls) \ + $(use_enable web) \ + $(use_enable odbc) \ + || die "econf failed" + + emake || die "compiling ejabberd core failed" +} + +src_install() { + make \ + DESTDIR=${D} \ + EJABBERDDIR=${D}/usr/$(get_libdir)/erlang/lib/${P} \ + ETCDIR=${D}${JABBER_ETC} \ + LOGDIR=${D}${JABBER_LOG} \ + install \ + || die "install failed" + + chown -R jabber:jabber "${D}${JABBER_ETC}" + chown -R jabber:jabber "${D}${JABBER_LOG}" + chown -R jabber:jabber "${D}/usr/$(get_libdir)/erlang/lib/${P}" + + insinto /usr/share/doc/${PF} + dodoc doc/release_notes_${PV}.txt + dohtml doc/*.{html,png} + + # + # Create /usr/bin/ejabberd + # + cat <<EOF > ${T}/ejabberd +#!/bin/bash + +erl -pa /usr/$(get_libdir)/erlang/lib/${P}/ebin \\ + ${pa} \\ + -sname ejabberd \\ + -s ejabberd \\ + -ejabberd config \"${JABBER_ETC}/ejabberd.cfg\" \\ + log_path \"${JABBER_LOG}/ejabberd.log\" \\ + -kernel inetrc \"${JABBER_ETC}/inetrc\" \\ + -sasl sasl_error_logger \{file,\"${JABBER_LOG}/sasl.log\"\} \\ + -mnesia dir \"${JABBER_SPOOL}\" \\ + \$@ +EOF + + # + # Create /usr/bin/ejabberdctl + # + cat <<EOF > ${T}/ejabberdctl +#!/bin/sh + +exec env HOME=${JABBER_RUN} \\ + erl -pa /usr/$(get_libdir)/erlang/lib/${P}/ebin \\ + ${pa} \\ + -noinput \\ + -sname ejabberdctl \\ + -s ejabberd_ctl \\ + -extra \$@ +EOF + + dobin ${T}/ejabberdctl + dobin ${T}/ejabberd + + newinitd ${FILESDIR}/ejabberd-1.1.1-r1.initd ${PN} + newconfd ${FILESDIR}/ejabberd-1.1.1.confd ${PN} + + insinto ${JABBER_ETC} + doins ${FILESDIR}/inetrc + doins ${FILESDIR}/ssl.cnf + newins ${FILESDIR}/self-cert-v2.sh self-cert.sh +} + +pkg_postinst() { + einfo "For configuration instructions, please see /usr/share/doc/${PF}/html/guide.html" + einfo "or the online version at http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html" + echo + if useq ssl ; then + if [ ! -e /etc/jabber/ssl.pem ]; then + ebegin "Creating SSL key" + sh ${JABBER_ETC}/self-cert.sh &> /dev/null + eend $? + fi + chown jabber:jabber ${JABBER_ETC}/ssl.pem + ewarn "Please be sure that your ${JABBER_ETC}/ejabber.cfg points to ${JABBER_ETC}/ssl.pem" + ewarn "You may want to edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh again" + fi + if ! useq web ; then + einfo "The web USE flag is off, this has disabled the web admin interface." + fi + if useq odbc ; then + ewarn "Please add a column askmessage to the rosterusers table if migrating from 1.1.1" + fi +} diff --git a/net-im/ejabberd/files/digest-ejabberd-1.1.3 b/net-im/ejabberd/files/digest-ejabberd-1.1.3 new file mode 100644 index 000000000000..72f1fd1a1f21 --- /dev/null +++ b/net-im/ejabberd/files/digest-ejabberd-1.1.3 @@ -0,0 +1,3 @@ +MD5 bdb39965a147506fc194d5a28117172a ejabberd-1.1.3.tar.gz 826057 +RMD160 99b4c73ae29ef9814f5c572f8e3b3a82d960f5ee ejabberd-1.1.3.tar.gz 826057 +SHA256 3b8ac67673fa6c08bc25382d3e99171ebc71d4759899eb5a730e65117256e703 ejabberd-1.1.3.tar.gz 826057 |