commit:     db345b6898d4139af9788da2bcbe04ab2f9a9df7
Author:     Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
AuthorDate: Sat Mar 28 15:43:26 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan  4 17:14:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db345b68

net-proxy/sqtop: initial version

sqtop is like top, but for squid.

It connects to squid's manager object to retrieve information about
what's going on, and then visually displays the information.

Closes: https://bugs.gentoo.org/414577
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
Closes: https://github.com/gentoo/gentoo/pull/15151
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-proxy/sqtop/Manifest                           |  1 +
 .../sqtop/files/sqtop-2015.02.08-ncurses.patch     | 15 +++++++++++
 net-proxy/sqtop/metadata.xml                       | 15 +++++++++++
 net-proxy/sqtop/sqtop-2015.02.08.ebuild            | 31 ++++++++++++++++++++++
 4 files changed, 62 insertions(+)

diff --git a/net-proxy/sqtop/Manifest b/net-proxy/sqtop/Manifest
new file mode 100644
index 00000000000..ad9499a7a49
--- /dev/null
+++ b/net-proxy/sqtop/Manifest
@@ -0,0 +1 @@
+DIST sqtop-2015.02.08.tar.gz 154535 BLAKE2B 
4825a254670e5336acbddc8ffb50c7a423614c06fcf9b69b354e3ccf88496bde17ba586bf45cf062a4da40e2332b84a611b50582e425278a259cc27a23f53f7f
 SHA512 
35911b2d4aaa6364ec52bb55264372378b4a458268cfc2e03884660576014739a55e255eb751a9be54b70d4504f16d095b6cf9db08ff5889d52fd2a46ab2033a

diff --git a/net-proxy/sqtop/files/sqtop-2015.02.08-ncurses.patch 
b/net-proxy/sqtop/files/sqtop-2015.02.08-ncurses.patch
new file mode 100644
index 00000000000..c12953b75b7
--- /dev/null
+++ b/net-proxy/sqtop/files/sqtop-2015.02.08-ncurses.patch
@@ -0,0 +1,15 @@
+diff --git a/configure.ac b/configure.ac
+index 9306ef8..829d793 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -60,7 +60,9 @@ if test x$enable_ui = xtrue; then
+             ], [AC_MSG_ERROR([Unable to find the ncurses headers]); break;])
+         ])
+    AC_CHECK_LIB([ncurses], [initscr], [], [AC_MSG_ERROR([Unable to find the 
ncurses library]); break;])
+-   AC_CHECK_FUNCS([clear refresh endwin mvaddstr mvchgat mvhline getch beep 
initscr nonl keypad noecho cbreak halfdelay addnstr], [], [AC_MSG_ERROR([Unable 
to find some ncurses functions]); break;])
++   AC_CHECK_FUNCS([clear refresh endwin mvaddstr mvchgat mvhline getch beep 
initscr nonl], [], [AC_MSG_ERROR([Unable to find some ncurses functions]); 
break;])
++   AC_CHECK_LIB([tinfo], [cur_term], [], [AC_MSG_ERROR([Unable to find the 
tinfo (ncurses) library]); break;])
++   AC_CHECK_FUNCS([keypad noecho cbreak halfdelay addnstr], [], 
[AC_MSG_ERROR([Unable to find some tinfo (ncurses) functions]); break;])
+    test_pthread=yes
+ fi
+ 

diff --git a/net-proxy/sqtop/metadata.xml b/net-proxy/sqtop/metadata.xml
new file mode 100644
index 00000000000..d28b63411b9
--- /dev/null
+++ b/net-proxy/sqtop/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Jaco Kroon</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription lang="en">
+               SquidTop is a program that connects with Squid and shows a 
live, top-like display as to what Squid is busy processing.
+       </longdescription>
+</pkgmetadata>

diff --git a/net-proxy/sqtop/sqtop-2015.02.08.ebuild 
b/net-proxy/sqtop/sqtop-2015.02.08.ebuild
new file mode 100644
index 00000000000..429e0f4ee3f
--- /dev/null
+++ b/net-proxy/sqtop/sqtop-2015.02.08.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+MY_PV="$(ver_rs 1-2 -)"
+
+DESCRIPTION="Squid Top - top for Squid"
+HOMEPAGE="https://github.com/paleg/sqtop";
+SRC_URI="https://github.com/paleg/sqtop/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="sys-libs/ncurses:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-2015.02.08-ncurses.patch"
+)
+
+src_prepare()
+{
+       default
+       eautoreconf
+}

Reply via email to