blob: 8d65cbdbb8358809f0d37011ac8da9354a27ee22 (
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
103
|
# Copyright 1999-200 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Verlihub, a linux hub for the p2p program 'direct connect'"
HOMEPAGE="http://www.verlihub-project.org"
SRC_URI="http://www.verlihub-project.org/download/${P}-r2.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86-fbsd x86"
DEPEND="dev-libs/libpcre
dev-libs/geoip
>=dev-db/mysql-4.0.20
sys-libs/zlib"
IUSE="lua iplog forbid funny messanger chatroom isp replacer stats python"
PDEPEND=" lua? ( net-libs/lua )
iplog? ( net-libs/iplog )
forbid? ( net-libs/forbid )
funny? ( net-libs/funny )
messanger? ( net-libs/messanger )
chatroom? ( net-libs/chatroom )
isp? ( net-libs/isp )
replacer? ( net-libs/replacer )
stats? ( net-libs/stats )
python? ( net-libs/python )
"
S="${WORKDIR}/${P}-r2"
src_unpack() {
unpack "${P}-r2.tar.gz"
cd "${S}"
epatch "${FILESDIR}/*.patch"
}
src_compile() {
econf || die
emake || die "Make failed; please report problems or bugs to bugs@verlihub-project.org or visit http://forums.verlihub-project.org/viewforum.php?f=36"
}
src_install() {
make DESTDIR=${D} install || die
dohtml docs/*.html
docinto "scripts"
dodoc \
scripts/ccgraph \
scripts/import_reglist_0.9.x_to_0.9.8b.sql \
scripts/install \
scripts/regnick \
scripts/runhub \
scripts/setenv \
scripts/trigger \
scripts/vh_runhub.in
docinto ""
dodoc \
AUTHORS \
COPYING \
ChangeLog \
INSTALL \
NEWS \
README \
TODO \
docs/configuring.txt \
docs/help \
docs/help.sql \
docs/ascii \
docs/params.php \
docs/using.txt
}
pkg_postinst() {
echo
ewarn "Do NOT report bugs to Gentoo's bugzilla"
einfo "Please report all bugs to bugs@verlihub-project.org or to http://forums.verlihubproject.org/viewforum.php?f=36"
einfo "Verlihub Project Team"
if [[ -f "/etc/verlihub/dbconfig" ]]
then
einfo "Verlihub is already configured in /etc/verlihub"
einfo "You can configure a new hub by typing:"
ewarn "emerge --config =${CATEGORY}/${PF}"
else
ewarn "You MUST configure verlihub before starting it:"
ewarn "emerge --config =${CATEGORY}/${PF}"
ewarn "That way you can [re]configure your verlihub setup"
fi
}
pkg_config() {
ewarn "Configuring verlihub"
/usr/bin/vh_install
if [[ $? ]]
then
ewarn "You have not configured verlihub succesfully. Please try again"
else
ewarn "Configuration completed"
fi
}
|