summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/squidview')
-rw-r--r--net-analyzer/squidview/Manifest1
-rw-r--r--net-analyzer/squidview/files/squidview-0.86-tinfo.patch43
-rw-r--r--net-analyzer/squidview/squidview-0.86.ebuild32
3 files changed, 76 insertions, 0 deletions
diff --git a/net-analyzer/squidview/Manifest b/net-analyzer/squidview/Manifest
index f217092fa7cc..45a11091710c 100644
--- a/net-analyzer/squidview/Manifest
+++ b/net-analyzer/squidview/Manifest
@@ -1 +1,2 @@
DIST squidview-0.80.tar.gz 122502 BLAKE2B 2fe7a745d6130929f4e9feae301abf110f5e3e963ba6ec8bcf41026a8bc43e3f39862a02c3ab7cd1c4a1009122c3569cbb927b394ed3aa4f0c13bd3e47fe96bf SHA512 4a9bb0f296222ef5c8c127d4e0697ff050a2adcf8b28771379da32af816a2d43edbbd3f02920dc2c54735e7a22f50e6b9040067e2b77136506f472cfedff8894
+DIST squidview-0.86.tar.gz 129911 BLAKE2B 8a514728508c2739aa619d1a481beddd6783e61ccad1252ee6f6a8052fe87bf0edbf23eac19761aac275a370092af45b981ae201a1e4a7b47168941ba642f128 SHA512 c020799e149a4884525b832a21ce990b90da5d3e1caac240913a37b8559bac4e3402b8f5732c3728308ecbea0a56a9e4b764ec7f36b15727c000d6d9e25a57a6
diff --git a/net-analyzer/squidview/files/squidview-0.86-tinfo.patch b/net-analyzer/squidview/files/squidview-0.86-tinfo.patch
new file mode 100644
index 000000000000..7dd536c5f81f
--- /dev/null
+++ b/net-analyzer/squidview/files/squidview-0.86-tinfo.patch
@@ -0,0 +1,43 @@
+--- a/configure.in
++++ b/configure.in
+@@ -1,23 +1,9 @@
+-AC_DEFUN([CURSES_TEST],
+-[
+-if test "x$sv_curses" = xno; then
+- sv_test=$1
+- sv_pass="no"
+- AC_MSG_CHECKING([name is $sv_test])
+- LIBS="-l$sv_test"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curses.h>], [initscr();])],
+- [sv_pass="yes"])
+- AC_MSG_RESULT([$sv_pass])
+- test "$sv_pass" = yes && sv_curses=$sv_test
+- unset LIBS
+-fi
+-])
+-
+ AC_INIT(squidview.cpp)
+ AM_CONFIG_HEADER(config.h)
+ AM_INIT_AUTOMAKE(squidview,0.86)
+ AC_PROG_CXX
+ AC_PROG_INSTALL
++PKG_PROG_PKG_CONFIG
+
+ AC_CHECK_HEADERS(curses.h, signal.h sys/time.h sys/types.h sys/stat.h \
+ unistd.h fcntl.h time.h stdlib.h math.h stdio.h,, \
+@@ -28,14 +14,7 @@
+ AC_CHECK_HEADER(vector,,AC_MSG_ERROR(C++ STL vector class missing))
+ AC_CHECK_HEADER(algorithm,,AC_MSG_ERROR(C++ STL algorithm class missing))
+
+-AC_MSG_NOTICE([Checking curses library name])
+-sv_curses=no
+-CURSES_TEST(ncurses)
+-CURSES_TEST(curses)
+-if test "x$sv_curses" = xno; then
+- AC_MSG_ERROR([No suitable curses found])
+-fi
+-AC_CHECK_LIB($sv_curses, wgetch,,AC_MSG_ERROR([Curses support is not complete?]))
++PKG_CHECK_MODULES([NCURSES],[ncurses],LIBS="$LIBS $NCURSES_LIBS",AC_MSG_ERROR([No suitable curses found]))
+
+ AC_MSG_CHECKING([large file support])
+ sv_large="no"
diff --git a/net-analyzer/squidview/squidview-0.86.ebuild b/net-analyzer/squidview/squidview-0.86.ebuild
new file mode 100644
index 000000000000..4ee7ee30ad0e
--- /dev/null
+++ b/net-analyzer/squidview/squidview-0.86.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="Interactive console program to analyse squid logs"
+HOMEPAGE="http://www.rillion.net/squidview/"
+SRC_URI="http://www.rillion.net/squidview/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ sys-libs/ncurses
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+DOCS=(
+ AUTHORS BUGS ChangeLog HOWTO README
+)
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.86-tinfo.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}