blob: d918c1a89fd5104e887b103884935388823197c6 (
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
|
# 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-3.0.0_rc2.ebuild,v 1.2 2005/02/17 02:25:54 swegener Exp $
inherit eutils fixheadtails
MY_P="Ultimate${PV/_/.}"
DESCRIPTION="An IRCd server based on DALnet's DreamForge IRCd."
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
HOMEPAGE="http://www.shadow-realm.org/"
KEYWORDS="~x86 ~sparc ~ppc"
SLOT="0"
LICENSE="GPL-2"
IUSE="debug ssl"
RDEPEND="virtual/libc
ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-config.patch
ht_fix_file configure
}
src_compile() {
econf \
--sysconfdir=/etc/ultimateircd \
--localstatedir=/var/lib/ultimateircd \
$(use_enable ssl openssl) \
|| die "econf failed"
emake || die "Make failed"
}
src_install() {
dodir /etc/ultimateircd
keepdir /var/log/ultimateircd /var/run/ultimateircd
fowners nobody /var/log/ultimateircd /var/run/ultimateircd
einstall \
sysconfdir=${D}/etc/ultimateircd \
localstatedir=${D}/var/lib/ultimateircd \
networksubdir=${D}/etc/ultimateircd/networks \
|| die "einstall failed"
rm -f ${D}/usr/{{ircd,kill,rehash},bin/{ircdchk,ssl-{cert,search}.sh}}
mv ${D}/usr/bin/ircd ${D}/usr/bin/ultimateircd
mv ${D}/usr/bin/mkpasswd ${D}/usr/bin/ultimateircd-mkpasswd
newinitd ${FILESDIR}/ultimateircd.rc-3.0.0 ultimateircd
newconfd ${FILESDIR}/ultimateircd.conf ultimateircd
}
|