batman-adv-2014.2.0.ebuild 992 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. CONFIG_CHECK="~!BATMAN_ADV ~LIBCRC32C ~CRC16"
  5. MODULE_NAMES="${PN}(net:${S}:${S})"
  6. BUILD_TARGETS="all"
  7. inherit eutils linux-mod
  8. DESCRIPTION="Better approach to mobile Ad-Hoc networking on layer 2 kernel module"
  9. HOMEPAGE="http://www.open-mesh.org/"
  10. SRC_URI="http://downloads.open-mesh.org/batman/stable/sources/${PN}/${P}.tar.gz"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="bla dat debug nc mcast"
  15. DEPEND=""
  16. RDEPEND=""
  17. src_compile() {
  18. BUILD_PARAMS="CONFIG_BATMAN_ADV_DEBUG=$(usex debug y n)"
  19. BUILD_PARAMS+=" CONFIG_BATMAN_ADV_BLA=$(usex bla y n)"
  20. BUILD_PARAMS+=" CONFIG_BATMAN_ADV_DAT=$(usex dat y n)"
  21. BUILD_PARAMS+=" CONFIG_BATMAN_ADV_NC=$(usex nc y n)"
  22. BUILD_PARAMS+=" CONFIG_BATMAN_ADV_NC=$(usex mcast y n)"
  23. export BUILD_PARAMS
  24. export KERNELPATH="${KERNEL_DIR}"
  25. linux-mod_src_compile
  26. }
  27. src_install() {
  28. linux-mod_src_install
  29. dodoc README CHANGELOG
  30. }