blob: 5eaaa5dcc7390441706853412c62d8b999f2993d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
# 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.8 2002/11/14 17:03:34 verwilst Exp $
IUSE="ssl"
ICQv7="0.3.0pre2"
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
mirror://sourceforge/icqv7-t/icqv7-t-${ICQv7}.tar.gz"
DEPEND="=dev-libs/pth-1.4.0
>=dev-libs/glib-2
~dev-libs/libsigc++-1.0.4
>=net-libs/libicq2000-0.3.1
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
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
unpack icqv7-t-${ICQv7}.tar.gz
patch -p0 < ${FILESDIR}/hash_map_gcc32.patch
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
./configure || die
make || die
make install
cd ${S}/msn-transport
./bootstrap || die
./configure || die
make || die
cd ${S}/mu-conference
make || die
cd ${S}/yahoo-transport-2
make || die
if [ "${COMPILER}" = "gcc3" ]; then
cd ${S}/icqv7-t-${ICQv7}
./configure --bindir=${D}/usr --sbindir=${D}/usr --with-jabberd=../jabberd || die
make CFLAGS="${CFLAGS} -I../../jabberd " || die
fi
}
src_install() {
cd ${S}
exeinto /etc/init.d ; newexe ${FILESDIR}/jabber.rc6-r1 jabber
mkdir -p ${D}/usr/sbin
mkdir -p ${D}/etc/jabber
mkdir -p ${D}/usr/lib/jabber
mkdir -p ${D}/var/log/jabber
mkdir -p ${D}/var/run
if [ "${COMPILER}" = "gcc3" ]; then
cd ${S}/icqv7-t-${ICQv7}
make DESTDIR=${D} install || die
fi
cp ${S}/jabberd/jabberd ${D}/usr/sbin/
cp ${S}/aim-transport/src/aimtrans.so ${D}/usr/lib/jabber/
cp ${S}/aim-transport/Install_AIM_3.5.1670.exe ${D}/usr/lib/jabber/
cp ${S}/msn-transport/src/msntrans.so ${D}/usr/lib/jabber/
cp ${S}/mu-conference/src/mu-conference.so ${D}/usr/lib/jabber/
cp ${S}/yahoo-transport-2/yahoo-transport.so ${D}/usr/lib/jabber/
cd ${D}/etc/jabber
tar -xjf ${FILESDIR}/config-1.4.2-r1.tbz2
}
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
}
|