apachetop-0.12.6-r2.ebuild 796 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  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"
  12. RDEPEND="
  13. fam? ( virtual/fam )
  14. pcre? ( dev-libs/libpcre )
  15. "
  16. DEPEND="${RDEPEND}"
  17. src_prepare() {
  18. epatch "${FILESDIR}"/${P}-gcc41.patch
  19. epatch "${FILESDIR}"/${P}-configure.patch
  20. epatch "${FILESDIR}"/${P}-maxpathlen.patch
  21. epatch "${FILESDIR}"/${P}-ac_config_header.patch
  22. eautoreconf
  23. }
  24. src_configure() {
  25. econf \
  26. --with-logfile=/var/log/apache2/access_log \
  27. --without-adns \
  28. $(use_with fam) \
  29. $(use_with pcre)
  30. }