blob: c12dfb3d9297eefbd98ff70157becd08658c7fe1 (
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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipcad/ipcad-3.7.ebuild,v 1.9 2008/11/15 18:27:08 pva Exp $
inherit eutils autotools
DESCRIPTION="IP Cisco Accounting Daemon"
HOMEPAGE="http://ipcad.sourceforge.net/"
SRC_URI="mirror://sourceforge/ipcad/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND="net-libs/libpcap
net-firewall/iptables"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-20060828-cvs.patch"
epatch "${FILESDIR}/${P}-linux-2.6.27.patch"
eautoreconf
}
src_install() {
sed -i -e "s/^chroot = \/adm\/tmp;/chroot = \/var\/ipcad;/" ipcad.conf.default
sed -i -e "s/^interface/#interface/" ipcad.conf.default
sed -i -e "s/^aggregate/#aggregate/" ipcad.conf.default
sed -i -e "s/^pidfile = ipcad.pid;/pidfile = \/run\/ipcad.pid;/" ipcad.conf.default
dodoc AUTHORS ChangeLog README BUGS FAQ ipcad.conf.simple ipcad.conf.default
dosbin ipcad
insinto /etc
insopts -m0600
newins ipcad.conf.default ipcad.conf
keepdir /var/ipcad/run
doman ipcad.8 ipcad.conf.5
newinitd "${FILESDIR}"/ipcad.init ipcad
newconfd "${FILESDIR}"/ipcad.conf.d ipcad
}
|