Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/ethq/
Date: Sat, 13 Oct 2018 19:46:06
Message-Id: 1539459836.cdcdbc149200748e188be96f0b23aea2a5d0e463.mgorny@gentoo
1 commit: cdcdbc149200748e188be96f0b23aea2a5d0e463
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Sat Oct 6 08:38:05 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 13 19:43:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdcdbc14
7
8 sys-apps/ethq: new ebuild
9
10 Displays an auto-updating per-second count of the number
11 of packets and bytes being handled by each queue on
12 a multi-queue NIC.
13
14 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
15 Package-Manager: Portage-2.3.49, Repoman-2.3.11
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17 Close: https://github.com/gentoo/gentoo/pull/10082
18
19 sys-apps/ethq/Manifest | 1 +
20 sys-apps/ethq/ethq-0.5.0.ebuild | 54 +++++++++++++++++++++++++++++++++++++++++
21 sys-apps/ethq/ethq-9999.ebuild | 51 ++++++++++++++++++++++++++++++++++++++
22 sys-apps/ethq/metadata.xml | 19 +++++++++++++++
23 4 files changed, 125 insertions(+)
24
25 diff --git a/sys-apps/ethq/Manifest b/sys-apps/ethq/Manifest
26 new file mode 100644
27 index 00000000000..e96200ec104
28 --- /dev/null
29 +++ b/sys-apps/ethq/Manifest
30 @@ -0,0 +1 @@
31 +DIST ethq-0_5_0.tar.gz 15830 BLAKE2B b18326f1564d08f94500aa934838053a3b84b78f3d6fa90984c3730ac8922fbe3fd5141d5e9ff4a2c8db54bb8d2c2e493f5583f46b287324d4327583f29b8bf5 SHA512 989978e0dfbb553497f5325807f2d09e4e2842de9df5f5717e832312141adba3e99ef1d57dde4ac0fdd2919c9f5a0eadef5b5f76a300ab4ac7e881c8509fbbec
32
33 diff --git a/sys-apps/ethq/ethq-0.5.0.ebuild b/sys-apps/ethq/ethq-0.5.0.ebuild
34 new file mode 100644
35 index 00000000000..71eae77cf75
36 --- /dev/null
37 +++ b/sys-apps/ethq/ethq-0.5.0.ebuild
38 @@ -0,0 +1,54 @@
39 +# Copyright 1999-2018 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +MY_PV=${PV//./_}
45 +MY_P=${PN}-${MY_PV}
46 +
47 +inherit toolchain-funcs
48 +
49 +DESCRIPTION="Ethernet NIC Queue stats viewer"
50 +HOMEPAGE="https://github.com/isc-projects/ethq"
51 +SRC_URI="https://github.com/isc-projects/ethq/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
52 +
53 +LICENSE="MPL-2.0"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE="test"
57 +
58 +DEPEND="sys-libs/ncurses:0"
59 +RDEPEND="${DEPEND}"
60 +
61 +S="${WORKDIR}/${MY_P}"
62 +
63 +src_prepare() {
64 + default
65 +
66 + # Respect FLAGS
67 + sed -i -e '/CXXFLAGS/s/= -O3/+=/' \
68 + -e '/LDFLAGS/s/=/+=/' Makefile || die "sed failed for Makefile"
69 +
70 + if ! use test ; then
71 + sed -i '/TARGETS/s/ethq_test//' Makefile \
72 + || die "sed failed for USE flag test"
73 + fi
74 +}
75 +
76 +src_compile() {
77 + # override for ncurses[tinfo]
78 + emake CXX="$(tc-getCXX)" LIBS_CURSES="$($(tc-getPKG_CONFIG) --libs ncurses)"
79 +}
80 +
81 +src_test() {
82 + local driver
83 + for driver in tests/* ; do
84 + "${S}"/ethq_test "${driver##*/}" "${driver}" \
85 + || die "test failed on ${driver}"
86 + done
87 +}
88 +
89 +src_install() {
90 + einstalldocs
91 + dobin ethq
92 +}
93
94 diff --git a/sys-apps/ethq/ethq-9999.ebuild b/sys-apps/ethq/ethq-9999.ebuild
95 new file mode 100644
96 index 00000000000..a5106e0c357
97 --- /dev/null
98 +++ b/sys-apps/ethq/ethq-9999.ebuild
99 @@ -0,0 +1,51 @@
100 +# Copyright 1999-2018 Gentoo Authors
101 +# Distributed under the terms of the GNU General Public License v2
102 +
103 +EAPI=7
104 +
105 +EGIT_REPO_URI="https://github.com/isc-projects/${PN}.git"
106 +
107 +inherit git-r3 toolchain-funcs
108 +
109 +DESCRIPTION="Ethernet NIC Queue stats viewer"
110 +HOMEPAGE="https://github.com/isc-projects/ethq"
111 +SRC_URI=""
112 +
113 +LICENSE="MPL-2.0"
114 +SLOT="0"
115 +KEYWORDS=""
116 +IUSE="test"
117 +
118 +DEPEND="sys-libs/ncurses:0"
119 +RDEPEND="${DEPEND}"
120 +
121 +src_prepare() {
122 + default
123 +
124 + # Respect FLAGS
125 + sed -i -e '/CXXFLAGS/s/= -O3/+=/' \
126 + -e '/LDFLAGS/s/=/+=/' Makefile || die "sed failed for Makefile"
127 +
128 + if ! use test ; then
129 + sed -i '/TARGETS/s/ethq_test//' Makefile \
130 + || die "sed failed for USE flag test"
131 + fi
132 +}
133 +
134 +src_compile() {
135 + # override for ncurses[tinfo]
136 + emake CXX="$(tc-getCXX)" LIBS_CURSES="$($(tc-getPKG_CONFIG) --libs ncurses)"
137 +}
138 +
139 +src_test() {
140 + local driver
141 + for driver in tests/* ; do
142 + "${S}"/ethq_test "${driver##*/}" "${driver}" \
143 + || die "test failed on ${driver}"
144 + done
145 +}
146 +
147 +src_install() {
148 + einstalldocs
149 + dobin ethq
150 +}
151
152 diff --git a/sys-apps/ethq/metadata.xml b/sys-apps/ethq/metadata.xml
153 new file mode 100644
154 index 00000000000..61adaf0931b
155 --- /dev/null
156 +++ b/sys-apps/ethq/metadata.xml
157 @@ -0,0 +1,19 @@
158 +<?xml version="1.0" encoding="UTF-8"?>
159 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
160 +<pkgmetadata>
161 + <maintainer type="person">
162 + <email>spiderx@××××××××××.ua</email>
163 + <name>Vladimir Pavljuchenkov</name>
164 + </maintainer>
165 + <maintainer type="project">
166 + <email>proxy-maint@g.o</email>
167 + <name>Proxy Maintainers</name>
168 + </maintainer>
169 + <longdescription>
170 + Displays an auto-updating per-second count of the number of packets
171 + and bytes being handled by each queue on a multi-queue NIC.
172 + </longdescription>
173 + <upstream>
174 + <remote-id type="github">isc-projects/ethq</remote-id>
175 + </upstream>
176 +</pkgmetadata>