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/sarg/, net-analyzer/sarg/files/
Date: Sun, 08 Jul 2018 10:53:19
Message-Id: 1531047192.0de00149228c53476818c121c2da14800fbdd5dc.jer@gentoo
1 commit: 0de00149228c53476818c121c2da14800fbdd5dc
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 8 10:52:57 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 8 10:53:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0de00149
7
8 net-analyzer/sarg: Old.
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 net-analyzer/sarg/Manifest | 1 -
13 net-analyzer/sarg/files/sarg-2.3.10-bool.patch | 11 ---
14 net-analyzer/sarg/files/sarg-2.3.10-format.patch | 77 ----------------
15 .../sarg/files/sarg-2.3.9-configure-bash.patch | 102 ---------------------
16 net-analyzer/sarg/files/sarg-2.3.9-configure.patch | 31 -------
17 net-analyzer/sarg/sarg-2.3.10-r1.ebuild | 44 ---------
18 net-analyzer/sarg/sarg-2.3.10.ebuild | 68 --------------
19 7 files changed, 334 deletions(-)
20
21 diff --git a/net-analyzer/sarg/Manifest b/net-analyzer/sarg/Manifest
22 index 37b5e2df53e..d1303f0db42 100644
23 --- a/net-analyzer/sarg/Manifest
24 +++ b/net-analyzer/sarg/Manifest
25 @@ -1,2 +1 @@
26 -DIST sarg-2.3.10.tar.gz 1278071 BLAKE2B a9412069826328a7828cc3759858160a8e9121fee30697b8c54bc2e6ca948255f297147ff8692e3a62fe6c0a2b596a1a73e1090d03ef1fdacdd692866e6ef27d SHA512 d0a61ac6d455feb8fff024c21f1b7547471ef8cf847fd54d9042881cac3ee14a41fe2a8ea9e0fc2bd2ea0448714ba457e9070282c31e4f3c879e4d83d00ecb2d
27 DIST sarg-2.3.11.tar.gz 1346884 BLAKE2B f1ba5e5d3531b611cca1e18444b24772d5f6fb31622d3702ce34bf7e5208b7ff04000ed80c984ff103f785dd9b7015f56403b8389100bbd02cdbf936c8343be9 SHA512 a5bf5c0f696a9d58d9dd1d631d2b458e7a48f597e7a084b032b2feb6185440b08babe7ffaaefc04676f0dbc11301084d1896b6246a7e79a10acdbd7aa7882ff6
28
29 diff --git a/net-analyzer/sarg/files/sarg-2.3.10-bool.patch b/net-analyzer/sarg/files/sarg-2.3.10-bool.patch
30 deleted file mode 100644
31 index 188b6dd3732..00000000000
32 --- a/net-analyzer/sarg/files/sarg-2.3.10-bool.patch
33 +++ /dev/null
34 @@ -1,11 +0,0 @@
35 ---- a/util.c
36 -+++ b/util.c
37 -@@ -2088,7 +2088,7 @@
38 - int pad_len;
39 - bool bracket=false;
40 - bool port=false;
41 -- bool port_num=0;
42 -+ int port_num=0;
43 -
44 - // skip leading spaces and tabs
45 - while (*buf && (*buf==' ' || *buf=='\t')) buf++;
46
47 diff --git a/net-analyzer/sarg/files/sarg-2.3.10-format.patch b/net-analyzer/sarg/files/sarg-2.3.10-format.patch
48 deleted file mode 100644
49 index 926fdc8c672..00000000000
50 --- a/net-analyzer/sarg/files/sarg-2.3.10-format.patch
51 +++ /dev/null
52 @@ -1,77 +0,0 @@
53 ---- a/report.c
54 -+++ b/report.c
55 -@@ -54,7 +54,7 @@
56 - char accsmart[MAXLEN];
57 - char crc2[MAXLEN/2 -1];
58 - char siteind[MAX_TRUNCATED_URL];
59 -- char arqtt[256];
60 -+ char arqtt[MAX_USER_FNAME_LEN * 2 + MAXLEN + 10];
61 - char *oldurltt=NULL;
62 - char oldaccdiatt[11],oldacchoratt[9];
63 - char tmp3[MAXLEN];
64 ---- a/util.c
65 -+++ b/util.c
66 -@@ -671,10 +671,10 @@
67 - char *buildtime(long long int elap)
68 - {
69 - int num = elap / 1000;
70 -- int hor = 0;
71 -- int min = 0;
72 -- int sec = 0;
73 -- static char buf[12];
74 -+ short int hor = 0;
75 -+ short int min = 0;
76 -+ short int sec = 0;
77 -+ static char buf[15];
78 -
79 - buf[0]='\0';
80 -
81 -@@ -1236,10 +1236,10 @@
82 - char *fixtime(long long int elap)
83 - {
84 - int num = elap / 1000;
85 -- int hor = 0;
86 -- int min = 0;
87 -- int sec = 0;
88 -- static char buf[12];
89 -+ short int hor = 0;
90 -+ short int min = 0;
91 -+ short int sec = 0;
92 -+ static char buf[15];
93 -
94 - hor=num / 3600;
95 - min=(num % 3600) / 60;
96 -@@ -1248,7 +1248,7 @@
97 - if(hor==0 && min==0 && sec==0)
98 - strcpy(buf,"0");
99 - else
100 -- sprintf(buf,"%d:%02d:%02d",hor,min,sec);
101 -+ sprintf(buf,"%02d:%02d:%02d",hor,min,sec);
102 -
103 - return buf;
104 - }
105 ---- a/index.c
106 -+++ b/index.c
107 -@@ -89,9 +89,9 @@
108 - char monthdir[MAXLEN];
109 - char monthname1[9], monthname2[9];
110 - char nmonth[30];
111 -- char monthnum[10];
112 -+ char monthnum[15];
113 - char dayindex[MAXLEN];
114 -- char daynum[10];
115 -+ char daynum[15];
116 - char title[80];
117 - int yearsort[150];
118 - int nyears;
119 ---- a/userinfo.c
120 -+++ b/userinfo.c
121 -@@ -67,7 +67,7 @@
122 - int skip;
123 - int flen;
124 - int count, clen;
125 -- char cstr[9];
126 -+ char cstr[10];
127 -
128 - last=NULL;
129 - for (group=first_user_group ; group ; group=group->next) {
130
131 diff --git a/net-analyzer/sarg/files/sarg-2.3.9-configure-bash.patch b/net-analyzer/sarg/files/sarg-2.3.9-configure-bash.patch
132 deleted file mode 100644
133 index ddc0ca8ec4e..00000000000
134 --- a/net-analyzer/sarg/files/sarg-2.3.9-configure-bash.patch
135 +++ /dev/null
136 @@ -1,102 +0,0 @@
137 ---- a/configure.in
138 -+++ b/configure.in
139 -@@ -41,7 +41,7 @@
140 - CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
141 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_extra_warnings="yes"],[have_extra_warnings="no"])
142 - AC_MSG_RESULT($have_extra_warnings)
143 --if test "$have_extra_warnings" == "no" ; then
144 -+if test "$have_extra_warnings" = "no" ; then
145 - CFLAGS="${saved_CFLAGS}"
146 - fi
147 -
148 -@@ -50,7 +50,7 @@
149 - CFLAGS="${CFLAGS} -Werror=implicit-function-declaration"
150 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_implicit_function_declaration="yes"],[have_implicit_function_declaration="no"])
151 - AC_MSG_RESULT($have_implicit_function_declaration)
152 --if test "$have_implicit_function_declaration" == "no" ; then
153 -+if test "$have_implicit_function_declaration" = "no" ; then
154 - CFLAGS="${saved_CFLAGS}"
155 - fi
156 -
157 -@@ -59,7 +59,7 @@
158 - CFLAGS="${CFLAGS} -Werror=format"
159 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_error_format="yes"],[have_error_format="no"])
160 - AC_MSG_RESULT($have_error_format)
161 --if test "$have_error_format" == "no" ; then
162 -+if test "$have_error_format" = "no" ; then
163 - CFLAGS="${saved_CFLAGS}"
164 - fi
165 -
166 -@@ -93,7 +93,7 @@
167 - [],[with_gd=check])
168 - if ( test "x$with_gd" != "xno" ) ; then
169 - AC_CHECK_HEADERS(gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h)
170 -- if ( test "x$ac_cv_header_gd_h" == "xyes" ) ; then
171 -+ if ( test "x$ac_cv_header_gd_h" = "xyes" ) ; then
172 - AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD_LIB="yes", HAVE_GD_LIB="")
173 - if ( test "x$HAVE_GD_LIB" != "xyes" ) ; then
174 - AC_MSG_ERROR([ligbd is required to compile sarg with gd])
175 -@@ -137,7 +137,7 @@
176 - [],[with_pcre=check])
177 - if ( test "x$with_pcre" != "xno" ) ; then
178 - AC_CHECK_HEADERS(pcre.h)
179 -- if ( test "x$ac_cv_header_pcre_h" == "xyes" ) ; then
180 -+ if ( test "x$ac_cv_header_pcre_h" = "xyes" ) ; then
181 - LIBS="$LIBS $(pcre-config --libs)"
182 - CFLAGS="$CFLAGS $(pcre-config --cflags)"
183 - else
184 -@@ -243,7 +243,7 @@
185 - fi
186 - ],[FONTDIR="${datarootdir}/sarg/fonts"])
187 - if test "$FONTDIR" ; then
188 -- if test "x$prefix" == "xNONE" ; then
189 -+ if test "x$prefix" = "xNONE" ; then
190 - tempfullpath=`prefix=$ac_default_prefix ; eval "echo $FONTDIR"`
191 - else
192 - tempfullpath=`eval "echo $FONTDIR"`
193 -@@ -261,7 +261,7 @@
194 - IMAGEDIR=$enableval
195 - fi
196 - ],[IMAGEDIR="${datarootdir}/sarg/images"])
197 --if test "x$prefix" == "xNONE" ; then
198 -+if test "x$prefix" = "xNONE" ; then
199 - tempfullpath=`prefix=$ac_default_prefix ; eval "echo $IMAGEDIR"`
200 - else
201 - tempfullpath=`eval "echo $IMAGEDIR"`
202 -@@ -286,7 +286,7 @@
203 - CFLAGS="${CFLAGS} -Wformat -Werror=format-security"
204 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_format_security="yes"],[have_format_security="no"])
205 - AC_MSG_RESULT($have_format_security)
206 -- if test "$have_format_security" == "no" ; then
207 -+ if test "$have_format_security" = "no" ; then
208 - CFLAGS="${saved_CFLAGS}"
209 - fi
210 -
211 -@@ -295,7 +295,7 @@
212 - CFLAGS="${CFLAGS} -Wempty-body"
213 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_empty_body="yes"],[have_empty_body="no"])
214 - AC_MSG_RESULT($have_empty_body)
215 -- if test "$have_empty_body" == "no" ; then
216 -+ if test "$have_empty_body" = "no" ; then
217 - CFLAGS="${saved_CFLAGS}"
218 - fi
219 - fi
220 -@@ -367,14 +367,14 @@
221 - AC_CONFIG_FILES([Makefile po/Makefile.in])
222 - AC_OUTPUT
223 -
224 --if ( test "x$gd_status" == "xdisabled" ) ; then
225 -+if ( test "x$gd_status" = "xdisabled" ) ; then
226 - AC_MSG_NOTICE([Not building with gd as requested on the configuration command line])
227 --elif ( test "x$gd_status" == "xnot found" ) ; then
228 -+elif ( test "x$gd_status" = "xnot found" ) ; then
229 - AC_MSG_NOTICE([gd.h was not found so the graphs won't be available in the report])
230 - fi
231 -
232 --if ( test "x$pcre_status" == "xdisabled" ) ; then
233 -+if ( test "x$pcre_status" = "xdisabled" ) ; then
234 - AC_MSG_NOTICE([Not building with pcre as requested on the configuration command line])
235 --elif ( test "x$pcre_status" == "xnot found" ) ; then
236 -+elif ( test "x$pcre_status" = "xnot found" ) ; then
237 - AC_MSG_NOTICE([pcre.h was not found so the regexp won't be available in the hostalias])
238 - fi
239
240 diff --git a/net-analyzer/sarg/files/sarg-2.3.9-configure.patch b/net-analyzer/sarg/files/sarg-2.3.9-configure.patch
241 deleted file mode 100644
242 index 630e944f753..00000000000
243 --- a/net-analyzer/sarg/files/sarg-2.3.9-configure.patch
244 +++ /dev/null
245 @@ -1,31 +0,0 @@
246 ---- a/configure.in
247 -+++ b/configure.in
248 -@@ -2,6 +2,7 @@
249 - AC_INIT([sarg],[2.3.9])
250 - AC_CONFIG_SRCDIR([log.c])
251 - AC_CONFIG_AUX_DIR(cfgaux)
252 -+AC_CONFIG_MACRO_DIR(m4)
253 -
254 - AC_CANONICAL_HOST
255 -
256 -@@ -26,6 +27,11 @@
257 - dnl C99 support is required to define LLONG_MAX (at least on CentOS 5.7)
258 - AC_PROG_CC_C99
259 -
260 -+dnl mkdir_p / MKDIR_P
261 -+AC_PROG_MKDIR_P
262 -+mkdir_p="$MKDIR_P"
263 -+AC_SUBST(mkdir_p)
264 -+
265 - # Report more warnings to improve code quality.
266 - CFLAGS="${CFLAGS} -Wall -Wno-sign-compare"
267 -
268 -@@ -60,7 +66,7 @@
269 -
270 - case "$host" in
271 - *-solaris*)
272 -- LDFLAGS="${LDFLAGS} -lsocket -lnsl"
273 -+ LIBS="${LIBS} -lsocket -lnsl"
274 - CFLAGS="-DSOLARIS ${CFLAGS}"
275 - ;;
276 - esac
277
278 diff --git a/net-analyzer/sarg/sarg-2.3.10-r1.ebuild b/net-analyzer/sarg/sarg-2.3.10-r1.ebuild
279 deleted file mode 100644
280 index 72e6e4dbb97..00000000000
281 --- a/net-analyzer/sarg/sarg-2.3.10-r1.ebuild
282 +++ /dev/null
283 @@ -1,44 +0,0 @@
284 -# Copyright 1999-2017 Gentoo Foundation
285 -# Distributed under the terms of the GNU General Public License v2
286 -
287 -EAPI=6
288 -inherit autotools
289 -
290 -DESCRIPTION="Squid Analysis Report Generator"
291 -HOMEPAGE="http://sarg.sourceforge.net/"
292 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
293 -
294 -LICENSE="GPL-2"
295 -KEYWORDS="~amd64 ~ppc ~x86"
296 -SLOT="0"
297 -IUSE="+gd ldap pcre"
298 -
299 -DEPEND="
300 - gd? ( media-libs/gd[png,truetype] )
301 - ldap? ( net-nds/openldap )
302 - pcre? ( dev-libs/libpcre )
303 -"
304 -RDEPEND="${DEPEND}"
305 -
306 -DOCS=( BETA-TESTERS CONTRIBUTORS DONATIONS README ChangeLog htaccess )
307 -PATCHES=(
308 - "${FILESDIR}"/${PN}-2.3.9-configure.patch
309 - "${FILESDIR}"/${PN}-2.3.9-configure-bash.patch
310 - "${FILESDIR}"/${PN}-2.3.10-format.patch
311 - "${FILESDIR}"/${PN}-2.3.10-bool.patch
312 - "${FILESDIR}"/${PN}-2.3.10-config.patch
313 -)
314 -
315 -src_prepare() {
316 - default
317 -
318 - eautoreconf
319 -}
320 -
321 -src_configure() {
322 - econf \
323 - $(use_with gd) \
324 - $(use_with ldap) \
325 - $(use_with pcre) \
326 - --sysconfdir="${EPREFIX}/etc/sarg/"
327 -}
328
329 diff --git a/net-analyzer/sarg/sarg-2.3.10.ebuild b/net-analyzer/sarg/sarg-2.3.10.ebuild
330 deleted file mode 100644
331 index 870baa2e64d..00000000000
332 --- a/net-analyzer/sarg/sarg-2.3.10.ebuild
333 +++ /dev/null
334 @@ -1,68 +0,0 @@
335 -# Copyright 1999-2015 Gentoo Foundation
336 -# Distributed under the terms of the GNU General Public License v2
337 -
338 -EAPI=5
339 -inherit autotools eutils
340 -
341 -DESCRIPTION="Squid Analysis Report Generator"
342 -HOMEPAGE="http://sarg.sourceforge.net/"
343 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
344 -
345 -LICENSE="GPL-2"
346 -KEYWORDS="amd64 ppc x86"
347 -SLOT="0"
348 -IUSE="+gd ldap pcre"
349 -
350 -DEPEND="
351 - gd? ( media-libs/gd[png,truetype] )
352 - ldap? ( net-nds/openldap )
353 - pcre? ( dev-libs/libpcre )
354 -"
355 -RDEPEND="${DEPEND}"
356 -
357 -DOCS=( BETA-TESTERS CONTRIBUTORS DONATIONS README ChangeLog htaccess )
358 -
359 -src_prepare() {
360 - epatch \
361 - "${FILESDIR}"/${PN}-2.3.9-configure.patch \
362 - "${FILESDIR}"/${PN}-2.3.9-configure-bash.patch
363 -
364 - sed -i \
365 - -e 's:/usr/local/squid/var/logs/access.log:/var/log/squid/access.log:' \
366 - -e 's:/usr/local/\(squidGuard/squidGuard.conf\):/etc/\1:' \
367 - -e 's:/var/www/html/squid-reports:/var/www/localhost/htdocs/squid-reports:' \
368 - -e 's:/usr/local/sarg/exclude_codes:/etc/sarg/exclude_codes:' \
369 - sarg.conf || die
370 -
371 - sed -i \
372 - -e 's:"/var/www/html/squid-reports":"/var/www/localhost/htdocs/squid-reports":' \
373 - log.c || die #43132
374 -
375 - sed -i \
376 - -e 's:/usr/local/sarg/passwd:/etc/sarg/passwd:' \
377 - htaccess || die
378 -
379 - sed -i \
380 - -e 's:/usr/local/\(sarg/sarg.conf\):/etc/\1:' \
381 - -e 's:/usr/local/squid/etc/passwd:/etc/squid/passwd:' \
382 - user_limit_block || die
383 -
384 - sed -i \
385 - -e 's:/usr/local/squid/etc/block.txt:/etc/squid/etc/block.txt:' \
386 - sarg-php/sarg-block-it.php || die
387 -
388 - sed -i \
389 - -e 's:/usr/local/\(sarg/sarg.conf\):/etc/\1:' \
390 - -e 's:/usr/local/\(squidGuard/squidGuard.conf\):/etc/\1:' \
391 - sarg.1 sarg-php/sarg-squidguard-block.php || die
392 -
393 - eautoreconf
394 -}
395 -
396 -src_configure() {
397 - econf \
398 - $(use_with gd) \
399 - $(use_with ldap) \
400 - $(use_with pcre) \
401 - --sysconfdir="${EPREFIX}/etc/sarg/"
402 -}