blob: a8213be5d57a646809449087e304a273a1adc709 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/ultimate/ultimate-2.8.8.ebuild,v 1.2 2005/01/30 14:39:34 swegener Exp $
inherit eutils
MY_P="${P/ultimate-/Ultimate}"
DESCRIPTION="And IRCd server based on DALnet's DreamForge IRCd."
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
RESTRICT="nomirror"
HOMEPAGE="http://www.shadow-realm.org/"
KEYWORDS="~x86 ~sparc ~ppc"
SLOT="0"
LICENSE="GPL-2"
IUSE="debug"
RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
S="${WORKDIR}/${MY_P}"
[ -z "${localhost}" ] && localhost="localhost"
src_unpack() {
einfo "To change the settings of your Ultimate ircd server please"
einfo "edit the ${S}/config/ircd.init file."
einfo "To change the domain name of your server, edit the localhost in"
einfo "ultimage-${PV}.ebuild. Otherwise it will default to localhost."
unpack ${A} ; cd ${S}
cp Makefile.dist Makefile
sed -i \
-e "s:XCFLAGS=:XCFLAGS=${CFLAGS}:g" \
-e "s:IRCDLIBS=:IRCDLIBS=-lcrypt -lresolv:g" \
-e "s:IRCDDIR=/usr/local/lib/ircd:IRCDDIR=/usr/lib/ircd:g" \
-e "s:MANDIR=/usr/local/man:MANDIR=/usr/share/man:g" \
Makefile || die "sed Makefile failed"
cp ${FILESDIR}/setup.h ${S}/include/setup.h
# This is supposed to be generated by ./configure
(
echo "#define MYOSNAME \"`uname -a`\""
echo "#define DPATH \"/etc/ultimateircd\""
echo "#define SPATH \"/usr/sbin/ircd\""
echo "#define NICKLEN 30"
echo "#define LISTEN_SIZE 5"
echo "#define MAXSENDQLENGTH 3000000"
echo "#define BUFFERPOOL (6 * MAXSENDQLENGTH)"
echo "#define MAXCONNECTIONS 1024"
echo "#define NICKNAMEHISTORYLENGTH 500"
echo "#define CRYPT_OPER_PASSWORD 1"
echo "#undef CRYPT_LINK_PASSWORD"
echo "#undef UNIXPORT"
echo "#define NOSPOOF 1"
echo "#define NOSPOOF_SEED01 0x08101979"
echo "#define NOSPOOF_SEED02 0x97910180"
echo "#define DOMAINNAME \"localhost\""
echo "#define GLIBC2_x"
) >>${S}/include/settings.h
epatch ${FILESDIR}/Ultimate-2.8.7-gentoo.patch
use debug && \
sed -i \
-e "s:#undef DEBUGMODE:#define DEBUGMODE:g" config.h
}
src_compile() {
emake || die "Make failed"
}
src_install() {
newbin src/ircd ultimate-ircd
newbin ${S}/makeconf ultimate-makeconf
dodir /etc/ultimateircd
insinto /etc/ultimateircd
doins doc/example.conf
mv ${D}/etc/ultimateircd/example.conf ${D}/etc/ultimateircd/ircd.conf
doins config/ircd.channels config/ircd.ini config/ircd.klines
doins config/ircd.quotes
dodir /etc/ultimateircd/networks
insinto /etc/ultimateircd/networks
doins config/networks/*.network
exeinto /etc/init.d
newexe ${FILESDIR}/ultimateircd.rc ultimateircd
exeinto /etc/conf.d
newexe ${FILESDIR}/ultimateircd.conf ultimateircd
dodoc crypt/crypter ircdcron/ircd.cron ircdcron/ircdchk
}
|