blob: 76c575fefb46006b397e747bf2840bd61626d62f (
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 Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/socat/socat-1.3.1.0.ebuild,v 1.4 2004/06/25 00:13:00 agriffis Exp $
DESCRIPTION="Multipurpose relay (SOcket CAT)"
HOMEPAGE="http://www.dest-unreach.org/socat/"
SRC_URI="http://www.dest-unreach.org/${PN}/download/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="ssl readline ipv6"
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6 )
readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
virtual/glibc"
RDEPEND="virtual/glibc"
S="${WORKDIR}/socat-1.3"
src_compile() {
# Construct the config options for the optional features.
local myconf
use ssl || myconf="--disable-openssl"
use readline || myconf="${myconf} --disable-readline"
use ipv6 || myconf="${myconf} --disable-ip6"
mv Makefile.in Makefile.in.org
einfo "Sed"
sed -e "s:-Wall:${CFLAGS} -Wall:" Makefile.in.org > Makefile.in
einfo "Sed fertgi"
econf ${myconf} || die "econf failed"
# Calculating dependencies
# (this seems to error out (due to gcc3?) but compiles work
# nonetheless)
make depend
# Starting the compile
emake || die
}
src_install() {
# The original install target is a bit broken when installing
# into temporary roots.
# The docs.
dodoc BUGREPORTS CHANGES COPYING* DEVELOPMENT
dodoc EXAMPLES FAQ FILES PORTING README
dodoc SECURITY VERSION
dodoc xio.help
# The example scripts
dodoc daemon.sh ftp.sh mail.sh
# The html docs
dohtml socat.html
# The manpage
doman socat.1
# And the executables
exeinto /usr/bin
doexe socat
doexe procan
doexe filan
}
|