blob: 9d28f19c00d009969478126b99f1461636baa87d (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/eggdrop/eggdrop-1.6.15-r1.ebuild,v 1.11 2004/06/24 23:03:55 agriffis Exp $
inherit fixheadtails eutils
DESCRIPTION="An IRC bot extensible with C or Tcl."
HOMEPAGE="http://www.eggheads.org/"
SRC_URI="ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/eggdrop${PV}.tar.gz http://gentoo.mirror.at.stealer.net/files/${P}-STEALER.net.patch.bz2"
KEYWORDS="x86 sparc ~mips ia64 alpha ppc"
LICENSE="GPL-2"
SLOT="0"
IUSE="debug static ipv6 mysql"
DEPEND="dev-lang/tcl
mysql? ( dev-db/mysql )"
pkg_setup() {
use ipv6 && \
ewarn "Note: If eggdrop is built with ipv6 support, the dns.so module is"
ewarn "not built."
}
src_unpack() {
unpack ${A}
mv ${WORKDIR}/eggdrop${PV} ${WORKDIR}/${P}
epatch ${FILESDIR}/${P}-config.patch
epatch ${FILESDIR}/${P}-botchk.patch
epatch ${FILESDIR}/${P}-configure-in.patch
epatch ${FILESDIR}/${P}-potential-undef-tm-struct.patch
epatch ${P}-STEALER.net.patch
cd ${WORKDIR}/${P}
ht_fix_file configure aclocal.m4
autoconf || die "autoconf failed?!"
}
src_compile() {
local mytarg myconf
# Sets eggdrop to use ipv6
use ipv6 && myconf="${myconf} --enable-ipv6"
use mysql || echo mysql >>disabled_modules
./configure \
--host=${CHOST} \
--disable-cc-optimization \
${myconf} || die "./configure failed"
make config || die "module config failed"
if use static; then
make static || die "make static failed"
fi
if use debug; then
make debug || die "make debug failed"
fi
make || die "make failed"
}
src_install() {
local a
make DEST=${D}/opt/eggdrop install
for a in doc/*
do
[ -f $a ] && dodoc $a
done
cd src/mod
for a in *.mod
do
for b in README UPDATES INSTALL TODO CONTENTS
do
[ -f $a/$b ] && newdoc $a/$b $b.$a
done
done
cd ${S}
dodoc src/mod/botnetop.mod/botnetop.conf src/mod/gseen.mod/gseen.conf
dodoc src/mod/mc_greet.mod/mc_greet.conf src/mod/stats.mod/stats.conf
dodoc src/mod/away.mod/away.doc src/mod/rcon.mod/matchbot.tcl
for a in doc/html/*
do
[ -f $a ] && dohtml $a
done
dobin ${FILESDIR}/eggdrop-installer
doman doc/man1/eggdrop.1
}
pkg_postinst() {
einfo "Please run /usr/bin/eggdrop-installer to install your eggdrop bot."
}
|