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-misc/batctl/batctl-2013.2.0.ebuild

37 lines
925 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/batctl/batctl-2013.2.0.ebuild,v 1.1 2013/04/22 06:14:15 xmw Exp $
EAPI=4
inherit linux-info toolchain-funcs
DESCRIPTION="BATMAN advanced control and management tool"
HOMEPAGE="http://www.open-mesh.org/"
SRC_URI="http://downloads.open-mesh.org/batman/stable/sources/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
pkg_setup() {
if ( linux_config_exists && linux_chkconfig_present BATMAN_ADV ) \
|| ! has_version net-misc/batman-adv ; then
ewarn "You need the batman-adv kernel module,"
ewarn "either from the kernel tree or via net-misc/batman-adv"
fi
}
src_compile() {
emake CC="$(tc-getCC)" V=1 REVISION=gentoo-"${PVR}"
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
dodoc README
}