gspoof-3.2-r2.ebuild 781 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit autotools eutils
  5. DESCRIPTION="A simple GTK/command line TCP/IP packet generator"
  6. HOMEPAGE="http://gspoof.sourceforge.net/"
  7. SRC_URI="http://gspoof.sourceforge.net/src/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~ppc x86"
  11. IUSE=""
  12. DEPEND="
  13. x11-libs/gtk+:2
  14. dev-libs/glib:2
  15. net-libs/libnet:1.1
  16. "
  17. RDEPEND="${DEPEND}"
  18. src_prepare() {
  19. epatch "${FILESDIR}"/${PN}-def-values.patch \
  20. "${FILESDIR}"/${P}-icon.patch
  21. sed -i configure.ac -e 's|libnet.a|libnet.so|g' || die
  22. eautoreconf
  23. }
  24. src_compile() {
  25. emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
  26. }
  27. src_install() {
  28. dobin gspoof
  29. newicon pixmap/icon.png ${PN}.png
  30. dodoc README CHANGELOG TODO
  31. }