Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/argus-clients/files/, net-analyzer/argus-clients/
Date: Wed, 31 Jan 2018 04:36:06
Message-Id: 1517373308.2321dd5c4aa02f5c83186193dfc558836c348811.jer@gentoo
1 commit: 2321dd5c4aa02f5c83186193dfc558836c348811
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 31 04:35:08 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 31 04:35:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2321dd5c
7
8 net-analyzer/argus-clients: Use net-libs/libtirpc.
9
10 Package-Manager: Portage-2.3.20, Repoman-2.3.6
11
12 .../argus-clients/argus-clients-3.0.8.2-r1.ebuild | 73 ++++++++++++++++++++++
13 ...ts-3.0.4.1-disable-tcp-wrappers-automagic.patch | 4 +-
14 .../files/argus-clients-3.0.8.2-ar.patch | 31 +++++++++
15 .../files/argus-clients-3.0.8.2-rpc.patch | 34 ++++++++++
16 4 files changed, 140 insertions(+), 2 deletions(-)
17
18 diff --git a/net-analyzer/argus-clients/argus-clients-3.0.8.2-r1.ebuild b/net-analyzer/argus-clients/argus-clients-3.0.8.2-r1.ebuild
19 new file mode 100644
20 index 00000000000..4abbc598cf2
21 --- /dev/null
22 +++ b/net-analyzer/argus-clients/argus-clients-3.0.8.2-r1.ebuild
23 @@ -0,0 +1,73 @@
24 +# Copyright 1999-2018 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +inherit autotools toolchain-funcs
29 +
30 +DESCRIPTION="Clients for net-analyzer/argus"
31 +HOMEPAGE="http://www.qosient.com/argus/"
32 +SRC_URI="http://qosient.com/argus/dev/${P}.tar.gz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86"
37 +IUSE="debug ft geoip mysql sasl tcpd"
38 +
39 +ARGUS_CDEPEND="
40 + net-analyzer/rrdtool[perl]
41 + net-libs/libpcap
42 + net-libs/libtirpc:=
43 + sys-libs/ncurses:=
44 + sys-libs/readline:=
45 + sys-libs/zlib
46 + ft? ( net-analyzer/flow-tools )
47 + geoip? ( dev-libs/geoip )
48 + mysql? ( virtual/mysql )
49 + sasl? ( dev-libs/cyrus-sasl )
50 +"
51 +RDEPEND="
52 + ${ARGUS_CDEPEND}
53 +"
54 +DEPEND="
55 + ${ARGUS_CDEPEND}
56 + sys-devel/bison
57 + sys-devel/flex
58 + virtual/pkgconfig
59 +"
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-3.0.4.1-disable-tcp-wrappers-automagic.patch
62 + "${FILESDIR}"/${PN}-3.0.7.21-curses-readline.patch
63 + "${FILESDIR}"/${PN}-3.0.8.2-rpc.patch
64 + "${FILESDIR}"/${PN}-3.0.8.2-ar.patch
65 +)
66 +
67 +src_prepare() {
68 + default
69 +
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 + tc-export AR RANLIB
75 +
76 + use debug && touch .debug
77 + econf \
78 + $(use_with ft libft) \
79 + $(use_with geoip GeoIP /usr/) \
80 + $(use_with sasl) \
81 + $(use_with tcpd wrappers) \
82 + $(use_with mysql)
83 +}
84 +
85 +src_compile() {
86 + emake \
87 + CCOPT="${CFLAGS} ${LDFLAGS}" \
88 + RANLIB=$(tc-getRANLIB) \
89 + CURSESLIB="$( $(tc-getPKG_CONFIG) --libs ncurses)"
90 +}
91 +
92 +src_install() {
93 + dobin bin/ra*
94 + dodoc ChangeLog CREDITS README CHANGES
95 + doman man/man{1,5}/*
96 +}
97
98 diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch
99 index a08d974ce89..8e240043625 100644
100 --- a/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch
101 +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.4.1-disable-tcp-wrappers-automagic.patch
102 @@ -1,5 +1,5 @@
103 ---- configure.ac.org 2011-01-28 18:26:54.000000000 +0100
104 -+++ configure.ac 2011-04-20 00:09:37.000000000 +0200
105 +--- a/configure.ac
106 ++++ b/configure.ac
107 @@ -121,6 +121,12 @@
108 esac
109
110
111 diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.8.2-ar.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.8.2-ar.patch
112 new file mode 100644
113 index 00000000000..e5df5378ab1
114 --- /dev/null
115 +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.8.2-ar.patch
116 @@ -0,0 +1,31 @@
117 +--- a/common/Makefile.in
118 ++++ b/common/Makefile.in
119 +@@ -113,23 +113,23 @@
120 + all: $(LIBS)
121 +
122 + @INSTALL_LIB@/argus_common.a: $(COMMONOBJ)
123 +- rm -f $@; ar qc $@ $(COMMONOBJ)
124 ++ rm -f $@; $(AR) qc $@ $(COMMONOBJ)
125 + -$(RANLIB) $@
126 +
127 + @INSTALL_LIB@/argus_parse.a: $(PARSEOBJ)
128 +- rm -f $@; ar qc $@ $(PARSEOBJ)
129 ++ rm -f $@; $(AR) qc $@ $(PARSEOBJ)
130 + -$(RANLIB) $@
131 +
132 + @INSTALL_LIB@/argus_client.a: $(CLIENTOBJ)
133 +- rm -f $@; ar qc $@ $(CLIENTOBJ)
134 ++ rm -f $@; $(AR) qc $@ $(CLIENTOBJ)
135 + -$(RANLIB) $@
136 +
137 + @INSTALL_LIB@/argus_output.a: $(OUTPUTOBJ)
138 +- rm -f $@; ar qc $@ $(OUTPUTOBJ)
139 ++ rm -f $@; $(AR) qc $@ $(OUTPUTOBJ)
140 + -$(RANLIB) $@
141 +
142 + @INSTALL_LIB@/argus_event.a: $(EVENTOBJ)
143 +- rm -f $@; ar qc $@ $(EVENTOBJ)
144 ++ rm -f $@; $(AR) qc $@ $(EVENTOBJ)
145 + -$(RANLIB) $@
146 +
147 + scanner.c: scanner.l
148
149 diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.8.2-rpc.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.8.2-rpc.patch
150 new file mode 100644
151 index 00000000000..e140fa96b2a
152 --- /dev/null
153 +++ b/net-analyzer/argus-clients/files/argus-clients-3.0.8.2-rpc.patch
154 @@ -0,0 +1,34 @@
155 +--- a/configure.ac
156 ++++ b/configure.ac
157 +@@ -40,6 +40,7 @@
158 + AC_PROG_INSTALL
159 + AC_PROG_RANLIB
160 + AC_PROG_YACC
161 ++PKG_PROG_PKG_CONFIG
162 +
163 + AC_CHECK_PROGS(V_RANLIB, ranlib, @true)
164 + AC_QOSIENT_LEX_AND_YACC(V_LEX, V_YACC, argus_)
165 +@@ -82,6 +83,12 @@
166 + AC_CHECK_HEADERS([stdlib.h stddef.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h])
167 + AC_CHECK_HEADERS([sys/mount.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h values.h ifaddrs.h])
168 +
169 ++PKG_CHECK_MODULES(libtirpc, libtirpc,
170 ++ [LIBS="${LIBS} ${libtirpc_LIBS}"],
171 ++[AC_CHECK_HEADER([rpc/types.h],,
172 ++ [AC_MSG_ERROR([Cannot find <rpc/types.h>])])]
173 ++)
174 ++
175 + # Checks for typedefs, structures, and compiler characteristics.
176 + AC_C_CONST
177 + AC_C_INLINE
178 +--- a/common/Makefile.in
179 ++++ b/common/Makefile.in
180 +@@ -48,7 +48,7 @@
181 +
182 + CC = @CC@
183 + CCOPT = @V_CCOPT@
184 +-INCLS = -I. -I../include @V_INCLS@ @MYSQL_INCLS@
185 ++INCLS = -I. -I../include @V_INCLS@ @MYSQL_INCLS@ @libtirpc_CFLAGS@
186 + DEFS = @DEFS@ -DARGUS_SYSLOG
187 +
188 + # Standard CFLAGS