blob: fefbece781b96619c3ea823982f6e19272f17b23 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mwcollect/mwcollect-2.1.2.ebuild,v 1.2 2007/04/28 17:40:20 swegener Exp $
DESCRIPTION="mwcollect collects worms and other autonomous spreading malware"
HOMEPAGE="http://www.mwcollect.org/"
MY_PV="2.1.2"
MY_P=${PN}${MY_PV}
S="${WORKDIR}/${MY_P}"
SRC_URI="http://download.mwcollect.org/${MY_P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""
DEPEND="dev-libs/libpcre
net-misc/curl"
RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e "s:CXXFLAGS = .*:CXXFLAGS = ${CXXFLAGS} -D LINUX -D_GNU_SOURCE -g -Wall:" \
Makefile.LINUX || die "CFLAGS patching failed"
}
src_compile() {
emake -f Makefile.LINUX || die "emake failed"
}
src_install() {
dosbin bin/mwcollectd
insinto /usr/$(get_libdir)/mwcollect
doins bin/modules/*
sed -e "s#\./bin/modules#/usr/$(get_libdir)/mwcollect#g" \
mwcollectd.conf.dist > mwcollectd.conf.gentoo \
|| die "sed failed"
insinto /etc/mwcollect
doins mwcollectd.conf.gentoo \
|| die "newins mwcollectd.conf failed"
dodoc README*
newinitd ${FILESDIR}/initd mwcollectd
newconfd ${FILESDIR}/confd mwcollectd
}
|