summaryrefslogtreecommitdiff
blob: af40d65e1d62ee0352c5284fed61739d8e7e2de1 (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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r3.ebuild,v 1.8 2002/12/09 04:37:27 manson Exp $

IUSE="ssl ipv6"

S=${WORKDIR}/${P}

DESCRIPTION="Collection of tools for managing UNIX services"
SRC_URI="http://cr.yp.to/${PN}/${P}.tar.gz
	ipv6? ( http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff11.bz2 )
	ssl? ( http://www.nrg4u.com/qmail/ucspi-tcp-ssl-20020705.patch.gz )"
HOMEPAGE="http://cr.yp.to/${PN}/"

DEPEND="virtual/glibc
	ssl? ( >=dev-libs/openssl-0.9.6g )"

SLOT="0"
KEYWORDS="x86 sparc "
LICENSE="as-is"

src_unpack() {
	unpack ${A}
	cd ${S}

	use ipv6 && patch -p1 < ${WORKDIR}/ucspi-tcp-0.88-ipv6.diff11

	use ssl && patch < ${WORKDIR}/ucspi-tcp-ssl-20020705.patch

	echo "gcc ${CFLAGS}" > conf-cc
	echo "gcc" > conf-ld
	echo "/usr/" > conf-home
}

src_compile() {
	pmake || die
}

src_install() {
	for i in tcpserver tcprules tcprulescheck argv0 recordio tcpclient *\@ tcpcat mconnect mconnect-io addcr delcr fixcrio rblsmtpd
	do
		dobin $i
	done

	dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION
}