diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/apachetop |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/apachetop')
-rw-r--r-- | app-admin/apachetop/Manifest | 10 | ||||
-rw-r--r-- | app-admin/apachetop/apachetop-0.12.6-r1.ebuild | 44 | ||||
-rw-r--r-- | app-admin/apachetop/apachetop-0.12.6-r2.ebuild | 36 | ||||
-rw-r--r-- | app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch | 12 | ||||
-rw-r--r-- | app-admin/apachetop/files/apachetop-0.12.6-configure.patch | 101 | ||||
-rw-r--r-- | app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch | 13 | ||||
-rw-r--r-- | app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch | 39 | ||||
-rw-r--r-- | app-admin/apachetop/metadata.xml | 4 |
8 files changed, 259 insertions, 0 deletions
diff --git a/app-admin/apachetop/Manifest b/app-admin/apachetop/Manifest new file mode 100644 index 000000000000..4ae974ae196f --- /dev/null +++ b/app-admin/apachetop/Manifest @@ -0,0 +1,10 @@ +AUX apachetop-0.12.6-ac_config_header.patch 458 SHA256 8e8e3f7be92d121911ae0393502d70b82390114aacf91d4cf3478d76217bfb50 SHA512 dc10e46cac980a3544579222c5859d8baf4a1b5fd86a4700b07661e202270ff59b746b14661ca548d83322965e789bf70c7eddf8bf07b51d97d9e13256040109 WHIRLPOOL 670af1f2bf3de73fdcae312a5bb46ae0991412fe536881eb1505d539a21d1d3ae47ee7584ad002db81920fd40297ba16f2536b8cc5f4fa53a25840117378682b +AUX apachetop-0.12.6-configure.patch 2884 SHA256 56c926a2bf56ebfbf38da95176f229ce89285b1fc86aea7c8924c50ddbb49c7a SHA512 7c399fd434476291504cd7674fe63559c59a7b32628477ad4fbd1386e936be4d1f49d4faa2d8d95839c74908e755d50400ab8f4f30163967b94dc058456c9c15 WHIRLPOOL 78f9e350679faa9cf5e3511ee1111b12eb18935db09a6473c574413cbf2a882e448037f1c810cb8e16f8eeeb814ae057bbbbbcc726d5ee2e756d959001e29cdf +AUX apachetop-0.12.6-gcc41.patch 243 SHA256 dcdb6b52b45079c06141bf6f28f5b925db78f5574e97a8bcdc41938643058669 SHA512 5aeff6bb7b08d792fc02526eb0c10491d217c11c157670d6b8380db4a748ca63c8c35dc8fb58851c6188ef2bd8da811a11fa556c3b3db513f77f3b785f927123 WHIRLPOOL e7fe9b6c4637729ca9dba18eaf872e4299f5753aa7eb57990c8f69c37cdb9b221adeaa0b91170ef5485797643164c4e0f8c9c27ace2f666a476116202098446a +AUX apachetop-0.12.6-maxpathlen.patch 1577 SHA256 9c85eb8461946aa40afb5eab05075276688f829856919469408c64bb44329d25 SHA512 c0e4562b9789168acbea68b4f19eb32238244d8003bd4d0df458582b095d9680f2e20b592990f0bebe5ae17fcbcbfd2154e74169788a8d3a31498f26776f6f36 WHIRLPOOL a813ba6c246c915531a7b626bcc819c00f9c90af51e00277c3f270fc050c1d7da1c594396d6bbdf3d183353d7bf9706b8da1c8fe1f1d9f866a5286d06251546f +DIST apachetop-0.12.6.tar.gz 126930 SHA256 850062414517055eab2440b788b503d45ebe9b290d4b2e027a5f887ad70f3f29 SHA512 35081772f817c6a83a1fcf78790d2a288a9e4e48234c4b3163a09ad15f49a78d649b77f41aa002940fb9416c263cea159c5092a9b87285488eb450964c823c3a WHIRLPOOL 8b23d825b26c0ce43d1536edb3e6b613d9773c93cd62d02b84e479b9d1b0e89ef0f03b09b3e0cf3616fd3f05f2304b19c261c87e78c623bdabedfecbb5a5e8ae +EBUILD apachetop-0.12.6-r1.ebuild 998 SHA256 0f154dc3f208fd7cc0b7d9860bb8248f0e80d291436c4a2242ca42e64ff2cc95 SHA512 52a9927874a2aea63c19983df262a4e0ec701ccf5a45531d99b835e2be4c3007963c1862a648c4b3ba7860a9cafb5ea12e49c9d24a45643d7999dffdb5a13b58 WHIRLPOOL 9b12f750d250b47c71d4b662e488b53aa112b245b61f28d1763c22ebc22a77caf24b0ea5ff3bc7dbad26f29ab06363325b3cff709adb3102c194c3730850a22d +EBUILD apachetop-0.12.6-r2.ebuild 796 SHA256 4efd8ba8c88ae719d952132bfe942b22add6b87d39516e438332c23b3f9a1ce9 SHA512 e9cfd9880a3ad4fd9b633dcc0aeab3fd967ed26cfb5854d2257a108a59d5fb5c64609edafb0b88389415a551551f435e8bdde50633369e788b29943595fd15b5 WHIRLPOOL 5762f3a04e2300f7e93c53a9375c185cc5848c1ced493b7e2405abf5d848d71ba91ee6d4ec09231040c0407b44e2fade29720a5b866abd1f1b45948b42e2b11d +MISC ChangeLog 2552 SHA256 29cd328bc74499bcb43b8dcb736e73d9b56b31c0e28937612d4ab124f35ca6f2 SHA512 8d53081752a0ef128e34f895453a714105f69cc78ef451f21a044857cbea03ad844d5202e218dde2f26a763fe6072e9f7166ede3879143a7bf46e89e2a5f56a5 WHIRLPOOL b29dc27c1b92ffee08545d7feabbf96b9b74ce7f387ff61812b188e6e505195694826ac4b8f83f7af8d39e51e90539daf2e9e0fe2a4d727f9b135233373141b2 +MISC ChangeLog-2015 7372 SHA256 5ae0fdbd6a04f099ec4a4312db5a2cc966807157250b111e61a1a5c59acbeca4 SHA512 15baea07bdc2eb2a1569da30809a417a1f2a971222988e18c15feb5110b69567fba9ef168fc2e6adc3ccdeb11658ac5fa55c5ed1fde9150526ba819211705ce3 WHIRLPOOL 31e1fd4d1ee261661befd419664ff56ca0e3f948e3b2f48c8c705be0541327b6dc2c9f91e9e3297f9c3b25729914f4f83d295a6e7b3fbcb7b115d775643e4f17 +MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630 diff --git a/app-admin/apachetop/apachetop-0.12.6-r1.ebuild b/app-admin/apachetop/apachetop-0.12.6-r1.ebuild new file mode 100644 index 000000000000..2b4638b436a1 --- /dev/null +++ b/app-admin/apachetop/apachetop-0.12.6-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils autotools + +DESCRIPTION="A realtime Apache log analyzer" +HOMEPAGE="http://www.webta.org/projects/apachetop" +SRC_URI="http://www.webta.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~mips ppc sparc x86" +IUSE="fam pcre adns" + +DEPEND="fam? ( virtual/fam ) + pcre? ( dev-libs/libpcre ) + adns? ( net-libs/adns )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc41.patch + epatch "${FILESDIR}"/${P}-configure.patch + epatch "${FILESDIR}"/${P}-maxpathlen.patch + epatch "${FILESDIR}"/${P}-ac_config_header.patch + eautoreconf +} + +src_configure() { + econf --with-logfile=/var/log/apache2/access_log \ + $(use_with fam) \ + $(use_with pcre) \ + $(use_with adns) +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog INSTALL NEWS README TODO +} diff --git a/app-admin/apachetop/apachetop-0.12.6-r2.ebuild b/app-admin/apachetop/apachetop-0.12.6-r2.ebuild new file mode 100644 index 000000000000..bb433b83e580 --- /dev/null +++ b/app-admin/apachetop/apachetop-0.12.6-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools + +DESCRIPTION="A realtime Apache log analyzer" +HOMEPAGE="http://www.webta.org/projects/apachetop" +SRC_URI="http://www.webta.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~mips ppc sparc x86" +IUSE="fam pcre" + +RDEPEND=" + fam? ( virtual/fam ) + pcre? ( dev-libs/libpcre ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc41.patch + epatch "${FILESDIR}"/${P}-configure.patch + epatch "${FILESDIR}"/${P}-maxpathlen.patch + epatch "${FILESDIR}"/${P}-ac_config_header.patch + eautoreconf +} + +src_configure() { + econf \ + --with-logfile=/var/log/apache2/access_log \ + --without-adns \ + $(use_with fam) \ + $(use_with pcre) +} diff --git a/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch b/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch new file mode 100644 index 000000000000..aabdb13d75f3 --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch @@ -0,0 +1,12 @@ +diff -uNr apachetop-0.12.6.orig/configure.ac apachetop-0.12.6/configure.ac +--- apachetop-0.12.6.orig/configure.ac 2013-07-09 14:06:14.000000000 -0400 ++++ apachetop-0.12.6/configure.ac 2013-07-09 14:07:36.000000000 -0400 +@@ -6,7 +6,7 @@ + AC_CONFIG_AUX_DIR(config) + #AC_CONFIG_MACRO_DIR(m4) # 2.58 + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADER(config.h) + AM_INIT_AUTOMAKE(apachetop, 0.12.6) # 2.53 only? + + # Add non-standard directories to the include path diff --git a/app-admin/apachetop/files/apachetop-0.12.6-configure.patch b/app-admin/apachetop/files/apachetop-0.12.6-configure.patch new file mode 100644 index 000000000000..38a1fc7f6a1a --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-configure.patch @@ -0,0 +1,101 @@ +Index: apachetop-0.12.6/configure.ac +=================================================================== +--- apachetop-0.12.6.orig/configure.ac ++++ apachetop-0.12.6/configure.ac +@@ -52,48 +52,60 @@ AC_FUNC_VPRINTF + AC_CHECK_FUNCS([inet_aton memset strchr strdup kqueue strerror strstr]) + + # pcre {{{ +-AC_ARG_WITH(pcre, +- [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)], +- [ +- CPPFLAGS="$CPPFLAGS -I $withval/include" +- LDFLAGS="$LDFLAGS -L $withval/lib" +- ] +-) +- +-AC_CHECK_HEADERS(pcre.h, +- AC_SEARCH_LIBS([pcre_compile], [pcre]) , +- AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre]) +-) ++AC_ARG_WITH([pcre], ++ [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)], ++ [case "${withval}" in ++ yes) with_pcre="/usr";; ++ no) with_pcre="no";; ++ *) with_pcre="/usr";; ++ esac], ++ [with_pcre="/usr"]) ++ ++if test x$with_pcre != xno; then ++ CPPFLAGS="$CPPFLAGS -I $withval/include" ++ LDFLAGS="$LDFLAGS -L $withval/lib" ++ AC_CHECK_HEADERS(pcre.h, ++ AC_SEARCH_LIBS([pcre_compile], [pcre]), ++ AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre])) ++fi + # }}} + + # fam {{{ +-AC_ARG_WITH(fam, +- [ --with-fam=<path> prefix of fam installation (eg /usr/local)], +- [ +- CPPFLAGS="$CPPFLAGS -I $withval/include" +- LDFLAGS="$LDFLAGS -L $withval/lib" +- ] +-) +- +-AC_CHECK_HEADERS(fam.h, +- AC_SEARCH_LIBS([FAMOpen], [fam]) , +- AC_MSG_WARN([*** fam.h not found -- consider using --with-fam]) +-) ++AC_ARG_WITH([fam], ++ [ --with-fam=<path> prefix of fam installation (eg /usr/local)], ++ [case "${withval}" in ++ yes) with_fam="/usr";; ++ no) with_fam="no";; ++ *) with_fam="/usr";; ++ esac], ++ [with_fam="/usr"]) ++ ++if test x$with_fam != xno; then ++ CPPFLAGS="$CPPFLAGS -I $with_fam/include" ++ LDFLAGS="$LDFLAGS -L $with_fam/lib" ++ AC_CHECK_HEADERS(fam.h, ++ AC_SEARCH_LIBS([FAMOpen], [fam]), ++ AC_MSG_WARN([*** fam.h not found -- consider using --with-fam])) ++fi + # }}} + + # adns {{{ +-AC_ARG_WITH(adns, +- [ --with-adns=<path> prefix of adns installation (eg /usr/local)], +- [ +- CPPFLAGS="$CPPFLAGS -I $withval/include" +- LDFLAGS="$LDFLAGS -L $withval/lib" +- ] +-) +- +-AC_CHECK_HEADERS(adns.h, +- AC_SEARCH_LIBS([adns_submit], [adns]) , +- AC_MSG_WARN([*** adns.h not found -- consider using --with-adns]) +-) ++AC_ARG_WITH([adns], ++ [ --with-adns=<path> prefix of adns installation (eg /usr/local)], ++ [case "${withval}" in ++ yes) with_adns="/usr";; ++ no) with_adns="no";; ++ *) with_adns="/usr";; ++ esac], ++ [with_adns="/usr"]) ++ ++if test x$with_adns != xno; then ++ CPPFLAGS="$CPPFLAGS -I $with_adns/include" ++ LDFLAGS="$LDFLAGS -L $with_adns/lib" ++ AC_CHECK_HEADERS(adns.h, ++ AC_SEARCH_LIBS([adns_submit], [adns]), ++ AC_MSG_WARN([*** adns.h not found -- consider using --with-adns])) ++fi + # }}} + + # --with-logfile {{{ diff --git a/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch b/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch new file mode 100644 index 000000000000..566c9226a3f7 --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch @@ -0,0 +1,13 @@ +--- src/resolver.h ++++ src/resolver.h +@@ -10,8 +10,8 @@ + class Resolver + { + public: +- Resolver::Resolver(void); +- Resolver::~Resolver(void); ++ Resolver(void); ++ ~Resolver(void); + int add_request(char *request, enum resolver_action act); + + diff --git a/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch b/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch new file mode 100644 index 000000000000..b648b07cbfc5 --- /dev/null +++ b/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch @@ -0,0 +1,39 @@ +Patch by Robert Scheck <robert@fedoraproject.org> for apachetop <= 0.12.6, which +adds some includes in order to have a real change to get MAXPATHLEN defined with +a valid value. Once MAXPATHLEN really gets filled with 128, it will just cause a +buffer overflow. + +See Red Hat Bugzilla #446199 (https://bugzilla.redhat.com/show_bug.cgi?id=446199) +for more information. This patch should solve the mentioned bug report and should +be sane enough to get included by upstream of apachetop for the next release. It +is important to run autoheader before ./configure to get these changes activated. + +--- apachetop-0.12.6/configure.ac 2005-10-27 18:39:25.000000000 +0200 ++++ apachetop-0.12.6/configure.ac.maxpathlen 2008-06-21 16:00:38.000000000 +0200 +@@ -34,7 +34,8 @@ + # Checks for header files. + AC_HEADER_STDC + AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h \ +- string.h strings.h sys/socket.h time.h sys/time.h]) ++ string.h strings.h sys/socket.h time.h sys/time.h \ ++ limits.h sys/param.h]) + + # Checks for typedefs, structures, and compiler characteristics. + #AC_HEADER_STDBOOL # not in 2.53? +--- apachetop-0.12.6/src/apachetop.h 2005-10-15 18:10:01.000000000 +0200 ++++ apachetop-0.12.6/src/apachetop.h.maxpatlen 2008-06-21 16:02:00.000000000 +0200 +@@ -89,8 +89,12 @@ + #define getMIN(a,b) (a < b ? a : b) + #define getMAX(a,b) (a > b ? a : b) + +-#ifndef MAXPATHLEN +-# define MAXPATHLEN 128 ++#ifdef HAVE_SYS_PARAM_H ++# include <sys/param.h> ++#endif ++ ++#if HAVE_LIMITS_H ++# include <limits.h> + #endif + + /* upon startup, each input file is put into an element of this array, diff --git a/app-admin/apachetop/metadata.xml b/app-admin/apachetop/metadata.xml new file mode 100644 index 000000000000..097975e3adc2 --- /dev/null +++ b/app-admin/apachetop/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> |