removed explicit babeld config file option
[eigennet:eigenlay.git] / net-misc / batman-adv / batman-adv-2012.4.0.ebuild
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 CONFIG_CHECK="~!CONFIG_BATMAN_ADV"
8 MODULE_NAMES="${PN}(net:${S}:${S})"
9 BUILD_TARGETS="all"
10
11 inherit linux-mod
12
13 DESCRIPTION="Better approach to mobile Ad-Hoc networking on layer 2 kernel module"
14 HOMEPAGE="http://www.open-mesh.org/"
15 SRC_URI="http://downloads.open-mesh.org/batman/stable/sources/${PN}/${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="debug bla"
21
22 DEPEND=""
23 RDEPEND="net-misc/batctl"
24
25 src_compile() {
26         BUILD_PARAMS="CONFIG_BATMAN_ADV_DEBUG=$(use debug && echo y || echo n)"
27         BUILD_PARAMS+=" CONFIG_BATMAN_ADV_BLA=$(use bla && echo y || echo n)"
28         export BUILD_PARAMS
29         export KERNELPATH="${KERNEL_DIR}"
30         linux-mod_src_compile
31 }
32
33 src_install() {
34         linux-mod_src_install
35         dodoc README CHANGELOG
36         doconfd "${FILESDIR}/batman-adv.conf"
37         newinitd "${FILESDIR}/batman-adv.init" batman-adv
38 }