You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/mwcollect/mwcollect-3.0.4-r1.ebuild

60 lines
1.6 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mwcollect/mwcollect-3.0.4-r1.ebuild,v 1.3 2012/07/12 15:32:33 axs Exp $
inherit eutils multilib
DESCRIPTION="mwcollect collects worms and other autonomous spreading malware"
HOMEPAGE="http://www.mwcollect.org/"
SRC_URI="http://download.mwcollect.org/${P}.tar.bz2"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="debug"
# has issues right now
#IUSE="debug prelude"
DEPEND="dev-libs/libpcre
net-misc/curl
>=sys-libs/libcap-1"
# has issues right now
# prelude?( >=dev-libs/libprelude-0.9 )"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s:CXXFLAGS += -I./src/include:CXXFLAGS += ${CXXFLAGS} -I./src/include:" \
Makefile || die "custom CFLAGS patching failed"
sed -i \
-e "s:%loadModule(\":%loadModule(\"\/usr\/$(get_libdir)\/mwcollect\/:g" \
conf/mwcollect.conf || die "module load directory failed"
epatch "${FILESDIR}"/${P}-${PR}-gcc43.patch
}
src_compile() {
use debug && export DEBUG="y"
# has issues right now
#use prelude && export MODULES="log-prelude"
emake || die "Make failed"
}
src_install() {
dosbin bin/mwcollectd || die "dosbin failed"
insinto /usr/$(get_libdir)/mwcollect
doins bin/modules/* || die "doins bin/modules/* failed"
insinto /etc/mwcollect || die "insinto /etc/mwcollect failed"
doins conf/* \
|| die "config file installation failed"
dodoc README* doc/core-design.txt
doman doc/mwcollectd.1
newinitd "${FILESDIR}"/initd mwcollectd
newconfd "${FILESDIR}"/confd mwcollectd
}