Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/sarg/files/
Date: Thu, 25 Jun 2020 07:31:02
Message-Id: 1593070241.2e6eafb5f2a41bf7a38dd273398bd9c06a6d31df.conikost@gentoo
1 commit: 2e6eafb5f2a41bf7a38dd273398bd9c06a6d31df
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 21 07:45:19 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 07:30:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e6eafb5
7
8 net-analyzer/sarg: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/16358
11 Package-Manager: Portage-2.3.101, Repoman-2.3.22
12 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 net-analyzer/sarg/files/sarg-2.3.10-config.patch | 94 ----------------------
16 net-analyzer/sarg/files/sarg-2.3.11-Werror.patch | 25 ------
17 .../sarg/files/sarg-2.3.11-configure.patch | 31 -------
18 net-analyzer/sarg/files/sarg-2.3.11-format.patch | 36 ---------
19 4 files changed, 186 deletions(-)
20
21 diff --git a/net-analyzer/sarg/files/sarg-2.3.10-config.patch b/net-analyzer/sarg/files/sarg-2.3.10-config.patch
22 deleted file mode 100644
23 index cfbf103d5b2..00000000000
24 --- a/net-analyzer/sarg/files/sarg-2.3.10-config.patch
25 +++ /dev/null
26 @@ -1,94 +0,0 @@
27 ---- a/log.c
28 -+++ b/log.c
29 -@@ -241,7 +241,7 @@
30 - strcpy(LogoTextColor,"#006699");
31 - strcpy(FontSize,"9px");
32 - strcpy(TempDir,"/tmp");
33 -- strcpy(OutputDir,"/var/www/html/squid-reports");
34 -+ strcpy(OutputDir,"/var/www/localhost/htdocs/squid-reports");
35 - AnonymousOutputFiles=false;
36 - Ip2Name=false;
37 - strcpy(DateFormat,"u");
38 ---- a/sarg-php/sarg-squidguard-block.php
39 -+++ b/sarg-php/sarg-squidguard-block.php
40 -@@ -26,8 +26,8 @@
41 - */
42 -
43 - // Change to squidGuard and sarg config file paths
44 --$SargConf = "/usr/local/sarg/sarg.conf";
45 --$squidGuardConf = "/usr/local/squidGuard/squidGuard.conf";
46 -+$SargConf = "/etc/sarg/sarg.conf";
47 -+$squidGuardConf = "/etc/squidGuard/squidGuard.conf";
48 -
49 - global $SargConf;
50 - global $dbhome;
51 -@@ -37,7 +37,7 @@
52 - include_once("style.php");
53 -
54 - $url = $_GET['url'];
55 --$squidGuard_conf = '/usr/local/squidGuard/squidGuard.conf';
56 -+$squidGuard_conf = '/etc/squidGuard/squidGuard.conf';
57 -
58 - function parse_config($line,$clave) {
59 - if (preg_match("/dbhome/i", $line)) {
60 ---- a/sarg-php/sarg-block-it.php
61 -+++ b/sarg-php/sarg-block-it.php
62 -@@ -25,7 +25,7 @@
63 - *
64 - */
65 -
66 --$filename = "/usr/local/squid/etc/block.txt";
67 -+$filename = "/etc/squid/etc/block.txt";
68 -
69 - $url = $_GET['url'];
70 - $url = $url."\n";
71 ---- a/htaccess
72 -+++ b/htaccess
73 -@@ -1,4 +1,4 @@
74 --AuthUserFile /usr/local/sarg/passwd
75 -+AuthUserFile /etc/sarg/passwd
76 - AuthName "SARG, Squid Analysis Report Generator"
77 - AuthType Basic
78 - <Limit GET POST>
79 ---- a/sarg.conf
80 -+++ b/sarg.conf
81 -@@ -4,7 +4,7 @@
82 - # Where is the access.log file
83 - # sarg -l file
84 - #
85 --#access_log /usr/local/squid/var/logs/access.log
86 -+#access_log /var/log/squid/access.log
87 -
88 - # TAG: graphs yes|no
89 - # Use graphics where is possible.
90 -@@ -117,7 +117,7 @@
91 - # The reports will be saved in that directory
92 - # sarg -o dir
93 - #
94 --#output_dir /var/www/html/squid-reports
95 -+#output_dir /var/www/localhost/htdocs/squid-reports
96 -
97 - # TAG: anonymous_output_files yes/no
98 - # Use anonymous file and directory names in the report. If it is set to
99 -@@ -545,7 +545,7 @@
100 - # Generate reports from SquidGuard logs.
101 - # Use 'none' to disable.
102 - # You can use sarg -L filename to use an alternate squidGuard log.
103 --# squidguard_conf /usr/local/squidGuard/squidGuard.conf
104 -+# squidguard_conf /etc/squidGuard/squidGuard.conf
105 - #
106 - #squidguard_conf none
107 -
108 ---- a/user_limit_block
109 -+++ b/user_limit_block
110 -@@ -24,8 +24,8 @@
111 - #
112 - #
113 -
114 --conf="/usr/local/sarg/sarg.conf"
115 --squid_password_file="/usr/local/squid/etc/passwd"
116 -+conf="/etc/sarg/sarg.conf"
117 -+squid_password_file="/etc/squid/passwd"
118 - tmp="/tmp/sarg_limit.$$"
119 -
120 - limit_file=`grep "per_user_limit" $conf|grep -v "#"|awk '{print $2}'`
121
122 diff --git a/net-analyzer/sarg/files/sarg-2.3.11-Werror.patch b/net-analyzer/sarg/files/sarg-2.3.11-Werror.patch
123 deleted file mode 100644
124 index 03557879393..00000000000
125 --- a/net-analyzer/sarg/files/sarg-2.3.11-Werror.patch
126 +++ /dev/null
127 @@ -1,25 +0,0 @@
128 ---- a/configure.ac
129 -+++ b/configure.ac
130 -@@ -46,18 +46,18 @@
131 - CFLAGS="${saved_CFLAGS}"
132 - fi
133 -
134 --AC_MSG_CHECKING([for implicit-function-declaration error flag in $CC])
135 -+AC_MSG_CHECKING([for implicit-function-declaration warning flag in $CC])
136 - saved_CFLAGS="${CFLAGS}"
137 --CFLAGS="${CFLAGS} -Werror=implicit-function-declaration"
138 -+CFLAGS="${CFLAGS} -Wimplicit-function-declaration"
139 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_implicit_function_declaration="yes"],[have_implicit_function_declaration="no"])
140 - AC_MSG_RESULT($have_implicit_function_declaration)
141 - if test "$have_implicit_function_declaration" = "no" ; then
142 - CFLAGS="${saved_CFLAGS}"
143 - fi
144 -
145 --AC_MSG_CHECKING([for format error flag in $CC])
146 -+AC_MSG_CHECKING([for format warning flag in $CC])
147 - saved_CFLAGS="${CFLAGS}"
148 --CFLAGS="${CFLAGS} -Werror=format"
149 -+CFLAGS="${CFLAGS} -Wformat"
150 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_error_format="yes"],[have_error_format="no"])
151 - AC_MSG_RESULT($have_error_format)
152 - if test "$have_error_format" = "no" ; then
153
154 diff --git a/net-analyzer/sarg/files/sarg-2.3.11-configure.patch b/net-analyzer/sarg/files/sarg-2.3.11-configure.patch
155 deleted file mode 100644
156 index 583bfeb0e8e..00000000000
157 --- a/net-analyzer/sarg/files/sarg-2.3.11-configure.patch
158 +++ /dev/null
159 @@ -1,31 +0,0 @@
160 ---- a/configure.ac
161 -+++ b/configure.ac
162 -@@ -2,6 +2,7 @@
163 - AC_INIT([sarg],[2.3.9])
164 - AC_CONFIG_SRCDIR([log.c])
165 - AC_CONFIG_AUX_DIR(cfgaux)
166 -+AC_CONFIG_MACRO_DIR(m4)
167 -
168 - AC_CANONICAL_HOST
169 -
170 -@@ -26,6 +27,11 @@
171 - dnl C99 support is required to define LLONG_MAX (at least on CentOS 5.7)
172 - AC_PROG_CC_C99
173 -
174 -+dnl mkdir_p / MKDIR_P
175 -+AC_PROG_MKDIR_P
176 -+mkdir_p="$MKDIR_P"
177 -+AC_SUBST(mkdir_p)
178 -+
179 - # Report more warnings to improve code quality.
180 - CFLAGS="${CFLAGS} -Wall -Wno-sign-compare"
181 -
182 -@@ -60,7 +66,7 @@
183 -
184 - case "$host" in
185 - *-solaris*)
186 -- LDFLAGS="${LDFLAGS} -lsocket -lnsl"
187 -+ LIBS="${LIBS} -lsocket -lnsl"
188 - CFLAGS="-DSOLARIS ${CFLAGS}"
189 - ;;
190 - esac
191
192 diff --git a/net-analyzer/sarg/files/sarg-2.3.11-format.patch b/net-analyzer/sarg/files/sarg-2.3.11-format.patch
193 deleted file mode 100644
194 index f2dc7d39b1e..00000000000
195 --- a/net-analyzer/sarg/files/sarg-2.3.11-format.patch
196 +++ /dev/null
197 @@ -1,36 +0,0 @@
198 ---- a/report.c
199 -+++ b/report.c
200 -@@ -54,7 +54,7 @@
201 - char accsmart[MAXLEN];
202 - char crc2[MAXLEN/2 -1];
203 - char siteind[MAX_TRUNCATED_URL];
204 -- char arqtt[256];
205 -+ char arqtt[MAX_USER_FNAME_LEN * 2 + MAXLEN + 10];
206 - char *oldurltt=NULL;
207 - char oldaccdiatt[11],oldacchoratt[9];
208 - char tmp3[MAXLEN];
209 ---- a/index.c
210 -+++ b/index.c
211 -@@ -89,9 +89,9 @@
212 - char monthdir[MAXLEN];
213 - char monthname1[9], monthname2[9];
214 - char nmonth[30];
215 -- char monthnum[10];
216 -+ char monthnum[15];
217 - char dayindex[MAXLEN];
218 -- char daynum[10];
219 -+ char daynum[15];
220 - char title[80];
221 - int yearsort[150];
222 - int nyears;
223 ---- a/userinfo.c
224 -+++ b/userinfo.c
225 -@@ -67,7 +67,7 @@
226 - int skip;
227 - int flen;
228 - int count, clen;
229 -- char cstr[9];
230 -+ char cstr[10];
231 -
232 - last=NULL;
233 - for (group=first_user_group ; group ; group=group->next) {