summaryrefslogtreecommitdiff
blob: 1b77e532e82f211335438be965d79137112518ca (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bruce A. Locke <blocke@shivan.org>
# $Header: /var/cvsroot/gentoo-x86/net-misc/aesop/aesop-0.4.ebuild,v 1.1 2002/01/16 01:07:13 blocke Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Aesop is a TCP-proxy which supports many advanced and powerful features.  Uses encryption and provides a wrapper library for BSD socket API."
SRC_URI="http://kryptology.org/aesop/download/${P}.tar.gz"
HOMEPAGE="http://kryptology.org/aesop"

DEPEND="sys-devel/gcc"

src_compile() {

  ./configure --enable-ipv6 --enable-libaesop --prefix=/usr

  mv ${S}/src/Rules.make ${S}/src/Rules.make.old
  sed "s/CFLAG=-O2/CFLAG=${CFLAGS}/" ${S}/src/Rules.make.old > ${S}/src/Rules.make 
  cat ${S}/src/Rules.make

  make aesopd aesoptunnel libaesop keygen  || die
	
}

src_install() {

  # name is too generic... might be used by a more common package
  mv ${S}/keygen ${S}/aesopkeygen

  dobin aesopd
  dobin aesoptunnel
  dobin aesopkeygen

  dolib libaesop.so.0

  dodoc BUILDING Changelog LICENSE README routes.example runaesop.sh

}