Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 202123 Details for
Bug 281366
net-im/ejabberd-2.1.4 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
new diff from ejabberd-2.0.5-r3
ejabberd-2.1.0_beta2.ebuild.diff (text/plain), 5.95 KB, created by
Vadim Efimov
on 2009-08-24 08:40:46 UTC
(
hide
)
Description:
new diff from ejabberd-2.0.5-r3
Filename:
MIME Type:
Creator:
Vadim Efimov
Created:
2009-08-24 08:40:46 UTC
Size:
5.95 KB
patch
obsolete
>--- /usr/portage/net-im/ejabberd/ejabberd-2.0.5-r3.ebuild 2009-06-03 10:07:17.000000000 +0400 >+++ ./ejabberd-2.1.0_beta2.ebuild 2009-08-24 02:01:03.000000000 +0400 >@@ -1,8 +1,10 @@ > # Copyright 1999-2009 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 >-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-2.0.5-r3.ebuild,v 1.1 2009/06/03 06:07:17 fauli Exp $ >+# $Header: $ > >-inherit eutils multilib >+EAPI=2 >+ >+inherit eutils multilib pam > > JABBER_ETC="/etc/jabber" > JABBER_RUN="/var/run/jabber" >@@ -11,21 +13,23 @@ > > MY_PV=${PV} > MY_P=${PN}-${MY_PV} >+BASE_PV=${PV%_*} > > DESCRIPTION="The Erlang Jabber Daemon" > HOMEPAGE="http://www.ejabberd.im/" >-SRC_URI="http://www.process-one.net/downloads/ejabberd/${PV}/${MY_P}.tar.gz" >+SRC_URI="http://www.process-one.net/downloads/${PN}/${MY_PV}/sources/${MY_P}.tar.gz" > LICENSE="GPL-2" > SLOT="0" > KEYWORDS="~amd64 ~ppc ~x86" >-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc pam ssl web zlib" >+IUSE="captcha debug mod_irc mod_muc mod_proxy65 mod_pubsub ldap odbc pam ssl web zlib" > > DEPEND=">=net-im/jabber-base-0.01 > >=dev-libs/expat-1.95 >- >=dev-lang/erlang-11.2.5 >+ >=dev-lang/erlang-12.2.5 > odbc? ( dev-db/unixODBC ) > ldap? ( =net-nds/openldap-2* ) > ssl? ( >=dev-libs/openssl-0.9.8e ) >+ captcha? ( media-gfx/imagemagick[truetype,png] ) > zlib? ( sys-libs/zlib )" > RDEPEND="${DEPEND}" > >@@ -33,78 +37,58 @@ > > S=${WORKDIR}/${MY_P}/src > >-src_unpack() { >- unpack ${A} >- cd "${S}" >- >- # make ejabberd working with erlang-13 >- rm ram_file_io_server.erl >- epatch "${FILESDIR}/ejabberd-2.0.5-erlang-13.patch" >- >- # get rid of the prefix >- sed -i -e "s/\\@prefix\\@//" "${S}/Makefile.in" \ >- || die "cannot sed Makefile.in" >- # we want ejabberdctl in /usr/sbin not /sbin !!! >- sed -i -e "s/\\/sbin/\\/usr\\/sbin/" "${S}/Makefile.in" \ >- || die "cannot sed Makefile.in" >-} >- >-src_compile() { >- econf --prefix=/ \ >+src_configure() { >+ econf \ > $(use_enable mod_irc) \ > $(use_enable ldap eldap) \ > $(use_enable mod_muc) \ >+ $(use_enable mod_proxy65) \ > $(use_enable mod_pubsub) \ > $(use_enable ssl tls) \ > $(use_enable web) \ > $(use_enable odbc) \ > $(use_enable zlib ejabberd_zlib) \ > $(use_enable pam) \ >- || die "econf failed" >+ --enable-user=jabber \ >+ || die "econf failed" >+} > >- if useq debug; then >- emake ejabberd_debug=true || die "compiling ejabberd core failed" >- else >- emake || die "compiling ejabberd core failed" >- fi >+src_compile() { >+ >+ emake $(use debug && echo debug=true ejabberd_debug=true) || die "compiling ejabberd core failed" > } > > src_install() { >- make \ >+ emake \ > DESTDIR="${D}" \ > EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \ > ETCDIR="${D}${JABBER_ETC}" \ > LOGDIR="${D}${JABBER_LOG}" \ >+ SPOOLDIR="${D}${JABBER_SPOOL}" \ > install || die "install failed" > >- # remove the default ejabberdctl as we use our own >- rm "${D}/sbin/ejabberdctl" >- > insinto ${JABBER_ETC} > >- fowners -R jabber:jabber ${JABBER_ETC} >- fowners -R jabber:jabber ${JABBER_LOG} >- fowners -R jabber:jabber /usr/$(get_libdir)/erlang/lib/${P} >- >- if useq ssl; then >+ if use ssl; then > doins "${FILESDIR}/ssl.cnf" > newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh > fi > > # Pam helper module permissions > # http://www.process-one.net/docs/ejabberd/guide_en.html >- if useq pam; then >- fowners root:jabber /usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam >- fperms 4750 /usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam >+ if use pam; then >+ pamd_mimic_system xmpp auth account || die "Cannot create pam.d file" >+ fperms 4750 "/usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam" || die "Cannot adjust epam permissions" > fi > > cd "${WORKDIR}/${MY_P}/doc" >- dodoc "release_notes_${MY_PV}.txt" >+ dodoc "release_notes_${BASE_PV}.txt" > dohtml *.{html,png} >+ rm -rf "${D}/usr/share/doc/${PN}" > > # set up /usr/sbin/ejabberd wrapper >- cat "${FILESDIR}/ejabberd-wrapper-2.template" \ >- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \ >+ cat "${FILESDIR}/ejabberd-wrapper-3.template" \ >+ | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" -e "s:\@doc\@:${PF}:g" \ > > "${T}/ejabberd" > exeinto /usr/sbin > doexe "${T}/ejabberd" || die >@@ -116,14 +100,18 @@ > doexe "${T}/ejabberdctl" > > dodir /var/lib/ejabberd >- newinitd "${FILESDIR}/${PN}-2.initd" ${PN} || die >- newconfd "${FILESDIR}/${PN}-2.confd" ${PN} || die >+ newinitd "${FILESDIR}/${PN}-2.initd" ${PN} || die "Cannot install init.d script" >+ newconfd "${FILESDIR}/${PN}-2.confd" ${PN} || die "Cannot install conf.d file" > > # fix up the ssl cert paths in /etc/jabber/ejabberd.cfg to use the cert > # that would be generated by /etc/jabber/self-cert.sh > sed -i -e "s/\/path\/to\/ssl.pem/\/etc\/jabber\/ssl.pem/g" \ > "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg" > >+ # correct path to captcha script in default ejabberd.cfg >+ sed -r 's|\{captcha_cmd,[[:space:]]*".+"\}|{captcha_cmd, "/usr/'$(get_libdir)'/erlang/lib/'${P}'/priv/bin/captcha.sh"}|' -i \ >+ "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg" >+ > # if mod_irc is not enabled, comment out the mod_irc in the default > # ejabberd.cfg > if ! use mod_irc; then >@@ -136,16 +124,19 @@ > 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/projects/ejabberd/docs/guide_en.html" >- if useq ssl ; then >+ >+ if use ssl ; then > if [ ! -e /etc/jabber/ssl.pem ]; then > elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh" > elog "Ejabberd may refuse to start without an SSL certificate" > fi > fi >- if ! useq web ; then >+ >+ if ! use web ; then > elog "The web USE flag is off, this has disabled the web admin interface." > fi >- elog "====================================================================" >+ >+ elog '====================================================================' > elog 'Quick Start Guide:' > elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89' > elog ' {hosts, ["localhost", "thehost"]}.'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 281366
:
201880
|
201884
|
202123
|
202124
|
202125
|
202127
|
202132
|
202133
|
202173
|
203918
|
208978
|
210162
|
210348
|
210349
|
214845
|
214847