public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/squidGuard] rawhide: Update to v1.6.0
@ 2026-10-06 6:29 Artur Frenszek-Iwicki
0 siblings, 0 replies; only message in thread
From: Artur Frenszek-Iwicki @ 2026-10-06 6:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/squidGuard
Branch : rawhide
Commit : 8afb49f3fe7a3acc47bea2bd13ca38a70fd898c7
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date : 2026-10-05T14:14:14+02:00
Stats : +77/-344 in 11 file(s)
URL : https://src.fedoraproject.org/rpms/squidGuard/c/8afb49f3fe7a3acc47bea2bd13ca38a70fd898c7?branch=rawhide
Log:
Update to v1.6.0
---
diff --git a/.gitignore b/.gitignore
index 9c89872..bb7f0dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
squidGuard-1.4.tar.gz
blacklists.tgz
/squidGuard-1.4-patch-20150201.tar.gz
+/squidguard_1.6.0.orig.tar.gz
diff --git a/sources b/sources
index a3febf9..2b79bb8 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,2 @@
-de834150998c1386c30feae196f16b06 squidGuard-1.4.tar.gz
c239622cf8e956a91b198617723c71a4 blacklists.tgz
-9a35d0a8616b8f769afb01ef7ad185cc squidGuard-1.4-patch-20150201.tar.gz
+SHA512 (squidguard_1.6.0.orig.tar.gz) = d6e934f550cd777d58abda5f4fd905ccc396afc28e1ddb0bb842a9a3364cbe43db5c30834fe1ed7d93623a361dde50362a79ac2b660382c7e81b4f067f2ac65e
diff --git a/squidGuard-1.4-20091015.patch b/squidGuard-1.4-20091015.patch
deleted file mode 100644
index 69d11b5..0000000
--- a/squidGuard-1.4-20091015.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/sgLog.c 2007-11-16 10:58:32.000000000 -0600
-+++ src/sgLog.c 2009-10-15 14:25:14.000000000 -0500
-@@ -5 +5 @@
-- This software product, squidGuard, is copyrighted (C) 1998-2007
-+ This software product, squidGuard, is copyrighted (C) 1998-2009
-@@ -58,2 +58,2 @@
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-- fprintf(stderr,"overflow in vsprintf (sgLog): %s",strerror(errno));
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
-+ fprintf(stderr,"overflow in vsnprintf (sgLog): %s",strerror(errno));
-@@ -90,2 +90,2 @@
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-- sgLogFatalError("overflow in vsprintf (sgLogError): %s",strerror(errno));
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
-+ sgLog(globalErrorLog, "overflow in vsnprintf (sgLogError): %s",strerror(errno));
-@@ -107,2 +107,2 @@
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-- return;
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
-+ sgLog(globalErrorLog, "overflow in vsnprintf (sgLogError): %s",strerror(errno));
diff --git a/squidGuard-1.4-20091019.patch b/squidGuard-1.4-20091019.patch
deleted file mode 100644
index 9c7efa9..0000000
--- a/squidGuard-1.4-20091019.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/sgDiv.c.in 2008-07-14 11:02:43.000000000 -0500
-+++ src/sgDiv.c.in 2009-10-19 14:26:04.000000000 -0500
-@@ -748 +748 @@
-- strcat(buf, req->orig);
-+ strncat(buf, req->orig, 2048);
---- src/sg.h.in 2007-11-16 10:58:32.000000000 -0600
-+++ src/sg.h.in 2009-10-19 14:25:23.000000000 -0500
-@@ -76 +76 @@
--#define MAX_BUF 4096
-+#define MAX_BUF 12288
diff --git a/squidGuard-1.4-db5.patch b/squidGuard-1.4-db5.patch
deleted file mode 100644
index 733fbad..0000000
--- a/squidGuard-1.4-db5.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ruN squidGuard-1.4-vanilla/src/sgDb.c squidGuard-1.4/src/sgDb.c
---- squidGuard-1.4-vanilla/src/sgDb.c 2008-07-15 04:29:41.000000000 +1000
-+++ squidGuard-1.4/src/sgDb.c 2013-01-21 12:47:41.049325756 +1100
-@@ -114,7 +114,7 @@
- }
- }
- #endif
--#if DB_VERSION_MAJOR == 4
-+#if DB_VERSION_MAJOR >= 4
- if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){
- flag = DB_CREATE;
- if(createdb)
\ No newline at end of file
diff --git a/squidGuard-1.4-helper-protocol.patch b/squidGuard-1.4-helper-protocol.patch
deleted file mode 100644
index a9ef068..0000000
--- a/squidGuard-1.4-helper-protocol.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-diff -urN squidGuard-1.4.orig/src/main.c squidGuard-1.4.upgraded/src/main.c
---- squidGuard-1.4.orig/src/main.c 2013-12-11 17:42:15.000000000 +1300
-+++ squidGuard-1.4.upgraded/src/main.c 2013-12-11 19:04:09.000000000 +1300
-@@ -175,7 +175,7 @@
- sgReloadConfig();
- }
- if(failsafe_mode) {
-- puts("");
-+ puts("ERR message=\"squidGuard failsafe mode\"");
- fflush(stdout);
- if(sig_hup){
- sgReloadConfig();
-@@ -184,7 +184,7 @@
- }
- if(parseLine(buf,&squidInfo) != 1){
- sgLogError("Error parsing squid line: %s",buf);
-- puts("");
-+ puts("BH message=\"squidGuard error parsing squid line\"");
- }
- else {
- src = Source;
-@@ -196,14 +196,14 @@
- acl = sgAclCheckSource(src);
- if((redirect = sgAclAccess(src,acl,&squidInfo)) == NULL){
- if(src == NULL || src->cont_search == 0){
-- puts("");
-+ puts("ERR");
- break;
- } else
- if(src->next != NULL){
- src = src->next;
- continue;
- } else {
-- puts("");
-+ puts("ERR");
- break;
- }
- } else {
-@@ -215,9 +215,10 @@
- squidInfo.ident[0] = '-';
- squidInfo.ident[1] = '\0';
- }
-- fprintf(stdout,"%s %s/%s %s %s\n",redirect,squidInfo.src,
-- squidInfo.srcDomain,squidInfo.ident,
-- squidInfo.method);
-+ if (isdigit(redirect[0]) && isdigit(redirect[1]) && isdigit(redirect[2]) && redirect[3]==':') {
-+ fprintf(stdout,"OK status=%c%c%c url=\"%s\"\n", redirect[0], redirect[1], redirect[2], &redirect[4]);
-+ } else
-+ fprintf(stdout,"OK rewrite-url=\"%s\"\n",redirect);
- /* sgLogError("%s %s/%s %s %s\n",redirect,squidInfo.src,squidInfo.srcDomain,squidInfo.ident,squidInfo.method); */
- break;
- }
-diff -urN squidGuard-1.4.orig/src/sgDiv.c squidGuard-1.4.upgraded/src/sgDiv.c
---- squidGuard-1.4.orig/src/sgDiv.c 2013-12-11 17:42:15.000000000 +1300
-+++ squidGuard-1.4.upgraded/src/sgDiv.c 2013-12-11 18:58:33.000000000 +1300
-@@ -771,7 +771,7 @@
- }
- sgLogError("Going into emergency mode");
- while(fgets(buf, MAX_BUF, stdin) != NULL){
-- puts("");
-+ puts("ERR");
- fflush(stdout);
- }
- sgLogError("ending emergency mode, stdin empty");
-diff -urN squidGuard-1.4.orig/src/sgDiv.c.in squidGuard-1.4.upgraded/src/sgDiv.c.in
---- squidGuard-1.4.orig/src/sgDiv.c.in 2013-12-11 17:42:15.000000000 +1300
-+++ squidGuard-1.4.upgraded/src/sgDiv.c.in 2013-12-11 18:58:40.000000000 +1300
-@@ -782,7 +782,7 @@
- }
- sgLogError("Going into emergency mode");
- while(fgets(buf, MAX_BUF, stdin) != NULL){
-- puts("");
-+ puts("ERR");
- fflush(stdout);
- }
- sgLogError("ending emergency mode, stdin empty");
diff --git a/squidGuard-1.4-setuserinfo.patch b/squidGuard-1.4-setuserinfo.patch
deleted file mode 100644
index 516b3f3..0000000
--- a/squidGuard-1.4-setuserinfo.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-Package: squidguard
-Subject: move setuserinfo() to sg.y.in
-Author: Joachim Wiedorn <ad_debian at joonet.de>
-Forwarded: yes
-Last-Update: 2010-06-25
-
-For real 64 bit architectures we get a segmentation fault.
-It seems the reason is that the function setuserinfo() is
-unknown in sg.y. This patch move the function in sg.y.in
----
-
-diff -urN v05/src/sgDiv.c.in v06/src/sgDiv.c.in
---- v05/src/sgDiv.c.in 2010-05-31 23:48:28.000000000 +0200
-+++ v06/src/sgDiv.c.in 2010-06-25 16:57:10.101216185 +0200
-@@ -865,22 +865,3 @@
- return buf;
- }
-
--#if __STDC__
--struct UserInfo *setuserinfo()
--#else
--struct UserInfo *setuserinfo()
--#endif
--{
-- static struct UserInfo uq;
-- uq.status = 0;
-- uq.time = 0;
-- uq.consumed = 0;
-- uq.last = 0;
--#ifdef HAVE_LIBLDAP
-- uq.ldapuser = 0;
-- uq.found = 0;
-- uq.cachetime = 0;
--#endif
-- return &uq;
--}
--
-diff -urN v05/src/sg.y.in v06/src/sg.y.in
---- v05/src/sg.y.in 2008-05-17 20:25:18.000000000 +0200
-+++ v06/src/sg.y.in 2010-06-25 16:57:09.026513217 +0200
-@@ -389,6 +389,25 @@
- fclose(yyin);
- }
-
-+#if __STDC__
-+struct UserInfo *setuserinfo()
-+#else
-+struct UserInfo *setuserinfo()
-+#endif
-+{
-+ static struct UserInfo uq;
-+ uq.status = 0;
-+ uq.time = 0;
-+ uq.consumed = 0;
-+ uq.last = 0;
-+#ifdef HAVE_LIBLDAP
-+ uq.ldapuser = 0;
-+ uq.found = 0;
-+ uq.cachetime = 0;
-+#endif
-+ return &uq;
-+}
-+
-
- /*
-
diff --git a/squidGuard-1.6.0-fix-configure-check.patch b/squidGuard-1.6.0-fix-configure-check.patch
new file mode 100644
index 0000000..a15f736
--- /dev/null
+++ b/squidGuard-1.6.0-fix-configure-check.patch
@@ -0,0 +1,53 @@
+Package: squidguard
+Subject: fix tests in configure.ac
+Author: Joachim Wiedorn <joodebian at joonet.de>
+Forwarded: no
+Last-Update: 2024-04-03
+
+Because of errors while compile and build Debian packages
+these changes are needed to run without compiler errors.
+---
+
+diff -urN s10/configure.ac s11/configure.ac
+--- s10/configure.ac 2019-02-02 18:00:40.000000000 +0100
++++ s11/configure.ac 2024-04-03 22:15:17.497772672 +0200
+@@ -232,6 +232,7 @@
+ if test "$with_ldap" = "yes"; then
+ AC_DEFINE(HAVE_LIBLDAP, 1, [Define if LDAP support should be compiled])
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
++ #include <stdlib.h>
+ #include <ldap.h>
+ int main()
+ {
+@@ -341,6 +342,7 @@
+ dnl Check DB
+ LIBS="$LIBS -ldb"
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
++ #include <stdlib.h>
+ #include <db.h>
+ int main()
+ {
+@@ -376,6 +378,7 @@
+ fi
+
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
++ #include <stdlib.h>
+ #include <db.h>
+ int main()
+ {
+@@ -412,6 +415,7 @@
+ fi
+
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
++ #include <stdlib.h>
+ #include <db.h>
+ int main()
+ {
+@@ -440,6 +444,7 @@
+ fi
+
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
++ #include <stdlib.h>
+ #include <db.h>
+ int main()
+ {
diff --git a/squidGuard-configure-c99.patch b/squidGuard-configure-c99.patch
deleted file mode 100644
index 28d991f..0000000
--- a/squidGuard-configure-c99.patch
+++ /dev/null
@@ -1,116 +0,0 @@
-Avoid calling the undeclared exit function, so that the tests do not change
-results with strict(er) C99 compilers. (Implicit function declarations were
-removed with C99.)
-
-diff -ur squidGuard-1.4.orig/configure squidGuard-1.4/configure
---- squidGuard-1.4.orig/configure 2009-01-03 21:05:25.000000000 +0100
-+++ squidGuard-1.4/configure 2022-11-26 17:02:39.162492436 +0100
-@@ -4295,7 +4295,7 @@
- {
- LDAP *p;
- p = ldap_init("localhost", LDAP_PORT);
-- exit(0);
-+ return 0;
- }
-
- _ACEOF
-@@ -4620,8 +4620,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver >= 2.006)
-- exit (0);
-- exit (1);
-+ return 0;
-+ return 1;
- }
-
- _ACEOF
-@@ -4689,8 +4689,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver > 2.007 && ver < 3.002)
-- exit (1);
-- exit (0);
-+ return 1;
-+ return 0;
- }
-
- _ACEOF
-@@ -4759,8 +4759,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver >= 3.002)
-- exit (0);
-- exit (1);
-+ return 0;
-+ return 1;
- }
-
- _ACEOF
-@@ -4824,8 +4824,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver >= 4.002)
-- exit (0);
-- exit (1);
-+ return 0;
-+ return 1;
- }
-
- _ACEOF
-diff -ur squidGuard-1.4.orig/configure.in squidGuard-1.4/configure.in
---- squidGuard-1.4.orig/configure.in 2009-01-03 21:04:30.000000000 +0100
-+++ squidGuard-1.4/configure.in 2022-11-26 17:02:54.937327301 +0100
-@@ -194,7 +194,7 @@
- {
- LDAP *p;
- p = ldap_init("localhost", LDAP_PORT);
-- exit(0);
-+ return 0;
- }
- ],,[
- echo
-@@ -311,8 +311,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver >= 2.006)
-- exit (0);
-- exit (1);
-+ return 0;
-+ return 1;
- }
- ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
-
-@@ -342,8 +342,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver > 2.007 && ver < 3.002)
-- exit (1);
-- exit (0);
-+ return 1;
-+ return 0;
- }
- ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
-
-@@ -374,8 +374,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver >= 3.002)
-- exit (0);
-- exit (1);
-+ return 0;
-+ return 1;
- }
- ], dbg2_ok_version=yes, dbg2_ok_version=no, dbg2_ok_version=no)
-
-@@ -398,8 +398,8 @@
- #endif
- ver = major + ((float) minor / 1000);
- if (ver >= 4.002)
-- exit (0);
-- exit (1);
-+ return 0;
-+ return 1;
- }
- ], dbg3_ok_version=yes, dbg3_ok_version=no, dbg3_ok_version=no)
-
diff --git a/squidGuard-htunescape-c99.patch b/squidGuard-htunescape-c99.patch
deleted file mode 100644
index 8edae91..0000000
--- a/squidGuard-htunescape-c99.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Add a missing #include directive to avoid an implicit function declaration.
-
-diff -ur squidGuard-1.4.orig/src/sgDiv.c.in squidGuard-1.4/src/sgDiv.c.in
---- squidGuard-1.4.orig/src/sgDiv.c.in 2022-11-26 16:54:31.560596774 +0100
-+++ squidGuard-1.4/src/sgDiv.c.in 2022-11-26 17:04:16.724471141 +0100
-@@ -18,6 +18,7 @@
-
- #include "sg.h"
- #include "sgEx.h"
-+#include "HTEscape.h"
-
- /* #define METEST 8; */
-
diff --git a/squidGuard.spec b/squidGuard.spec
index a394689..5e9850d 100644
--- a/squidGuard.spec
+++ b/squidGuard.spec
@@ -10,17 +10,18 @@
%define _cgibin /var/www/cgi-bin
Name: squidGuard
-Version: 1.4
-Release: 53%{?dist}
+Version: 1.6.0
+Release: 1%{?dist}
Summary: Filter, redirector and access controller plugin for squid
License: GPL-2.0-only
-Source0: http://www.squidguard.org/Downloads/squidGuard-%{version}.tar.gz
+# Original website at squidguard.org is dead, take sources from Debian's mirror instead
+Source0: https://deb.debian.org/debian/pool/main/s/squidguard/squidguard_%{version}.orig.tar.gz
+
Source1: squidGuard.logrotate
Source2: http://squidguard.mesd.k12.or.us/blacklists.tgz
Source3: http://cuda.port-aransas.k12.tx.us/squid-getlist.html
-Source4: squidGuard-1.4-patch-20150201.tar.gz
# K12LTSP stuff
Source100: squidGuard.conf
@@ -43,23 +44,25 @@ Patch3: squidGuard-perlwarning.patch
#Patch4: squidGuard-sed.patch
Patch5: squidGuard-makeinstall.patch
#Patch6: squidGuard-1.3-SG-2008-06-13.patch
-Patch7: squidGuard-1.4-20091015.patch
-Patch8: squidGuard-1.4-20091019.patch
-Patch9: squidGuard-1.4-db5.patch
-Patch10: squidGuard-1.4-helper-protocol.patch
-Patch11: squidGuard-1.4-setuserinfo.patch
-Patch12: squidGuard-configure-c99.patch
-Patch13: squidGuard-htunescape-c99.patch
Patch14: squidGuard-1.4-declarations.patch
+# https://sources.debian.org/src/squidguard/1.6.0-6/debian/patches/11_fix-configure-check.patch
+Patch15: squidGuard-1.6.0-fix-configure-check.patch
URL: http://www.squidguard.org/
-BuildRequires: make
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: byacc
+BuildRequires: flex
BuildRequires: gcc
-BuildRequires: bison, byacc, openldap-devel, flex, libdb-devel
+BuildRequires: make
BuildRequires: perl-generators
BuildRequires: systemd
+BuildRequires: openldap-devel
+BuildRequires: libdb-devel
+
Requires: squid
Requires(post): systemd-units
Requires(preun): systemd-units
@@ -90,7 +93,7 @@ Neither squidGuard nor Squid can be used to
VBscript inside HTML
%prep
-%setup -q
+%setup -q -n squidguard-%{version}
%{__cp} %{SOURCE3} .
#%patch0 -p1
#%patch1 -p1 -b .paths
@@ -99,23 +102,14 @@ Neither squidGuard nor Squid can be used to
#%patch4 -p1
%patch -P5 -p1
#%patch6 -p0
-%patch -P7 -p0
-%patch -P8 -p0
-%patch -P9 -p1
-%patch -P10 -p1
-%patch -P11 -p1
-%patch -P12 -p1
-%patch -P13 -p1
%patch -P14 -p1
+%patch -P15 -p1
%{__cp} %{SOURCE100} ./squidGuard.conf.k12ltsp.template
%{__cp} %{SOURCE101} ./update_squidguard_blacklists.k12ltsp.sh
%build
-# LDAP_DEPRECATED ensures that ldap_init is declared in <ldap.h>.
-%set_build_flags
-CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
-
+./autogen.sh
%configure \
--with-sg-config=%{_sysconfdir}/squid/squidGuard.conf \
--with-sg-logdir=%{_var}/log/squidGuard \
@@ -129,12 +123,8 @@ pushd contrib
%{__make} %{?_smp_mflags}
popd
-#Apply squidGuard-1.4-patch-20150201.tar.gz
-tar -xzf %{SOURCE4} --overwrite -C samples/ --strip-components=1
%install
-%{__rm} -rf $RPM_BUILD_ROOT
-
#%{__make} DESTDIR=$RPM_BUILD_ROOT install
# This broke as of 1.2.1.
%{__install} -p -D -m 0755 src/squidGuard $RPM_BUILD_ROOT%{_bindir}/squidGuard
@@ -264,6 +254,9 @@ fi
%attr(0755,squid,squid) %{_localstatedir}/log/squid/squidGuard.log
%changelog
+* Mon Oct 05 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 1.6.0-1
+- Update to v1.6.0
+
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-06 6:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 6:29 [rpms/squidGuard] rawhide: Update to v1.6.0 Artur Frenszek-Iwicki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox