blob: 8bc691f4a106dcc194c3596519e693b20108bc76 (
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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/fakeidentd-1.4-r8.ebuild,v 1.1 2002/05/04 04:11:14 woodchip Exp $
# This identd is nearly perfect for a NAT box. It runs in one
# process (doesn't fork()) and isnt very susceptible to DOS attack.
DESCRIPTION="A static, secure identd. One source file only!"
HOMEPAGE="http://www.ajk.tele.fi/~too/sw"
S=${WORKDIR}/${P}
SRC_URI="http://www.ajk.tele.fi/~too/sw/releases/identd.c
http://www.ajk.tele.fi/~too/sw/identd.readme"
DEPEND="virtual/glibc"
LICENSE="GPL-2"
SLOT="0"
src_unpack() {
mkdir ${P} ; cd ${S}
cp ${DISTDIR}/identd.c ${DISTDIR}/identd.readme .
mv identd.c identd.c.orig
sed -e "s:identd.pid:fakeidentd.pid:" \
identd.c.orig > identd.c
}
src_compile() {
cd ${S}
gcc identd.c -o ${PN} ${CFLAGS} || die
}
src_install () {
dosbin ${PN}
dodoc identd.readme
# Changelog in source is more current. Its only ~13kB anyway.
dodoc identd.c
insinto /etc/conf.d
newins ${FILESDIR}/fakeidentd.confd fakeidentd
exeinto /etc/init.d
newexe ${FILESDIR}/fakeidentd.rc6 fakeidentd
}
|