summaryrefslogtreecommitdiff
blob: 1ef55c4f7eeb336938662b2476799817a28ef468 (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
# 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/net-nds/portmap/portmap-5b-r1.ebuild,v 1.7 2001/09/25 01:48:41 woodchip Exp $

P=portmap-5b
A=portmap_5beta.tar.gz
A0=portmap_5beta.dif
S=$WORKDIR/portmap_5beta
DESCRIPTION="Netkit - portmapper"
SRC_URI="ftp://ftp.porcupine.org/pub/security/$A"
HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html"

DEPEND="virtual/glibc
        sys-apps/tcp-wrappers"

src_unpack() {
    unpack $A
    cd $S || die
    patch -p0 < $FILESDIR/$A0 || die
    cp Makefile Makefile.orig
    sed -e "s/-O2/$CFLAGS/" Makefile.orig > Makefile || die
}

src_compile() {
    make || die
}

src_install() {
    into / ; dosbin portmap
    into /usr ; dosbin pmap_dump pmap_set
    doman portmap.8 pmap_dump.8 pmap_set.8

    exeinto /etc/rc.d/init.d
    newexe ${FILESDIR}/portmap.rc5 portmap

    # is this really the sort of thing we wanna be doing? :)
    # ln -s ../../init.d/portmap $D/etc/runlevels/default/portmap

    dodoc BLURB CHANGES README
}