blob: 5ebf6061b3dab40dd514bfa4c80df8271d9c5146 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="A really tiny cross-platform proxy servers set"
HOMEPAGE="https://www.3proxy.ru/"
SRC_URI="https://github.com/z3APA3A/3proxy/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
IUSE=""
PATCHES=(
"${FILESDIR}"/${PN}-0.8.12-gentoo.patch
)
DOCS=( README cfg )
HTML_DOCS=( doc/html/. )
src_prepare() {
default
cp Makefile.Linux Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" LN="$(tc-getCC)"
}
src_install() {
local x
pushd src >/dev/null || die
dobin 3proxy
for x in proxy socks ftppr pop3p tcppm udppm mycrypt dighosts icqpr smtpp; do
newbin ${x} ${PN}-${x}
[[ -f "${S}"/man/${x}.8 ]] && newman "${S}"/man/${x}.8 ${PN}-${x}.8
done
popd >/dev/null
doman man/3proxy*.[38]
einstalldocs
}
|