blob: 4c729a8e2a60d1094dbe7ff77ea9a662b3216df7 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.1.6.ebuild,v 1.5 2004/06/24 23:09:40 agriffis Exp $
inherit eutils
MY_P=Unreal${PV}-Noon
DESCRIPTION="aimed to be an advanced (not easy) IRCd"
HOMEPAGE="http://www.unrealircd.com/"
SRC_URI="http://www.gower.net/unrealircd/${MY_P}.tar.gz
ftp://unreal.secure-tech.net/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
IUSE="ssl"
DEPEND="ssl? ( dev-libs/openssl )
>=sys-apps/sed-4"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A} && cd ${S}
rm -f .CHANGES.NEW .RELEASE.NOTES
epatch ${FILESDIR}/${PV}-Config.patch
sed -i 's:^ID_CVS.*::' src/res_mkquery.c
cp Config{,.orig}
sed -e "s:GENTOO_CFLAGS:${CFLAGS}:" \
Config.orig > Config
}
src_compile() {
./Config || die "configure failed"
make RES="res_init.o res_comp.o res_mkquery.o" \
|| die "compiling failed"
}
src_install() {
newbin src/ircd unrealircd || die
newbin makeconf unrealircd-makeconf || die
newbin src/chkconf unrealircd-chkconf || die
insinto /etc/unrealircd
doins badwords.*.conf
insinto /etc/unrealircd/networks
doins networks/{template.network,unrealircd.conf}
dodoc doc/* Changes Donation Unreal.nfo dynconf ircdcron/*
exeinto /etc/init.d
newexe ${FILESDIR}/unrealircd.rc unrealircd
insinto /etc/conf.d
newins ${FILESDIR}/unrealircd.confd unrealircd
}
pkg_postinst() {
einfo "UnrealIRCD will not run until you do a few things ..."
echo
einfo "Setup /etc/unrealircd/unrealircd.conf"
einfo " see /etc/unrealircd/template.network for more info"
einfo "Setup /etc/unrealircd/ircd.conf"
einfo " see /usr/share/doc/${PF}/example.conf.gz for more info"
echo
einfo "You can find example cron scripts here:"
einfo " /usr/share/doc/${PF}/ircd.cron"
einfo " /usr/share/doc/${PF}/ircdchk"
echo
einfo "You can also use /etc/init.d/unrealircd to start at boot"
echo
}
|