blob: 67050f5a305630aeb0fc9546f0ebd8434be40e9c (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# 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.3 2004/02/21 02:42:37 zul Exp $
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
}
|