summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2009-05-20 22:40:47 +0000
committerCaleb Tennis <caleb@gentoo.org>2009-05-20 22:40:47 +0000
commiteb725d232b6acde33ecfc3969c26141db02898a1 (patch)
treec27d952f89cbc596bf20a86aec2bc0ba285f476c /net-im/ejabberd
parentNot compatible with erlang 13, so make sure we're using 12 for now per #267524 (diff)
downloadhistorical-eb725d232b6acde33ecfc3969c26141db02898a1.tar.gz
historical-eb725d232b6acde33ecfc3969c26141db02898a1.tar.bz2
historical-eb725d232b6acde33ecfc3969c26141db02898a1.zip
remove old ebuilds
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'net-im/ejabberd')
-rw-r--r--net-im/ejabberd/ChangeLog8
-rw-r--r--net-im/ejabberd/Manifest10
-rw-r--r--net-im/ejabberd/ejabberd-2.0.1_p2-r1.ebuild159
-rw-r--r--net-im/ejabberd/ejabberd-2.0.2-r1.ebuild157
-rw-r--r--net-im/ejabberd/ejabberd-2.0.2.ebuild157
-rw-r--r--net-im/ejabberd/ejabberd-2.0.4-r1.ebuild159
-rw-r--r--net-im/ejabberd/ejabberd-2.0.5-r1.ebuild155
-rw-r--r--net-im/ejabberd/ejabberd-2.0.5.ebuild155
8 files changed, 8 insertions, 952 deletions
diff --git a/net-im/ejabberd/ChangeLog b/net-im/ejabberd/ChangeLog
index 9bb304dd9a5d..6322a93ca96e 100644
--- a/net-im/ejabberd/ChangeLog
+++ b/net-im/ejabberd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-im/ejabberd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.60 2009/05/20 22:39:08 caleb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.61 2009/05/20 22:40:47 caleb Exp $
+
+ 20 May 2009; Caleb Tennis <caleb@gentoo.org> -ejabberd-2.0.1_p2-r1.ebuild,
+ -ejabberd-2.0.2.ebuild, -ejabberd-2.0.2-r1.ebuild,
+ -ejabberd-2.0.4-r1.ebuild, -ejabberd-2.0.5.ebuild,
+ -ejabberd-2.0.5-r1.ebuild:
+ Remove old ebuilds
20 May 2009; Caleb Tennis <caleb@gentoo.org> ejabberd-2.0.5-r2.ebuild:
Not compatible with erlang 13, so make sure we're using 12 for now per
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest
index 358fa7a995cc..275bb0ef4506 100644
--- a/net-im/ejabberd/Manifest
+++ b/net-im/ejabberd/Manifest
@@ -19,19 +19,11 @@ AUX self-cert-v2.sh 1017 RMD160 3beb0f05e8cc3041abd2f689d31d410bc7d5088d SHA1 1f
AUX self-cert.sh 491 RMD160 89bb577975eef172fa3c6e07b08d323162d1278b SHA1 61a4c8b79141ec1bc846e8ede6fa19a07210c619 SHA256 6a0c53a8573411c18ed6f5dd79ce4807b72fb10bc5eb3a3a7f4641c57e4ddceb
AUX ssl.cnf 1042 RMD160 47d2542942fb21f4be1e827d47eb4e0468e73910 SHA1 7347bae5a195ad158881fe5313f55ee41e85cb81 SHA256 ed066f7720fd9f4c2d57ffb2ebcbc4b2810d2b7ca22b67ec8c1dc1227baaa635
DIST ejabberd-1.1.4.tar.gz 846059 RMD160 4c72548129b0196ff0096bd85936e0750fc4d7be SHA1 db6f521d45dece200de4eb6fc967c64728e8f6a3 SHA256 dcd61b72c522eee77ab56227b16d75fd5741efe2b9b9a8a1d3ed7eefc2a7e4f6
-DIST ejabberd-2.0.1_2.tar.gz 1054739 RMD160 a5561a6c508bbb9846a351189ed5aad2f5fb65ee SHA1 7fbb21eb87206c1b40e5234927e2d6a20de66149 SHA256 a5335517a443e80dae4698a33423858201d699af18d2b53b279a2ad171916ad4
-DIST ejabberd-2.0.2.tar.gz 1040817 RMD160 b24c1c2d6ce8c56fd26f28a98b89d99890dbad72 SHA1 7c82082b941277fe18aac25ca9b2016f25dc8472 SHA256 23136f2d215e82836d84322011914e1c9a846ab056b80cd26ff3e70b300b345a
DIST ejabberd-2.0.4.tar.gz 1827181 RMD160 05b8d1fd42724335af588bf6fa7a14e5605bf6e3 SHA1 16516c7f9723e1ca781970d54afbf580a72c9eeb SHA256 6ddbd1501bd2824673522e2a3c119195acc177ce198800a116f90d5b0e3d2172
DIST ejabberd-2.0.5.tar.gz 1796737 RMD160 5ec0210b3995004c708180a66a096e0b9be5f1ba SHA1 e5b8c4b742fdcc439da9458f94f530604abdfdd5 SHA256 37ef90e2afa2b73a620bf71a096df48d5fde8f1cd669fac83d8c143a1295198c
EBUILD ejabberd-1.1.4-r1.ebuild 3456 RMD160 2f1ad83dd3d4773dd10de489f71939bb3b35fed5 SHA1 a191993a20e11ef84a6097029190360d5a1ce731 SHA256 db2686cc2ce063421843b048091af363fe8f18b88ebbeebe20f419a50dc38792
EBUILD ejabberd-1.1.4-r2.ebuild 3479 RMD160 d6bfed9a9127bc8246d315b16c184bf7a94bccde SHA1 b2815db38d8d76d7697d82505f8bdf9cb7401195 SHA256 9898cff52c3d8948bddb16dcb5392c2a7cd8eafb48c69e9b5e6d74884023575d
-EBUILD ejabberd-2.0.1_p2-r1.ebuild 4872 RMD160 a1318db109e7036590ed4a5dee8ee165599903aa SHA1 71101d77390657292afa00357917c194c5756a57 SHA256 022fc433455080d2a21371ff3f937501fc683fd0af200770311f1143987c5e6b
-EBUILD ejabberd-2.0.2-r1.ebuild 4799 RMD160 aa56c896ec0fb7300c30d0b651589144794ab50c SHA1 2ad961722792f7bd032c6886a3ab359982e4693d SHA256 64d7b172446ba709f5392affed0f5118958271faf88034d54165dc3590455e05
-EBUILD ejabberd-2.0.2.ebuild 4796 RMD160 21b06d748fdce3254de01ea4534283b773a1f576 SHA1 b1314459af0720306c0354771cc52df390ca6a28 SHA256 8311eeceae62f8387c62c05343c82cc1d1985aa661084cedad03ae457b704e87
-EBUILD ejabberd-2.0.4-r1.ebuild 4880 RMD160 1afa8baedd614d60a94d2127b97cf731aa821a0f SHA1 87821e4fa57ba76558e50db23a74496aaef292b9 SHA256 e2ee596c6ceda950b378f85b59e8dcde5f80d1bf54f3960de2abb79d479f06fd
EBUILD ejabberd-2.0.4.ebuild 4814 RMD160 3d3f65505877405ca7cbf008f900636146520f55 SHA1 ec3c64f8a4f55f98dc963b55ea7da5cd76f9f908 SHA256 62b65d0e2d4210437541a56d77388737ba26597b04233580c1bfc942177a3478
-EBUILD ejabberd-2.0.5-r1.ebuild 4770 RMD160 7b279e3aff8d06575c80ef0b97fd5d53d520f366 SHA1 cffb43b818e00cf96c016c60e4d2ab92fb0a285c SHA256 b249f548aa17ad8237fc269117331c776fef8feda24414a1b189ee277da270dc
EBUILD ejabberd-2.0.5-r2.ebuild 4791 RMD160 ab86cf43e37f45a24e50d29804176d4daf8f77af SHA1 81c55701cf8f32e1afabc34a2b3877168bc900fb SHA256 361fcfaa8ef40f34619fd63f616bbedbdc9da958cd6c31dbb99b69fde232f6fb
-EBUILD ejabberd-2.0.5.ebuild 4748 RMD160 a9a593a515366f3c2021f4c4319b8f74b2f4338f SHA1 48c44b6356bafcfe7de34d0732feebcb80a1f46e SHA256 7edda3b2aeb9d9202cf8018b57c67dfbbb7fac95cbb40a3f55108b0f6d00409e
-MISC ChangeLog 12941 RMD160 2ce9edc68c3196263fb3cadd75e7e652cdb817b3 SHA1 6493a5de325dfa6ec5a8c7926a512aaa3444534f SHA256 934e97475b609732fe65eeda9f5256018d8efbeeeb1123dbef285c10d24ab973
+MISC ChangeLog 13175 RMD160 da73a0f62700f38adc1a72244185f72a20a8940a SHA1 219ca31e004d6217dc622f278804e94e07323637 SHA256 0e4c1232f36fb15f087330ed91ca666eeab0bb3d55335b86d0c32d3de40898ae
MISC metadata.xml 619 RMD160 ca6e7f018d370ce36a3b93eb960254537260949c SHA1 404f3d0d31036ed1cfeb8aeee2264559c1d1c8d9 SHA256 843e1bbd5fdc082763e71322094170cde5b90d0f5d9320011c4b9872cd6589f4
diff --git a/net-im/ejabberd/ejabberd-2.0.1_p2-r1.ebuild b/net-im/ejabberd/ejabberd-2.0.1_p2-r1.ebuild
deleted file mode 100644
index 44e77f741e9a..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.1_p2-r1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# 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.1_p2-r1.ebuild,v 1.5 2009/04/09 05:40:39 pva Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV/_p2/}
-MY_P=${PN}-${MY_PV}
-
-DESCRIPTION="The Erlang Jabber Daemon"
-HOMEPAGE="http://www.ejabberd.im/"
-SRC_URI="http://process-one.net/en/projects/${PN}/download/${MY_PV}/${P/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"
-
-DEPEND=">=net-im/jabber-base-0.01
- >=dev-libs/expat-1.95
- >=dev-lang/erlang-11.2.5
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-
-PROVIDE="virtual/jabber-server"
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/2.0.0-missing-declaration.patch"
-
- # Bug #225565
- epatch "${FILESDIR}/2.0.1-parallel-make.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=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || 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_install() {
- make \
- DESTDIR="${D}" \
- EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \
- ETCDIR="${D}${JABBER_ETC}" \
- LOGDIR="${D}${JABBER_LOG}" \
- install || die "install failed"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- 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}"
-
- if useq 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
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # 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"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- 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 [ ! -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
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -s` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- 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'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.2-r1.ebuild b/net-im/ejabberd/ejabberd-2.0.2-r1.ebuild
deleted file mode 100644
index 4857fc50ac7f..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.2-r1.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# 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.2-r1.ebuild,v 1.2 2009/04/09 05:40:39 pva Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_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"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug mod_irc mod_muc 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
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/2.0.0-missing-declaration.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=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || 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_install() {
- make \
- DESTDIR="${D}" \
- EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \
- ETCDIR="${D}${JABBER_ETC}" \
- LOGDIR="${D}${JABBER_LOG}" \
- install || die "install failed"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- 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}"
-
- if useq 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
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # 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"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- 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 [ ! -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
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -s` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- 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'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.2.ebuild b/net-im/ejabberd/ejabberd-2.0.2.ebuild
deleted file mode 100644
index 78b593e2d219..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.2.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# 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.2.ebuild,v 1.4 2009/04/09 05:40:39 pva Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_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"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug mod_irc mod_muc 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
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/2.0.0-missing-declaration.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=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || 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_install() {
- make \
- DESTDIR="${D}" \
- EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \
- ETCDIR="${D}${JABBER_ETC}" \
- LOGDIR="${D}${JABBER_LOG}" \
- install || die "install failed"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- 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}"
-
- if useq 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
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # 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"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- 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 [ ! -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
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -s` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- 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'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.4-r1.ebuild b/net-im/ejabberd/ejabberd-2.0.4-r1.ebuild
deleted file mode 100644
index 760cb591466e..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.4-r1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# 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.4-r1.ebuild,v 1.2 2009/04/09 05:40:39 pva Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_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"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug mod_irc mod_muc 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
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/2.0.0-missing-declaration.patch"
- epatch "${FILESDIR}/${PN}-2.0.4-fix-EJAB-890.patch" #263950
-
- # 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=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || 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_install() {
- make \
- DESTDIR="${D}" \
- EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \
- ETCDIR="${D}${JABBER_ETC}" \
- LOGDIR="${D}${JABBER_LOG}" \
- install || die "install failed"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- 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}"
-
- if useq 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
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # 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"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- 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 [ ! -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
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- 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'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild b/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild
deleted file mode 100644
index e9419ada3519..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild
+++ /dev/null
@@ -1,155 +0,0 @@
-# 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-r1.ebuild,v 1.2 2009/04/22 20:56:55 maekke Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_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"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ppc ~x86"
-IUSE="debug mod_irc mod_muc 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
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # 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=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || 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_install() {
- make \
- DESTDIR="${D}" \
- EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \
- ETCDIR="${D}${JABBER_ETC}" \
- LOGDIR="${D}${JABBER_LOG}" \
- 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
- 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
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd" || die
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s:\@libdir\@:$(get_libdir):g" -e "s:\@version\@:${PV}:g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN} || die
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN} || die
-
- # 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"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- 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 [ ! -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
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- 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'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.5.ebuild b/net-im/ejabberd/ejabberd-2.0.5.ebuild
deleted file mode 100644
index f6afa6e9c1a9..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.5.ebuild
+++ /dev/null
@@ -1,155 +0,0 @@
-# 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.ebuild,v 1.2 2009/04/19 13:49:52 maekke Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_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"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
-IUSE="debug mod_irc mod_muc 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
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # 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=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || 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_install() {
- make \
- DESTDIR="${D}" \
- EJABBERDDIR="${D}/usr/$(get_libdir)/erlang/lib/${P}" \
- ETCDIR="${D}${JABBER_ETC}" \
- LOGDIR="${D}${JABBER_LOG}" \
- install || die "install failed"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- 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}"
-
- if useq 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
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # 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"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- 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 [ ! -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
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- 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'
-}