apachetop-0.12.6-r1.ebuild 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. inherit eutils autotools
  5. DESCRIPTION="A realtime Apache log analyzer"
  6. HOMEPAGE="http://www.webta.org/projects/apachetop"
  7. SRC_URI="http://www.webta.org/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 hppa ~mips ppc sparc x86"
  11. IUSE="fam pcre adns"
  12. DEPEND="fam? ( virtual/fam )
  13. pcre? ( dev-libs/libpcre )
  14. adns? ( net-libs/adns )"
  15. RDEPEND="${DEPEND}"
  16. src_prepare() {
  17. epatch "${FILESDIR}"/${P}-gcc41.patch
  18. epatch "${FILESDIR}"/${P}-configure.patch
  19. epatch "${FILESDIR}"/${P}-maxpathlen.patch
  20. epatch "${FILESDIR}"/${P}-ac_config_header.patch
  21. eautoreconf
  22. }
  23. src_configure() {
  24. econf --with-logfile=/var/log/apache2/access_log \
  25. $(use_with fam) \
  26. $(use_with pcre) \
  27. $(use_with adns)
  28. }
  29. src_compile() {
  30. emake || die "emake failed"
  31. }
  32. src_install() {
  33. make DESTDIR="${D}" install || die "make install failed"
  34. dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
  35. }