summaryrefslogtreecommitdiff
path: root/sys-apps/ethq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-22 11:09:47 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-22 11:09:47 +0100
commit64e107b9b6058580ff0432107eb37cefb0b2a7d8 (patch)
tree9a44e603e2ae365e2b1fe35ac37f73e830cdee1d /sys-apps/ethq
parent957235cf19a691360c720f7913672adda4258ed0 (diff)
gentoo resync : 22.10.2018
Diffstat (limited to 'sys-apps/ethq')
-rw-r--r--sys-apps/ethq/Manifest4
-rw-r--r--sys-apps/ethq/ethq-0.5.0.ebuild56
-rw-r--r--sys-apps/ethq/ethq-9999.ebuild53
-rw-r--r--sys-apps/ethq/metadata.xml19
4 files changed, 132 insertions, 0 deletions
diff --git a/sys-apps/ethq/Manifest b/sys-apps/ethq/Manifest
new file mode 100644
index 000000000000..dabe90e07503
--- /dev/null
+++ b/sys-apps/ethq/Manifest
@@ -0,0 +1,4 @@
+DIST ethq-0_5_0.tar.gz 15830 BLAKE2B b18326f1564d08f94500aa934838053a3b84b78f3d6fa90984c3730ac8922fbe3fd5141d5e9ff4a2c8db54bb8d2c2e493f5583f46b287324d4327583f29b8bf5 SHA512 989978e0dfbb553497f5325807f2d09e4e2842de9df5f5717e832312141adba3e99ef1d57dde4ac0fdd2919c9f5a0eadef5b5f76a300ab4ac7e881c8509fbbec
+EBUILD ethq-0.5.0.ebuild 1107 BLAKE2B c16d86af32ff3ab46cd9be8eb731a5dbabd6543325d92ec92a55bf36c0f85c0578e509361761877fd3f94d5b988866b54af9cbd7aa25b80ad7d81bb07d0f5254 SHA512 0fea1c575876caadc05f3f85a30eb2cab3a9bdd8bd3b0c006445c0a7be996715382b363c6575bdb370097e724ea6784aeb68c2fbaeca687e2f3ce93d59ba7801
+EBUILD ethq-9999.ebuild 1021 BLAKE2B 0951c541021a76b564a18b97bf262e113f00195448ae6fbe6ffa9abed38aeed94fe58f71365aaba4d1f772202fd9b9e24a1a7844aa7a1ef8d36624bef62a1780 SHA512 84363ea2108c843b9caf0b4970bb2392e2656f2f1caa8c3a923a7b35aa6390062324ec7d3fcad553d1b339e2366a1d886e05e5c5bc846c158cf708b9aba080a0
+MISC metadata.xml 627 BLAKE2B b215c0a1e6902bcab4f169740279965bb2b3b26e3bbd79e73aca34449942c6f49a5142758e1b726415f5094f737b86bc4f3625c94a2c575e14f00fbb140e7958 SHA512 c7d1186a0f354e9fa9d44569f7ab22e596d3b5dd996677d080da838f0f0274396fecf208751d7ff3e03123202391a4f1deed6c893310a64575d3a570094bc655
diff --git a/sys-apps/ethq/ethq-0.5.0.ebuild b/sys-apps/ethq/ethq-0.5.0.ebuild
new file mode 100644
index 000000000000..eaaf909be1af
--- /dev/null
+++ b/sys-apps/ethq/ethq-0.5.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PV=${PV//./_}
+MY_P=${PN}-${MY_PV}
+
+inherit toolchain-funcs
+
+DESCRIPTION="Ethernet NIC Queue stats viewer"
+HOMEPAGE="https://github.com/isc-projects/ethq"
+SRC_URI="https://github.com/isc-projects/ethq/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="sys-libs/ncurses:0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ # Respect FLAGS
+ sed -i \
+ -e '/CXXFLAGS/s/= -O3/+=/' \
+ -e 's/ -Werror//' \
+ -e '/LDFLAGS/s/=/+=/' Makefile || die "sed failed for Makefile"
+
+ if ! use test ; then
+ sed -i '/TARGETS/s/ethq_test//' Makefile \
+ || die "sed failed for USE flag test"
+ fi
+}
+
+src_compile() {
+ # override for ncurses[tinfo]
+ emake CXX="$(tc-getCXX)" LIBS_CURSES="$($(tc-getPKG_CONFIG) --libs ncurses)"
+}
+
+src_test() {
+ local driver
+ for driver in tests/* ; do
+ "${S}"/ethq_test "${driver##*/}" "${driver}" \
+ || die "test failed on ${driver}"
+ done
+}
+
+src_install() {
+ einstalldocs
+ dobin ethq
+}
diff --git a/sys-apps/ethq/ethq-9999.ebuild b/sys-apps/ethq/ethq-9999.ebuild
new file mode 100644
index 000000000000..a64bcead00ae
--- /dev/null
+++ b/sys-apps/ethq/ethq-9999.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGIT_REPO_URI="https://github.com/isc-projects/${PN}.git"
+
+inherit git-r3 toolchain-funcs
+
+DESCRIPTION="Ethernet NIC Queue stats viewer"
+HOMEPAGE="https://github.com/isc-projects/ethq"
+SRC_URI=""
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="test"
+
+DEPEND="sys-libs/ncurses:0"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ # Respect FLAGS
+ sed -i \
+ -e '/CXXFLAGS/s/= -O3/+=/' \
+ -e 's/ -Werror//' \
+ -e '/LDFLAGS/s/=/+=/' Makefile || die "sed failed for Makefile"
+
+ if ! use test ; then
+ sed -i '/TARGETS/s/ethq_test//' Makefile \
+ || die "sed failed for USE flag test"
+ fi
+}
+
+src_compile() {
+ # override for ncurses[tinfo]
+ emake CXX="$(tc-getCXX)" LIBS_CURSES="$($(tc-getPKG_CONFIG) --libs ncurses)"
+}
+
+src_test() {
+ local driver
+ for driver in tests/* ; do
+ "${S}"/ethq_test "${driver##*/}" "${driver}" \
+ || die "test failed on ${driver}"
+ done
+}
+
+src_install() {
+ einstalldocs
+ dobin ethq
+}
diff --git a/sys-apps/ethq/metadata.xml b/sys-apps/ethq/metadata.xml
new file mode 100644
index 000000000000..61adaf0931ba
--- /dev/null
+++ b/sys-apps/ethq/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>spiderx@spiderx.dp.ua</email>
+ <name>Vladimir Pavljuchenkov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Displays an auto-updating per-second count of the number of packets
+ and bytes being handled by each queue on a multi-queue NIC.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">isc-projects/ethq</remote-id>
+ </upstream>
+</pkgmetadata>