blob: c4fc78568954121667d5f4eef2adc5e11f8d25db (
plain) (
blame)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="An improved version of iroffer - an IRC XDCC bot."
HOMEPAGE="http://iroffer.dinoex.net"
SRC_URI="http://iroffer.dinoex.net/${P}.tar.gz"
KEYWORDS="~x86 ~amd64"
LICENSE="GPL-2"
SLOT="0"
LANGUAGES="linguas_it linguas_de linguas_en"
IUSE="geoip curl tls upnp ruby +blowfish +openssl +http +admin +telnet +memsave static ${LANGUAGES}"
DEPEND="ruby? ( dev-lang/ruby )
geoip? ( dev-libs/geoip )
curl? ( net-misc/curl )
tls? ( net-libs/gnutls )
openssl? ( dev-libs/openssl )"
RDEPEND="!static? ( ${DEPEND} )"
src_compile() {
local configure_opts
if use geoip ; then
configure_opts="${configure_opts} -geoip"
fi
if use curl ; then
configure_opts="${configure_opts} -curl"
fi
if use tls ; then
if use openssl ; then
die "Please select only openssl or tls!"
fi
configure_opts="${configure_opts} -tls"
fi
if use upnp ; then
configure_opts="${configure_opts} -upnp"
fi
if use ruby ; then
configure_opts="${configure_opts} -ruby"
fi
if ! use blowfish ; then
configure_opts="${configure_opts} -no-blowfish"
fi
if ! use openssl ; then
configure_opts="${configure_opts} -no-openssl"
fi
if ! use http ; then
configure_opts="${configure_opts} -no-http"
fi
if ! use admin ; then
configure_opts="${configure_opts} -no-admin"
fi
if ! use telnet ; then
configure_opts="${configure_opts} -no-telnet"
fi
if ! use memsave ; then
configure_opts="${configure_opts} -no-memsave"
fi
if use static ; then
configure_opts="${configure_opts} -no-libs"
fi
echo ${configure_opts}
./Configure ${configure_opts}
if use linguas_en ; then
./Lang en
elif use linguas_de ; then
./Lang de
elif use linguas_it ; then
./Lang it
fi
emake || die "emake failed"
}
src_install() {
dobin iroffer
insinto /usr/share/iroffer-dinoex/
doins beispiel.config
doins iroffer.cron
if use ruby ; then
doins ruby-sample.rb
fi
if use http ; then
doins *.html
insinto /usr/share/iroffer-dinoex/htocs/
doins htdocs/*
fi
dodoc LICENSE
dodoc LIESMICH.modDinoex
dodoc README-iroffer.txt
dodoc README.modDinoex
dodoc THANKS
dodoc TODO
if use admin ; then
if use linguas_en ; then
dodoc help-admin-en.txt
fi
if use linguas_de ; then
dodoc help-admin-de.txt
fi
if use linguas_it ; then
dodoc help-admin-it.txt
fi
fi
doman iroffer.1
}
|