arpsponge-3.12.2.ebuild 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit perl-module
  5. DESCRIPTION="Sweeps up stray ARP queries from a peering LAN"
  6. HOMEPAGE="https://www.ams-ix.net/downloads/arpsponge/"
  7. SRC_URI="https://www.ams-ix.net/downloads/${PN}/${PV}/${P}.tar.gz"
  8. LICENSE="|| ( GPL-1+ Artistic )"
  9. SLOT="0"
  10. KEYWORDS="~amd64"
  11. RDEPEND="
  12. dev-lang/perl
  13. dev-perl/IO-String
  14. dev-perl/NetAddr-IP
  15. dev-perl/NetPacket
  16. dev-perl/Net-ARP
  17. dev-perl/Net-Pcap
  18. dev-perl/Readonly
  19. dev-perl/TermReadKey
  20. dev-perl/Term-ReadLine-Gnu
  21. virtual/perl-Data-Dumper
  22. virtual/perl-File-Path
  23. virtual/perl-Getopt-Long
  24. virtual/perl-Sys-Syslog
  25. virtual/perl-Time-HiRes
  26. "
  27. DEPEND="${RDEPEND}
  28. sys-devel/make
  29. "
  30. src_install() {
  31. perl_set_version
  32. insinto ${VENDOR_LIB}/M6
  33. doins lib/M6/ReadLine.pm
  34. insinto ${VENDOR_LIB}/M6/ARP
  35. doins lib/M6/ARP/Base.pm
  36. doins lib/M6/ARP/Const.pm
  37. doins lib/M6/ARP/Control.pm
  38. doins lib/M6/ARP/Log.pm
  39. doins lib/M6/ARP/NetPacket.pm
  40. doins lib/M6/ARP/Sponge.pm
  41. doins lib/M6/ARP/Table.pm
  42. doins lib/M6/ARP/Util.pm
  43. doins lib/M6/ARP/Queue.pm
  44. insinto ${VENDOR_LIB}/M6/ARP/Control
  45. doins lib/M6/ARP/Control/Base.pm
  46. doins lib/M6/ARP/Control/Client.pm
  47. doins lib/M6/ARP/Control/Server.pm
  48. newinitd "${FILESDIR}/arpsponge.initd" arpsponge
  49. newconfd "${FILESDIR}/arpsponge.confd" arpsponge
  50. dosbin sbin/asctl sbin/arpsponge sbin/aslogtail
  51. doman man/asctl.8 man/arpsponge.8 man/aslogtail.8
  52. dodoc doc/command_mapping.txt doc/arpsponge_architecture.txt
  53. }