ipband-0.8.1-r1.ebuild 735 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="A pcap based IP traffic and bandwidth monitor with configurable reporting and alarm abilities"
  6. HOMEPAGE="http://ipband.sourceforge.net/"
  7. SRC_URI="http://ipband.sourceforge.net/${P}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 x86"
  11. DEPEND=">=net-libs/libpcap-0.4"
  12. RDEPEND="${DEPEND}"
  13. src_prepare() {
  14. epatch \
  15. "${FILESDIR}"/${P}-gentoo.patch \
  16. "${FILESDIR}"/${P}-postfix.patch
  17. tc-export CC
  18. }
  19. src_install() {
  20. dobin ipband
  21. doman ipband.8
  22. dodoc CHANGELOG README
  23. newinitd "${FILESDIR}"/ipband-init ipband
  24. insinto /etc/
  25. newins ipband.sample.conf ipband.conf
  26. }