2012-03-23 11:04:22 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-06-04 15:21:18 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpon/arpon-2.7-r1.ebuild,v 1.3 2012/06/04 09:54:03 ago Exp $
|
2012-03-23 11:04:22 +04:00
|
|
|
|
2012-06-04 15:21:18 +04:00
|
|
|
EAPI="4"
|
2012-03-23 11:04:22 +04:00
|
|
|
inherit cmake-utils
|
|
|
|
|
|
|
|
DESCRIPTION="ArpON (Arp handler inspectiON) is a portable Arp handler."
|
|
|
|
|
|
|
|
MY_PN="ArpON"
|
|
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
HOMEPAGE="http://arpon.sourceforge.net/"
|
2012-06-04 15:21:18 +04:00
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
2012-03-23 11:04:22 +04:00
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2012-06-04 15:21:18 +04:00
|
|
|
KEYWORDS="amd64 ~x86"
|
2012-03-23 11:04:22 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="dev-libs/libdnet
|
|
|
|
net-libs/libnet:1.1
|
|
|
|
net-libs/libpcap"
|
|
|
|
|
|
|
|
RDEPEND=${DEPEND}
|
|
|
|
|
|
|
|
S="${WORKDIR}"/${MY_P}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i -e "/set(CMAKE_C_FLAGS/d" CMakeLists.txt || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake-utils_src_install
|
2012-06-04 15:21:18 +04:00
|
|
|
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
2012-03-23 11:04:22 +04:00
|
|
|
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog
|
|
|
|
elog "${PN} now installs an init script. Please edit"
|
|
|
|
elog "the /etc/conf.d/arpon file to match your needs"
|
|
|
|
elog
|
|
|
|
}
|