Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/apachetop/files/, app-admin/apachetop/
Date: Fri, 04 Sep 2020 17:16:37
Message-Id: 1599239756.bfa7530a061f809397f193f22d8f823dd93bac51.polynomial-c@gentoo
1 commit: bfa7530a061f809397f193f22d8f823dd93bac51
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 17:15:56 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 17:15:56 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfa7530a
7
8 app-admin/apachetop: Removed old
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-admin/apachetop/Manifest | 3 -
14 app-admin/apachetop/apachetop-0.12.6-r2.ebuild | 44 ------
15 app-admin/apachetop/apachetop-0.17.4.ebuild | 36 -----
16 app-admin/apachetop/apachetop-0.18.4.ebuild | 38 -----
17 .../files/apachetop-0.12.6-ac_config_header.patch | 12 --
18 .../files/apachetop-0.12.6-configure.patch | 101 -------------
19 .../apachetop/files/apachetop-0.12.6-gcc41.patch | 13 --
20 .../files/apachetop-0.12.6-maxpathlen.patch | 39 -----
21 .../apachetop/files/apachetop-0.12.6-ncurses.patch | 166 ---------------------
22 .../apachetop/files/apachetop-0.18.4-tinfo.patch | 11 --
23 10 files changed, 463 deletions(-)
24
25 diff --git a/app-admin/apachetop/Manifest b/app-admin/apachetop/Manifest
26 index 51160b4eeaf..3b37485c6fe 100644
27 --- a/app-admin/apachetop/Manifest
28 +++ b/app-admin/apachetop/Manifest
29 @@ -1,4 +1 @@
30 -DIST apachetop-0.12.6.tar.gz 126930 BLAKE2B 06d12cc72791920c959fa4ef8e18aa90f1f29a616389329685abf445f416cde9ce6edd2db5aaadaba51488033148e8109245200086a11422436ffe0aab1b4a40 SHA512 35081772f817c6a83a1fcf78790d2a288a9e4e48234c4b3163a09ad15f49a78d649b77f41aa002940fb9416c263cea159c5092a9b87285488eb450964c823c3a
31 -DIST apachetop-0.17.4.tar.gz 128153 BLAKE2B 7601ce98618d041f6fc67e528775ce79b63a726b765ff298d1d74a1dd22a4451be6c36669c7ab9bf82fb8c120a6930d2bbf03823de02a216c558c358c53c07be SHA512 b5115048f79c694344fd341631fe7739567ba3ce6e18514d0be250cb6f42e04c54d35cc023dea5258725fcbfbb6debdaa51b91d64ae3120e70f5b78a7989a330
32 -DIST apachetop-0.18.4.tar.gz 128849 BLAKE2B 912f060984da326b2e005cc0e3eb99c28182bc6a0930e6781d5a0a990dbbe56b5dbfe871baea1c86a5ac2bc02faa1e583ca104d3c8bd00cc3617599601b2d8bd SHA512 e32f94ab6223578aa5b8c11083de762e8f916ba6d057d93f99208333632a8362b421c41fff76bf60a52f0b377a70d69c17ed02abfb95f86474ad3719016e59f7
33 DIST apachetop-0.19.7.tar.gz 132665 BLAKE2B 248247c361d1585de68a0a9adae22f98db72991babfb4a75f01fa67ef28443a3c04cf1da9c1ea34ed923599955b58959528cc9e0a881fbb7b463b1d64c0cb7bd SHA512 40d546facee23a9914483c06323940e219602518751d80f729d835c4dbf991c7d1dd9bcebcaa4ca6a2d64799d48c8a00d421bc324afc2959691c962113386969
34
35 diff --git a/app-admin/apachetop/apachetop-0.12.6-r2.ebuild b/app-admin/apachetop/apachetop-0.12.6-r2.ebuild
36 deleted file mode 100644
37 index 00e66ae0691..00000000000
38 --- a/app-admin/apachetop/apachetop-0.12.6-r2.ebuild
39 +++ /dev/null
40 @@ -1,44 +0,0 @@
41 -# Copyright 1999-2018 Gentoo Foundation
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=6
45 -
46 -inherit autotools
47 -
48 -DESCRIPTION="A realtime Apache log analyzer"
49 -HOMEPAGE="https://github.com/tessus/apachetop"
50 -SRC_URI="https://dev.gentoo.org/~jstein/dist/${P}.tar.gz"
51 -
52 -LICENSE="GPL-2"
53 -SLOT="0"
54 -KEYWORDS="amd64 hppa ~mips ppc sparc x86"
55 -IUSE="fam pcre"
56 -
57 -RDEPEND="
58 - sys-libs/ncurses:0=
59 - sys-libs/readline:0=
60 - fam? ( virtual/fam )
61 - pcre? ( dev-libs/libpcre )"
62 -DEPEND="${RDEPEND}
63 - virtual/pkgconfig"
64 -
65 -PATCHES=(
66 - "${FILESDIR}"/${P}-gcc41.patch
67 - "${FILESDIR}"/${P}-configure.patch
68 - "${FILESDIR}"/${P}-maxpathlen.patch
69 - "${FILESDIR}"/${P}-ac_config_header.patch
70 - "${FILESDIR}"/${P}-ncurses.patch
71 -)
72 -
73 -src_prepare() {
74 - default
75 - eautoreconf
76 -}
77 -
78 -src_configure() {
79 - econf \
80 - --with-logfile="${EPREFIX}"/var/log/apache2/access_log \
81 - --without-adns \
82 - $(use_with fam) \
83 - $(use_with pcre)
84 -}
85
86 diff --git a/app-admin/apachetop/apachetop-0.17.4.ebuild b/app-admin/apachetop/apachetop-0.17.4.ebuild
87 deleted file mode 100644
88 index 2f5954eb82b..00000000000
89 --- a/app-admin/apachetop/apachetop-0.17.4.ebuild
90 +++ /dev/null
91 @@ -1,36 +0,0 @@
92 -# Copyright 1999-2018 Gentoo Foundation
93 -# Distributed under the terms of the GNU General Public License v2
94 -
95 -EAPI=6
96 -
97 -inherit autotools
98 -
99 -DESCRIPTION="A realtime Apache log analyzer"
100 -HOMEPAGE="https://github.com/tessus/apachetop"
101 -SRC_URI="https://github.com/tessus/${PN}/releases/download/${PV}/${P}.tar.gz"
102 -
103 -LICENSE="GPL-2"
104 -SLOT="0"
105 -KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
106 -IUSE="fam pcre"
107 -
108 -RDEPEND="
109 - sys-libs/ncurses:0=
110 - sys-libs/readline:0=
111 - fam? ( virtual/fam )
112 - pcre? ( dev-libs/libpcre )"
113 -DEPEND="${RDEPEND}
114 - virtual/pkgconfig"
115 -
116 -src_prepare() {
117 - default
118 - eautoreconf
119 -}
120 -
121 -src_configure() {
122 - econf \
123 - --with-logfile="${EPREFIX}"/var/log/apache2/access_log \
124 - --without-adns \
125 - $(use_with fam) \
126 - $(use_with pcre)
127 -}
128
129 diff --git a/app-admin/apachetop/apachetop-0.18.4.ebuild b/app-admin/apachetop/apachetop-0.18.4.ebuild
130 deleted file mode 100644
131 index c0a18315d1d..00000000000
132 --- a/app-admin/apachetop/apachetop-0.18.4.ebuild
133 +++ /dev/null
134 @@ -1,38 +0,0 @@
135 -# Copyright 1999-2020 Gentoo Authors
136 -# Distributed under the terms of the GNU General Public License v2
137 -
138 -EAPI=6
139 -
140 -inherit autotools
141 -
142 -DESCRIPTION="A realtime Apache log analyzer"
143 -HOMEPAGE="https://github.com/tessus/apachetop"
144 -SRC_URI="https://github.com/tessus/${PN}/releases/download/${PV}/${P}.tar.gz"
145 -
146 -LICENSE="GPL-2"
147 -SLOT="0"
148 -KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
149 -IUSE="fam pcre"
150 -
151 -RDEPEND="
152 - sys-libs/ncurses:0=
153 - sys-libs/readline:0=
154 - fam? ( virtual/fam )
155 - pcre? ( dev-libs/libpcre )"
156 -DEPEND="${RDEPEND}"
157 -PATCHES=(
158 - "${FILESDIR}"/${PN}-0.18.4-tinfo.patch
159 -)
160 -
161 -src_prepare() {
162 - default
163 - eautoreconf
164 -}
165 -
166 -src_configure() {
167 - econf \
168 - --with-logfile="${EPREFIX}"/var/log/apache2/access_log \
169 - --without-adns \
170 - $(use_with fam) \
171 - $(use_with pcre)
172 -}
173
174 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
175 deleted file mode 100644
176 index aabdb13d75f..00000000000
177 --- a/app-admin/apachetop/files/apachetop-0.12.6-ac_config_header.patch
178 +++ /dev/null
179 @@ -1,12 +0,0 @@
180 -diff -uNr apachetop-0.12.6.orig/configure.ac apachetop-0.12.6/configure.ac
181 ---- apachetop-0.12.6.orig/configure.ac 2013-07-09 14:06:14.000000000 -0400
182 -+++ apachetop-0.12.6/configure.ac 2013-07-09 14:07:36.000000000 -0400
183 -@@ -6,7 +6,7 @@
184 - AC_CONFIG_AUX_DIR(config)
185 - #AC_CONFIG_MACRO_DIR(m4) # 2.58
186 -
187 --AM_CONFIG_HEADER(config.h)
188 -+AC_CONFIG_HEADER(config.h)
189 - AM_INIT_AUTOMAKE(apachetop, 0.12.6) # 2.53 only?
190 -
191 - # Add non-standard directories to the include path
192
193 diff --git a/app-admin/apachetop/files/apachetop-0.12.6-configure.patch b/app-admin/apachetop/files/apachetop-0.12.6-configure.patch
194 deleted file mode 100644
195 index 38a1fc7f6a1..00000000000
196 --- a/app-admin/apachetop/files/apachetop-0.12.6-configure.patch
197 +++ /dev/null
198 @@ -1,101 +0,0 @@
199 -Index: apachetop-0.12.6/configure.ac
200 -===================================================================
201 ---- apachetop-0.12.6.orig/configure.ac
202 -+++ apachetop-0.12.6/configure.ac
203 -@@ -52,48 +52,60 @@ AC_FUNC_VPRINTF
204 - AC_CHECK_FUNCS([inet_aton memset strchr strdup kqueue strerror strstr])
205 -
206 - # pcre {{{
207 --AC_ARG_WITH(pcre,
208 -- [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)],
209 -- [
210 -- CPPFLAGS="$CPPFLAGS -I $withval/include"
211 -- LDFLAGS="$LDFLAGS -L $withval/lib"
212 -- ]
213 --)
214 --
215 --AC_CHECK_HEADERS(pcre.h,
216 -- AC_SEARCH_LIBS([pcre_compile], [pcre]) ,
217 -- AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre])
218 --)
219 -+AC_ARG_WITH([pcre],
220 -+ [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)],
221 -+ [case "${withval}" in
222 -+ yes) with_pcre="/usr";;
223 -+ no) with_pcre="no";;
224 -+ *) with_pcre="/usr";;
225 -+ esac],
226 -+ [with_pcre="/usr"])
227 -+
228 -+if test x$with_pcre != xno; then
229 -+ CPPFLAGS="$CPPFLAGS -I $withval/include"
230 -+ LDFLAGS="$LDFLAGS -L $withval/lib"
231 -+ AC_CHECK_HEADERS(pcre.h,
232 -+ AC_SEARCH_LIBS([pcre_compile], [pcre]),
233 -+ AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre]))
234 -+fi
235 - # }}}
236 -
237 - # fam {{{
238 --AC_ARG_WITH(fam,
239 -- [ --with-fam=<path> prefix of fam installation (eg /usr/local)],
240 -- [
241 -- CPPFLAGS="$CPPFLAGS -I $withval/include"
242 -- LDFLAGS="$LDFLAGS -L $withval/lib"
243 -- ]
244 --)
245 --
246 --AC_CHECK_HEADERS(fam.h,
247 -- AC_SEARCH_LIBS([FAMOpen], [fam]) ,
248 -- AC_MSG_WARN([*** fam.h not found -- consider using --with-fam])
249 --)
250 -+AC_ARG_WITH([fam],
251 -+ [ --with-fam=<path> prefix of fam installation (eg /usr/local)],
252 -+ [case "${withval}" in
253 -+ yes) with_fam="/usr";;
254 -+ no) with_fam="no";;
255 -+ *) with_fam="/usr";;
256 -+ esac],
257 -+ [with_fam="/usr"])
258 -+
259 -+if test x$with_fam != xno; then
260 -+ CPPFLAGS="$CPPFLAGS -I $with_fam/include"
261 -+ LDFLAGS="$LDFLAGS -L $with_fam/lib"
262 -+ AC_CHECK_HEADERS(fam.h,
263 -+ AC_SEARCH_LIBS([FAMOpen], [fam]),
264 -+ AC_MSG_WARN([*** fam.h not found -- consider using --with-fam]))
265 -+fi
266 - # }}}
267 -
268 - # adns {{{
269 --AC_ARG_WITH(adns,
270 -- [ --with-adns=<path> prefix of adns installation (eg /usr/local)],
271 -- [
272 -- CPPFLAGS="$CPPFLAGS -I $withval/include"
273 -- LDFLAGS="$LDFLAGS -L $withval/lib"
274 -- ]
275 --)
276 --
277 --AC_CHECK_HEADERS(adns.h,
278 -- AC_SEARCH_LIBS([adns_submit], [adns]) ,
279 -- AC_MSG_WARN([*** adns.h not found -- consider using --with-adns])
280 --)
281 -+AC_ARG_WITH([adns],
282 -+ [ --with-adns=<path> prefix of adns installation (eg /usr/local)],
283 -+ [case "${withval}" in
284 -+ yes) with_adns="/usr";;
285 -+ no) with_adns="no";;
286 -+ *) with_adns="/usr";;
287 -+ esac],
288 -+ [with_adns="/usr"])
289 -+
290 -+if test x$with_adns != xno; then
291 -+ CPPFLAGS="$CPPFLAGS -I $with_adns/include"
292 -+ LDFLAGS="$LDFLAGS -L $with_adns/lib"
293 -+ AC_CHECK_HEADERS(adns.h,
294 -+ AC_SEARCH_LIBS([adns_submit], [adns]),
295 -+ AC_MSG_WARN([*** adns.h not found -- consider using --with-adns]))
296 -+fi
297 - # }}}
298 -
299 - # --with-logfile {{{
300
301 diff --git a/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch b/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch
302 deleted file mode 100644
303 index 6bfb49d9f9d..00000000000
304 --- a/app-admin/apachetop/files/apachetop-0.12.6-gcc41.patch
305 +++ /dev/null
306 @@ -1,13 +0,0 @@
307 ---- a/src/resolver.h
308 -+++ b/src/resolver.h
309 -@@ -10,8 +10,8 @@
310 - class Resolver
311 - {
312 - public:
313 -- Resolver::Resolver(void);
314 -- Resolver::~Resolver(void);
315 -+ Resolver(void);
316 -+ ~Resolver(void);
317 - int add_request(char *request, enum resolver_action act);
318 -
319 -
320
321 diff --git a/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch b/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch
322 deleted file mode 100644
323 index b648b07cbfc..00000000000
324 --- a/app-admin/apachetop/files/apachetop-0.12.6-maxpathlen.patch
325 +++ /dev/null
326 @@ -1,39 +0,0 @@
327 -Patch by Robert Scheck <robert@×××××××××××××.org> for apachetop <= 0.12.6, which
328 -adds some includes in order to have a real change to get MAXPATHLEN defined with
329 -a valid value. Once MAXPATHLEN really gets filled with 128, it will just cause a
330 -buffer overflow.
331 -
332 -See Red Hat Bugzilla #446199 (https://bugzilla.redhat.com/show_bug.cgi?id=446199)
333 -for more information. This patch should solve the mentioned bug report and should
334 -be sane enough to get included by upstream of apachetop for the next release. It
335 -is important to run autoheader before ./configure to get these changes activated.
336 -
337 ---- apachetop-0.12.6/configure.ac 2005-10-27 18:39:25.000000000 +0200
338 -+++ apachetop-0.12.6/configure.ac.maxpathlen 2008-06-21 16:00:38.000000000 +0200
339 -@@ -34,7 +34,8 @@
340 - # Checks for header files.
341 - AC_HEADER_STDC
342 - AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h \
343 -- string.h strings.h sys/socket.h time.h sys/time.h])
344 -+ string.h strings.h sys/socket.h time.h sys/time.h \
345 -+ limits.h sys/param.h])
346 -
347 - # Checks for typedefs, structures, and compiler characteristics.
348 - #AC_HEADER_STDBOOL # not in 2.53?
349 ---- apachetop-0.12.6/src/apachetop.h 2005-10-15 18:10:01.000000000 +0200
350 -+++ apachetop-0.12.6/src/apachetop.h.maxpatlen 2008-06-21 16:02:00.000000000 +0200
351 -@@ -89,8 +89,12 @@
352 - #define getMIN(a,b) (a < b ? a : b)
353 - #define getMAX(a,b) (a > b ? a : b)
354 -
355 --#ifndef MAXPATHLEN
356 --# define MAXPATHLEN 128
357 -+#ifdef HAVE_SYS_PARAM_H
358 -+# include <sys/param.h>
359 -+#endif
360 -+
361 -+#if HAVE_LIMITS_H
362 -+# include <limits.h>
363 - #endif
364 -
365 - /* upon startup, each input file is put into an element of this array,
366
367 diff --git a/app-admin/apachetop/files/apachetop-0.12.6-ncurses.patch b/app-admin/apachetop/files/apachetop-0.12.6-ncurses.patch
368 deleted file mode 100644
369 index f12c989c340..00000000000
370 --- a/app-admin/apachetop/files/apachetop-0.12.6-ncurses.patch
371 +++ /dev/null
372 @@ -1,166 +0,0 @@
373 ---- a/configure.ac
374 -+++ b/configure.ac
375 -@@ -4,7 +4,7 @@
376 - AC_CONFIG_SRCDIR(src/apachetop.cc)
377 -
378 - AC_CONFIG_AUX_DIR(config)
379 --#AC_CONFIG_MACRO_DIR(m4) # 2.58
380 -+AC_CONFIG_MACRO_DIR(m4)
381 -
382 - AC_CONFIG_HEADER(config.h)
383 - AM_INIT_AUTOMAKE(apachetop, 0.12.6) # 2.53 only?
384 -@@ -29,7 +29,6 @@
385 - #AC_PROG_CC
386 - #AC_PROG_CPP
387 - AC_PROG_CXX
388 --AC_LANG_CPLUSPLUS
389 -
390 - # Checks for header files.
391 - AC_HEADER_STDC
392 -@@ -120,24 +119,9 @@
393 -
394 - AC_SEARCH_LIBS([socket], [socket])
395 - AC_SEARCH_LIBS([inet_addr], [nsl])
396 --AC_SEARCH_LIBS([attron], [ncurses])
397 --AC_SEARCH_LIBS([tgetstr], [termcap])
398 --AC_SEARCH_LIBS([mvprintw], [curses ncurses] ,
399 -- [] ,
400 -- [
401 -- AC_MSG_ERROR([No useful curses library found!])
402 -- ]
403 --)
404 -
405 --AC_SEARCH_LIBS([readline], [readline],
406 -- [
407 -- AC_DEFINE(HAVE_READLINE,1,[Define if you have readline library])
408 -- AC_SUBST(HAVE_READLINE)
409 -- ] ,
410 -- [
411 -- AC_MSG_ERROR(readline library not found)
412 -- ]
413 --)
414 -+PKG_CHECK_MODULES([NCURSES], [ncurses])
415 -+AX_LIB_READLINE
416 -
417 -
418 - # everything is in CPPFLAGS up to this point, now we move to CXXFLAGS
419 ---- a/m4/ax_lib_readline.m4
420 -+++ b/m4/ax_lib_readline.m4
421 -@@ -0,0 +1,107 @@
422 -+# ===========================================================================
423 -+# https://www.gnu.org/software/autoconf-archive/ax_lib_readline.html
424 -+# ===========================================================================
425 -+#
426 -+# SYNOPSIS
427 -+#
428 -+# AX_LIB_READLINE
429 -+#
430 -+# DESCRIPTION
431 -+#
432 -+# Searches for a readline compatible library. If found, defines
433 -+# `HAVE_LIBREADLINE'. If the found library has the `add_history' function,
434 -+# sets also `HAVE_READLINE_HISTORY'. Also checks for the locations of the
435 -+# necessary include files and sets `HAVE_READLINE_H' or
436 -+# `HAVE_READLINE_READLINE_H' and `HAVE_READLINE_HISTORY_H' or
437 -+# 'HAVE_HISTORY_H' if the corresponding include files exists.
438 -+#
439 -+# The libraries that may be readline compatible are `libedit',
440 -+# `libeditline' and `libreadline'. Sometimes we need to link a termcap
441 -+# library for readline to work, this macro tests these cases too by trying
442 -+# to link with `libtermcap', `libcurses' or `libncurses' before giving up.
443 -+#
444 -+# Here is an example of how to use the information provided by this macro
445 -+# to perform the necessary includes or declarations in a C file:
446 -+#
447 -+# #ifdef HAVE_LIBREADLINE
448 -+# # if defined(HAVE_READLINE_READLINE_H)
449 -+# # include <readline/readline.h>
450 -+# # elif defined(HAVE_READLINE_H)
451 -+# # include <readline.h>
452 -+# # else /* !defined(HAVE_READLINE_H) */
453 -+# extern char *readline ();
454 -+# # endif /* !defined(HAVE_READLINE_H) */
455 -+# char *cmdline = NULL;
456 -+# #else /* !defined(HAVE_READLINE_READLINE_H) */
457 -+# /* no readline */
458 -+# #endif /* HAVE_LIBREADLINE */
459 -+#
460 -+# #ifdef HAVE_READLINE_HISTORY
461 -+# # if defined(HAVE_READLINE_HISTORY_H)
462 -+# # include <readline/history.h>
463 -+# # elif defined(HAVE_HISTORY_H)
464 -+# # include <history.h>
465 -+# # else /* !defined(HAVE_HISTORY_H) */
466 -+# extern void add_history ();
467 -+# extern int write_history ();
468 -+# extern int read_history ();
469 -+# # endif /* defined(HAVE_READLINE_HISTORY_H) */
470 -+# /* no history */
471 -+# #endif /* HAVE_READLINE_HISTORY */
472 -+#
473 -+# LICENSE
474 -+#
475 -+# Copyright (c) 2008 Ville Laurikari <vl@×××.fi>
476 -+#
477 -+# Copying and distribution of this file, with or without modification, are
478 -+# permitted in any medium without royalty provided the copyright notice
479 -+# and this notice are preserved. This file is offered as-is, without any
480 -+# warranty.
481 -+
482 -+#serial 7
483 -+
484 -+AU_ALIAS([VL_LIB_READLINE], [AX_LIB_READLINE])
485 -+AC_DEFUN([AX_LIB_READLINE], [
486 -+ AC_CACHE_CHECK([for a readline compatible library],
487 -+ ax_cv_lib_readline, [
488 -+ ORIG_LIBS="$LIBS"
489 -+ for readline_lib in readline edit editline; do
490 -+ for termcap_lib in "" termcap curses ncurses; do
491 -+ if test -z "$termcap_lib"; then
492 -+ TRY_LIB="-l$readline_lib"
493 -+ else
494 -+ TRY_LIB="-l$readline_lib -l$termcap_lib"
495 -+ fi
496 -+ LIBS="$ORIG_LIBS $TRY_LIB"
497 -+ AC_TRY_LINK_FUNC(readline, ax_cv_lib_readline="$TRY_LIB")
498 -+ if test -n "$ax_cv_lib_readline"; then
499 -+ break
500 -+ fi
501 -+ done
502 -+ if test -n "$ax_cv_lib_readline"; then
503 -+ break
504 -+ fi
505 -+ done
506 -+ if test -z "$ax_cv_lib_readline"; then
507 -+ ax_cv_lib_readline="no"
508 -+ fi
509 -+ LIBS="$ORIG_LIBS"
510 -+ ])
511 -+
512 -+ if test "$ax_cv_lib_readline" != "no"; then
513 -+ LIBS="$LIBS $ax_cv_lib_readline"
514 -+ AC_DEFINE(HAVE_LIBREADLINE, 1,
515 -+ [Define if you have a readline compatible library])
516 -+ AC_CHECK_HEADERS(readline.h readline/readline.h)
517 -+ AC_CACHE_CHECK([whether readline supports history],
518 -+ ax_cv_lib_readline_history, [
519 -+ ax_cv_lib_readline_history="no"
520 -+ AC_TRY_LINK_FUNC(add_history, ax_cv_lib_readline_history="yes")
521 -+ ])
522 -+ if test "$ax_cv_lib_readline_history" = "yes"; then
523 -+ AC_DEFINE(HAVE_READLINE_HISTORY, 1,
524 -+ [Define if your readline library has \`add_history'])
525 -+ AC_CHECK_HEADERS(history.h readline/history.h)
526 -+ fi
527 -+ fi
528 -+])dnl
529 ---- a/src/Makefile.am
530 -+++ b/src/Makefile.am
531 -@@ -6,6 +6,7 @@
532 - display.cc hits_circle.cc timed_circle.cc filters.cc \
533 - resolver.cc
534 -
535 -+apachetop_LDADD = $(NCURSES_LIBS)
536 -
537 - noinst_HEADERS = apachetop.h log.h ohtbl.h map.h queue.h \
538 - display.h hits_circle.h circle.h timed_circle.h filters.h \
539
540 diff --git a/app-admin/apachetop/files/apachetop-0.18.4-tinfo.patch b/app-admin/apachetop/files/apachetop-0.18.4-tinfo.patch
541 deleted file mode 100644
542 index d975a430914..00000000000
543 --- a/app-admin/apachetop/files/apachetop-0.18.4-tinfo.patch
544 +++ /dev/null
545 @@ -1,11 +0,0 @@
546 ---- a/configure.ac
547 -+++ b/configure.ac
548 -@@ -133,7 +133,7 @@
549 - AC_SEARCH_LIBS([socket], [socket])
550 - AC_SEARCH_LIBS([inet_addr], [nsl])
551 - AC_SEARCH_LIBS([attron], [ncurses])
552 --AC_SEARCH_LIBS([tgetstr], [termcap])
553 -+AC_SEARCH_LIBS([tgetstr], [tinfo termcap])
554 - AC_SEARCH_LIBS([mvprintw], [curses ncurses] ,
555 - [] ,
556 - [