blob: 0da118d8e872117f07f1cc8a85ddf266b6ba3026 (
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
|
# 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.2.1.ebuild,v 1.5 2004/07/01 21:57:54 squinky86 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 ~alpha ~ppc ~hppa ~amd64 ~sparc ~mips "
IUSE="ssl readline ipv6"
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6 )
readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 )
virtual/libc"
RDEPEND="virtual/libc"
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"
sed -i "s:-Wall:${CFLAGS} -Wall:" Makefile.in
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
}
|