Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/argus-clients/, net-analyzer/argus-clients/files/
Date: Thu, 01 Dec 2022 04:23:25
Message-Id: 1669868477.fdd843377392e2b0d1a7542d10bc194604a77247.sam@gentoo
1 commit: fdd843377392e2b0d1a7542d10bc194604a77247
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 04:21:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 04:21:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdd84337
7
8 net-analyzer/argus-clients: add 3.0.8.4
9
10 Closes: https://bugs.gentoo.org/808861
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-analyzer/argus-clients/Manifest | 1 +
14 .../argus-clients/argus-clients-3.0.8.4.ebuild | 76 ++++++++++++++++++++++
15 .../argus-clients-3.0.8.3-configure-clang16.patch | 41 ++++++++++++
16 .../argus-clients-3.0.8.4-autoconf-2.70.patch | 55 ++++++++++++++++
17 4 files changed, 173 insertions(+)
18
19 diff --git a/net-analyzer/argus-clients/Manifest b/net-analyzer/argus-clients/Manifest
20 index e93bb4e9c8d8..bec9030f51dc 100644
21 --- a/net-analyzer/argus-clients/Manifest
22 +++ b/net-analyzer/argus-clients/Manifest
23 @@ -1 +1,2 @@
24 DIST argus-clients-3.0.8.3.tar.gz 2753929 BLAKE2B 561b945ce5beb8d8d016579921417f405f421fd2afe2369ff0a4c5b8aaed44eca7591b43e64db00396cf963cc550753207c9b0e8d21d6b99d8c1ea0faaddb0e9 SHA512 ce6f6aaa21452f60c72498b5410cdc650eed6eec6d949daf7226e93f22d193db175e8051073cbfd258c127ed7cb445d6673ae38f386982dc19632ac55539960e
25 +DIST argus-clients-3.0.8.4.tar.gz 2773840 BLAKE2B 0b5a24bc6a5c3163a0ac19a3a354e6573491e130c4b854bc4c9b19e6dfa1d27acea8338a88e589043b839994182756b04e205d9ef6815b2f7dc347fb51405c88 SHA512 5b6a03528c31b534d56370b4b8189d223691bb0d8f465349e7850bf54b4663e9851bddb54060a8bc263be3b80f4eab829413a7ff4da312e6640e2f7191d65473
26
27 diff --git a/net-analyzer/argus-clients/argus-clients-3.0.8.4.ebuild b/net-analyzer/argus-clients/argus-clients-3.0.8.4.ebuild
28 new file mode 100644
29 index 000000000000..e3762e93f9bc
30 --- /dev/null
31 +++ b/net-analyzer/argus-clients/argus-clients-3.0.8.4.ebuild
32 @@ -0,0 +1,76 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit autotools toolchain-funcs
39 +
40 +DESCRIPTION="Clients for net-analyzer/argus"
41 +HOMEPAGE="https://openargus.org/"
42 +SRC_URI="https://github.com/openargus/clients/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 +S="${WORKDIR}"/clients-${PV}
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~ppc ~x86"
48 +IUSE="debug ft geoip mysql sasl tcpd"
49 +
50 +RDEPEND="
51 + net-analyzer/rrdtool[perl]
52 + net-libs/libpcap
53 + net-libs/libtirpc:=
54 + sys-libs/ncurses:=
55 + sys-libs/readline:=
56 + sys-libs/zlib
57 + ft? ( net-analyzer/flow-tools )
58 + geoip? ( dev-libs/geoip )
59 + mysql? ( dev-db/mysql-connector-c:0= )
60 + sasl? ( dev-libs/cyrus-sasl )
61 +"
62 +DEPEND="${RDEPEND}"
63 +BDEPEND="
64 + sys-devel/bison
65 + sys-devel/flex
66 + virtual/pkgconfig
67 +"
68 +
69 +PATCHES=(
70 + "${FILESDIR}"/${PN}-3.0.4.1-disable-tcp-wrappers-automagic.patch
71 + "${FILESDIR}"/${PN}-3.0.7.21-curses-readline.patch
72 + "${FILESDIR}"/${PN}-3.0.8.2-ar.patch
73 + "${FILESDIR}"/${PN}-3.0.8.2-curses-readline.patch
74 + "${FILESDIR}"/${PN}-3.0.8.2-my_bool.patch
75 + "${FILESDIR}"/${PN}-3.0.8.3-configure-clang16.patch
76 + "${FILESDIR}"/${PN}-3.0.8.4-autoconf-2.70.patch
77 +)
78 +
79 +src_prepare() {
80 + default
81 +
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + tc-export AR RANLIB
87 +
88 + use debug && touch .debug
89 + econf \
90 + $(use_with ft libft) \
91 + $(use_with geoip GeoIP /usr/) \
92 + $(use_with sasl) \
93 + $(use_with tcpd wrappers) \
94 + $(use_with mysql mysql /usr)
95 +}
96 +
97 +src_compile() {
98 + emake \
99 + CCOPT="${CFLAGS} ${LDFLAGS}" \
100 + RANLIB="$(tc-getRANLIB)" \
101 + CURSESLIB="$( $(tc-getPKG_CONFIG) --libs ncurses)"
102 +}
103 +
104 +src_install() {
105 + dobin bin/ra*
106 + dodoc ChangeLog CREDITS README CHANGES
107 + doman man/man{1,5}/*
108 +}
109
110 diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.8.3-configure-clang16.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.8.3-configure-clang16.patch
111 new file mode 100644
112 index 000000000000..ac974dbdf395
113 --- /dev/null
114 +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.8.3-configure-clang16.patch
115 @@ -0,0 +1,41 @@
116 +https://github.com/openargus/clients/pull/7
117 +
118 +From 00264608bad9655d72927f31a2b2744b5e2e2e31 Mon Sep 17 00:00:00 2001
119 +From: Florian Weimer <fweimer@××××××.com>
120 +Date: Fri, 25 Nov 2022 19:03:24 +0100
121 +Subject: [PATCH] configure (AC_LBL_UNALIGNED_ACCESS): Avoid implicit function
122 + decls
123 +
124 +Implicit function declarations were removed from the C language
125 +in 1999. Include the relevant header files to ensure that the
126 +check still works with future compilers. C99 also requires
127 +to declare the return types of all functions.
128 +--- a/acsite.m4
129 ++++ b/acsite.m4
130 +@@ -298,8 +298,10 @@ AC_DEFUN([AC_LBL_UNALIGNED_ACCESS],
131 + # include <sys/types.h>
132 + # include <sys/wait.h>
133 + # include <stdio.h>
134 ++# include <stdlib.h>
135 ++# include <unistd.h>
136 + unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
137 +- main() {
138 ++ int main() {
139 + unsigned int i;
140 + pid_t pid;
141 + int status;
142 +--- a/configure
143 ++++ b/configure
144 +@@ -6711,8 +6711,10 @@ else
145 + # include <sys/types.h>
146 + # include <sys/wait.h>
147 + # include <stdio.h>
148 ++# include <stdlib.h>
149 ++# include <unistd.h>
150 + unsigned char a[5] = { 1, 2, 3, 4, 5 };
151 +- main() {
152 ++ int main() {
153 + unsigned int i;
154 + pid_t pid;
155 + int status;
156 +
157
158 diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.8.4-autoconf-2.70.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.8.4-autoconf-2.70.patch
159 new file mode 100644
160 index 000000000000..b6a322fb6913
161 --- /dev/null
162 +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.8.4-autoconf-2.70.patch
163 @@ -0,0 +1,55 @@
164 +https://sources.debian.org/patches/argus-clients/1:3.0.8.2-6.1/0007-Fix-autoconf-2.70-build.patch/
165 +https://bugs.gentoo.org/808861
166 +
167 +From: Boyuan Yang <byang@××××××.org>
168 +Date: Fri, 1 Oct 2021 16:13:38 -0400
169 +Subject: Fix autoconf 2.70 build
170 +
171 +Bug-Debian: https://bugs.debian.org/978769
172 +--- a/acsite.m4
173 ++++ b/acsite.m4
174 +@@ -715,13 +715,13 @@ AC_DEFUN([AC_QOSIENT_READLINE], [
175 + esac
176 + fi
177 +
178 +- AC_CHECK_HEADERS(readline/readline.h,
179 +- AC_CHECK_DECLS([rl_event_hook, rl_catch_signals, rl_done, rl_set_keyboard_input_timeout, rl_replace_line, rl_delete_text, rl_resize_terminal, rl_save_prompt ], [] , [] ,
180 +- [
181 ++ AC_CHECK_HEADERS([readline/readline.h],
182 ++ [AC_CHECK_DECLS([rl_event_hook, rl_catch_signals, rl_done, rl_set_keyboard_input_timeout, rl_replace_line, rl_delete_text, rl_resize_terminal, rl_save_prompt ], [] , [] ,
183 ++ [[
184 + #include <stdlib.h>
185 + #include <stdio.h>
186 + #include <readline/readline.h>
187 +- ]), ac_cv_found_readline=no)
188 ++ ]])], [ac_cv_found_readline=no])
189 +
190 + if test "$ac_cv_found_readline" != no; then
191 + $1="-lreadline"
192 +--- a/configure.ac
193 ++++ b/configure.ac
194 +@@ -41,17 +41,17 @@ AC_PROG_INSTALL
195 + AC_PROG_RANLIB
196 + AC_PROG_YACC
197 +
198 +-AC_CHECK_PROGS(V_RANLIB, ranlib, @true)
199 +-AC_QOSIENT_LEX_AND_YACC(V_LEX, V_YACC, argus_)
200 ++AC_CHECK_PROGS([V_RANLIB], [ranlib], [@true])
201 ++AC_QOSIENT_LEX_AND_YACC([V_LEX], [V_YACC], [argus_])
202 +
203 + # Checks for libraries.
204 +-AC_QOSIENT_READLINE(V_READLINE, V_INCLS)
205 ++AC_QOSIENT_READLINE([V_READLINE], [V_INCLS])
206 +
207 +-CMU_SASL2(V_INCLS)
208 ++CMU_SASL2([V_INCLS])
209 + AC_CMU_MYSQL
210 +
211 +-AC_CHECK_HEADERS(zlib.h, [AC_CHECK_LIB(z, uncompress, ZLIB="-lz")])
212 +-AC_QOSIENT_FLOWTOOLS(V_FLOWTOOLS, V_INCLS)
213 ++AC_CHECK_HEADERS([zlib.h], [AC_CHECK_LIB([z], [uncompress], [ZLIB="-lz"])])
214 ++AC_QOSIENT_FLOWTOOLS([V_FLOWTOOLS], [V_INCLS])
215 +
216 + if test ! -z "$V_FLOWTOOLS"; then
217 + AC_DEFINE([ARGUS_FLOWTOOLS], [], [Using Flow Tools library])
218 +