ndsad-1.33-r1.ebuild 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit autotools eutils
  5. DESCRIPTION="Cisco netflow probe from libpcap, ULOG, tee/divert sources"
  6. HOMEPAGE="https://sourceforge.net/projects/ndsad"
  7. SRC_URI="mirror://sourceforge/ndsad/ndsad-${PV}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="x86"
  11. DEPEND=">=net-libs/libpcap-0.8"
  12. RDEPEND="${DEPEND}"
  13. src_prepare() {
  14. epatch \
  15. "${FILESDIR}"/${P}-conf_path.patch \
  16. "${FILESDIR}"/${P}-gentoo.patch \
  17. "${FILESDIR}"/${P}-getpid.patch \
  18. "${FILESDIR}"/${P}-log-path.patch \
  19. "${FILESDIR}"/${P}-strncpy-overflow.patch
  20. eautoreconf
  21. }
  22. src_configure() {
  23. econf --with-ulog=yes
  24. }
  25. DOCS=( ChangeLog AUTHORS README )
  26. src_install() {
  27. default
  28. doman ndsad.conf.5
  29. insinto /etc
  30. newins ndsad.conf ndsad.conf
  31. newinitd "${FILESDIR}"/ndsad.init ndsad
  32. newconfd "${FILESDIR}"/ndsad.conf.d ndsad
  33. }