zmap-9999.ebuild 816 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils fcaps git-r3
  5. DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
  6. HOMEPAGE="https://zmap.io/"
  7. SRC_URI=""
  8. EGIT_REPO_URI="git://github.com/zmap/zmap.git"
  9. SLOT="0"
  10. LICENSE="Apache-2.0"
  11. KEYWORDS=""
  12. IUSE="mongo redis"
  13. RDEPEND="
  14. dev-libs/gmp:0
  15. net-libs/libpcap
  16. dev-libs/json-c
  17. mongo? ( dev-db/mongo )
  18. redis? ( dev-libs/hiredis )"
  19. DEPEND="${RDEPEND}
  20. dev-util/gengetopt
  21. sys-devel/flex
  22. dev-util/byacc
  23. "
  24. src_configure() {
  25. local mycmakeargs=(
  26. -DENABLE_DEVELOPMENT=OFF
  27. -DENABLE_HARDENING=OFF
  28. -DWITH_WERROR=OFF
  29. -DWITH_mongo="$(usex mongo)"
  30. -DWITH_redis="$(usex redis)"
  31. )
  32. cmake-utils_src_configure
  33. }
  34. FILECAPS=( cap_net_raw=ep usr/sbin/zmap )