diff options
author | Bart Verwilst <verwilst@gentoo.org> | 2002-11-12 21:30:02 +0000 |
---|---|---|
committer | Bart Verwilst <verwilst@gentoo.org> | 2002-11-12 21:30:02 +0000 |
commit | 7e0997d6cf61a271e0280a34d3fe614e0701f274 (patch) | |
tree | 5ecec164e1adce3c9dd6ff4125842e3fb6c782dc /net-im | |
parent | added kde-3.1_rc3 (masked in packages.mask) (diff) | |
download | historical-7e0997d6cf61a271e0280a34d3fe614e0701f274.tar.gz historical-7e0997d6cf61a271e0280a34d3fe614e0701f274.tar.bz2 historical-7e0997d6cf61a271e0280a34d3fe614e0701f274.zip |
new version, still under development, masked
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabber-server/files/digest-jabber-server-1.4.2-r2 | 6 | ||||
-rw-r--r-- | net-im/jabber-server/files/mio_ssl.c.patch | 33 | ||||
-rw-r--r-- | net-im/jabber-server/jabber-server-1.4.2-r2.ebuild | 105 |
3 files changed, 144 insertions, 0 deletions
diff --git a/net-im/jabber-server/files/digest-jabber-server-1.4.2-r2 b/net-im/jabber-server/files/digest-jabber-server-1.4.2-r2 new file mode 100644 index 000000000000..7d87a54c4dfb --- /dev/null +++ b/net-im/jabber-server/files/digest-jabber-server-1.4.2-r2 @@ -0,0 +1,6 @@ +MD5 e5a0f96ba804a1626e37806d17114e1e jabber-1.4.2.tar.gz 691919 +MD5 e4187c0230648a19f7ca60065238bf92 aim-transport-stable-20021112.tar.gz 288900 +MD5 7cff38bc6f2b0adae9e942cffa1b5b70 msn-transport-stable-20011217.tar.gz 33781 +MD5 565c259b23ac27ead83a97c3c7daa3b5 yahoo-t-2.1.1.tar.gz 35742 +MD5 3946cf625278fb5899cad78d49f469d4 Install_AIM_3.5.1670.exe 2452872 +MD5 3217d8026cea7e65b6e4afc394c79921 muconference-0.3.tar.gz 35358 diff --git a/net-im/jabber-server/files/mio_ssl.c.patch b/net-im/jabber-server/files/mio_ssl.c.patch new file mode 100644 index 000000000000..953737b60afd --- /dev/null +++ b/net-im/jabber-server/files/mio_ssl.c.patch @@ -0,0 +1,33 @@ +--- jabberd/mio_ssl.c Fri Feb 8 02:39:27 2002 ++++ mio_ssl.c Tue May 28 12:16:11 2002 +@@ -219,6 +219,7 @@ + SSL_CTX *ctx = NULL; + int fd; + int sret; ++ int flags; + + if(m->ip == NULL) + { +@@ -228,6 +229,12 @@ + + fd = accept(m->fd, serv_addr, addrlen); + ++ /* set the socket to non-blocking as this is not ++ inherited */ ++ flags = fcntl(fd, F_GETFL, 0); ++ flags |= O_NONBLOCK; ++ fcntl(fd, F_SETFL, flags); ++ + ctx = ghash_get(ssl__ctxs, m->ip); + if(ctx == NULL) + { +@@ -235,7 +242,8 @@ + return -1; + } + ssl = SSL_new(ctx); +- log_debug(ZONE, "SSL accepting socket with new session %x", ssl); ++ log_debug(ZONE, "SSL accepting socket from %s with new session %x", ++ m->ip, ssl); + SSL_set_fd(ssl, fd); + SSL_set_accept_state(ssl); + sret = SSL_accept(ssl); diff --git a/net-im/jabber-server/jabber-server-1.4.2-r2.ebuild b/net-im/jabber-server/jabber-server-1.4.2-r2.ebuild new file mode 100644 index 000000000000..502c191e11c9 --- /dev/null +++ b/net-im/jabber-server/jabber-server-1.4.2-r2.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabber-server/jabber-server-1.4.2-r2.ebuild,v 1.1 2002/11/12 21:30:02 verwilst Exp $ + +IUSE="ssl" + +S="${WORKDIR}/jabber-${PV}" +DESCRIPTION="Open Source Jabber Server & MUC,AIM,MSN,ICQ and Yahoo transports" +HOMEPAGE="http://www.jabber.org" +SRC_URI="http://jabberd.jabberstudio.org/downloads/jabber-${PV}.tar.gz + http://www.ibiblio.org/gentoo/distfiles/aim-transport-stable-20021112.tar.gz + http://www.ibiblio.org/gentoo/distfiles/msn-transport-stable-20011217.tar.gz + http://yahoo-transport.jabberstudio.org/yahoo-t-2.1.1.tar.gz + http://www.ibiblio.org/gentoo/distfiles/Install_AIM_3.5.1670.exe + http://files.jabberstudio.org/mu-conference/muconference-0.3.tar.gz" + +DEPEND=">=dev-libs/pth-1.4.0 + ssl? ( >=dev-libs/openssl-0.9.6g )" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86" + +src_unpack() { + + unpack jabber-${PV}.tar.gz + cd ${S} + patch -p0 < ${FILESDIR}/mio_ssl.c.patch + tar -xjf ${FILESDIR}/config-1.4.2.tar.bz2 + unpack msn-transport-stable-20011217.tar.gz + unpack aim-transport-stable-20021112.tar.gz + unpack yahoo-t-2.1.1.tar.gz + unpack muconference-0.3.tar.gz + mv ${S}/aim-transport-stable-20021012 ${S}/aim-transport + cd ${S}/aim-transport + cp ${DISTDIR}/Install_AIM_3.5.1670.exe . + +} + +src_compile() { + + local myconf + cd ${S} + use ssl && myconf="--enable-ssl" + + mv jabberd/jabberd.c jabberd/jabberd.c.orig + sed 's:pstrdup(jabberd__runtime,HOME):"/usr/bin":' jabberd/jabberd.c.orig > jabberd/jabberd.c + rm -f jabberd/jabberd.c.orig + ./configure ${myconf} || die + make || die + + cd ${S}/aim-transport + ./autogen.sh || die + make || die + + cd ${S}/msn-transport + ./bootstrap || die + ./configure || die + make || die + + cd ${S}/mu-conference + + cd ${S}/yahoo-transport-2 + CPPFLAGS="$CPPFLAGS -I../jabberd -I../../jabberd" ./autogen.sh || die + make || die + +} + + +src_install() { + + cd ${S} + touch error.log + touch record.log + exeinto /etc/init.d ; newexe ${FILESDIR}/jabber.rc6 jabber + mkdir -p ${D}/usr/jabber-${PV} + cp -rf * ${D}/usr/jabber-${PV}/ + cd ${D}/usr/jabber-${PV}/jabberd + +} + +pkg_postinst() { + + cd /usr/jabber-${PV} + groupadd jabber + useradd jabber -s /bin/false -d /usr/jabber-${PV} -g jabber -m + chown jabber.jabber * -R + chmod o-rwx * -R + chmod g-x * -R + chmod g+rw * -R + chmod u+xs jabberd/jabberd + + einfo "Change 'localhost' to your server's domainname in the *.xml configs first" + einfo "To enable SSL connections, execute ./self-cert.sh in the server's dir" + einfo "(Only if compiled with SSL support (ssl in USE)" + einfo "Server admins should be added to the "jabber" group" + +} + +pkg_postrm() { + + userdel jabber + groupdel jabber + +} |