diff options
-rw-r--r-- | net-proxy/sqtop/Manifest | 1 | ||||
-rw-r--r-- | net-proxy/sqtop/files/sqtop-2015.02.08-ncurses.patch | 15 | ||||
-rw-r--r-- | net-proxy/sqtop/metadata.xml | 15 | ||||
-rw-r--r-- | net-proxy/sqtop/sqtop-2015.02.08.ebuild | 31 |
4 files changed, 62 insertions, 0 deletions
diff --git a/net-proxy/sqtop/Manifest b/net-proxy/sqtop/Manifest new file mode 100644 index 000000000000..ad9499a7a497 --- /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 000000000000..c12953b75b75 --- /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 000000000000..d28b63411b99 --- /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>jaco@uls.co.za</email> + <name>Jaco Kroon</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</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 000000000000..429e0f4ee3f8 --- /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 +} |