summaryrefslogtreecommitdiff
blob: 5af9a2d5a11915f333c3b90f80984144fe1b6c2c (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/tcp-wrappers/tcp-wrappers-7.6-r1.ebuild,v 1.3 2000/09/15 20:09:23 drobbins Exp $

P=tcp-wrappers-7.6      
A=tcp_wrappers_7.6.tar.gz
A0="tcp_wrappers_7.6.patch"
S=${WORKDIR}/tcp_wrappers_7.6
DESCRIPTION="tcp wrappers"
SRC_URI="ftp://ftp.porcupine.org/pub/security/${A}"


src_unpack() {
    unpack ${A}
    cd ${S}/
    patch -p1 < ${O}/files/${A0}
    cp Makefile Makefile.orig
    sed -e "s/-O/${CFLAGS}/" \
	-e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" Makefile.orig > Makefile
}

src_compile() {                           
    try make REAL_DAEMON_DIR=/usr/sbin linux
}

src_install() {     
    into /usr                          
    mkdir -p ${D}/usr/sbin
    for i in tcpd tcpdchk tcpdmatch safe_finger try-from;
    do 
	dosbin ${i}
    done
    doman *.[358]
    dolib.a libwrap.a
    insinto /usr/include
    doins tcpd.h
    dodoc BLURB CHANGES DISCLAIMER README*
}