blob: 41f716a36db90b4f9930a427b98de68a84de84d5 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/netkit-base/netkit-base-0.17-r8.ebuild,v 1.13 2005/04/17 05:38:52 vapier Exp $
inherit eutils
DESCRIPTION="Old-style inetd"
HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 mips ppc sparc x86"
IUSE=""
DEPEND=""
PROVIDE="virtual/inetd"
src_unpack() {
unpack ${A}
cd "${S}"
# Note that epatch will intelligently patch architecture specific
# patches as well
epatch "${FILESDIR}"
}
src_compile() {
./configure || die
cp MCONFIG MCONFIG.orig
#sed -e "s/-O2/${CFLAGS} -Wstrict-prototypes -fomit-frame-pointer/"
sed -e "s:^CFLAGS=.*:CFLAGS=${CFLAGS} -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline:" \
MCONFIG.orig > MCONFIG
emake || die "compile problem"
}
src_install() {
sed -i \
-e 's:in\.telnetd$:in.telnetd -L /usr/sbin/telnetlogin:' \
etc.sample/inetd.conf
dosbin inetd/inetd
doman inetd/inetd.8
newinitd "${FILESDIR}"/inetd.rc6 inetd
dodoc BUGS ChangeLog README
docinto samples ; dodoc etc.sample/*
}
|