public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/webalizer] epel9: - run with -Q from cron (#120913)
@ 2026-11-08 8:17 jorton
0 siblings, 0 replies; only message in thread
From: jorton @ 2026-11-08 8:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/webalizer
Branch : epel9
Commit : ffc836e1f523f0623e09df2e5bd6d8c304823bf8
Author : jorton <jorton@fedoraproject.org>
Date : 2005-09-21T12:34:31+00:00
Stats : +56/-28 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/webalizer/c/ffc836e1f523f0623e09df2e5bd6d8c304823bf8?branch=epel9
Log:
- run with -Q from cron (#120913)
- remove ancient trigger and post scriptlets
- only read webalizer.conf from $PWD if owner matches user (#158174)
---
diff --git a/webalizer-2.01_10-confuser.patch b/webalizer-2.01_10-confuser.patch
new file mode 100644
index 0000000..ed0dae3
--- /dev/null
+++ b/webalizer-2.01_10-confuser.patch
@@ -0,0 +1,46 @@
+
+https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158174
+
+--- webalizer-2.01-10/webalizer.c.confuser 2005-09-21 13:32:40.000000000 +0100
++++ webalizer-2.01-10/webalizer.c 2005-09-21 13:33:43.000000000 +0100
+@@ -50,6 +50,8 @@
+ #include <sys/types.h>
+ #endif
+
++#include <sys/stat.h>
++
+ /* some systems need this */
+ #ifdef HAVE_MATH_H
+ #include <math.h>
+@@ -252,6 +254,8 @@
+
+ int max_ctry; /* max countries defined */
+
++ struct stat st;
++
+ /* month names used for parsing logfile (shouldn't be lang specific) */
+ char *log_month[12]={ "jan", "feb", "mar",
+ "apr", "may", "jun",
+@@ -266,8 +270,8 @@
+
+ sprintf(tmp_buf,"%s/webalizer.conf",ETCDIR);
+ /* check for default config file */
+- if (!access("webalizer.conf",F_OK))
+- get_config("webalizer.conf");
++ if (stat("webalizer.conf", &st) == 0 && st.st_uid == getuid())
++ get_config("webalizer.conf");
+ else if (!access(tmp_buf,F_OK))
+ get_config(tmp_buf);
+
+--- webalizer-2.01-10/webalizer.1.confuser 2001-10-23 07:05:50.000000000 +0100
++++ webalizer-2.01-10/webalizer.1 2005-09-21 13:32:40.000000000 +0100
+@@ -44,7 +44,8 @@
+ .B o
+ A default configuration file is scanned for. A file named
+ \fIwebalizer.conf\fP is searched for in the current directory, and if
+-found, it's configuration data is parsed. If the file is not
++found, and is owned by the invoking user, then its configuration data is parsed.
++If the file is not
+ present in the current directory, the file \fI/etc/webalizer.conf\fP
+ is searched for and, if found, is used instead.
+ .TP 8
diff --git a/webalizer.cron b/webalizer.cron
index 3e592e5..1cf7e3b 100644
--- a/webalizer.cron
+++ b/webalizer.cron
@@ -1,8 +1,6 @@
#! /bin/bash
# update access statistics for the web site
-if [ -s /var/log/httpd/access_log ] ; then
- /usr/bin/webalizer
+if [ -s /var/log/httpd/access_log ]; then
+ exec /usr/bin/webalizer -Q
fi
-
-exit 0
diff --git a/webalizer.spec b/webalizer.spec
index a7708e7..8a8e5f9 100644
--- a/webalizer.spec
+++ b/webalizer.spec
@@ -5,7 +5,7 @@ Name: webalizer
Summary: A flexible Web server log file analysis program.
Group: Applications/Internet
Version: %{ver}_%{patchlevel}
-Release: 28
+Release: 29
URL: http://www.mrunix.net/webalizer/
License: GPL
Buildroot: %{_tmppath}/%{name}-root
@@ -21,6 +21,7 @@ Patch2: webalizer-2.01_10-lfs.patch
Patch3: webalizer-2.01-10-overflow.patch
Patch4: webalizer-2.01-10-underrun.patch
Patch5: webalizer-2.01-10-ipv6.patch
+Patch6: webalizer-2.01_10-confuser.patch
BuildPrereq: gd-devel
BuildPrereq: zlib-devel
@@ -47,6 +48,7 @@ Web traffic is coming from easy.
%patch3 -p1 -b .overflow
%patch4 -p1 -b .underrun
%patch5 -p1 -b .ipv6
+%patch6 -p1 -b .confuser
%build
CPPFLAGS="-I%{_includedir}/db4" ; export CPPFLAGS
@@ -66,7 +68,6 @@ mkdir -p $RPM_BUILD_ROOT%{_bindir} \
mkdir -p $RPM_BUILD_ROOT/var/lib/webalizer
%makeinstall
-
install -m 644 $RPM_SOURCE_DIR/webalizer.conf $RPM_BUILD_ROOT/etc
install -m 644 *.png $RPM_BUILD_ROOT/var/www/usage
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/00webalizer
@@ -83,28 +84,6 @@ rm -rf $RPM_BUILD_ROOT
/usr/sbin/adduser -c "Webalizer" -u 67 \
-s /sbin/nologin -r -d /var/www/usage webalizer 2>/dev/null || :
-%post
-# are we upgrading?
-if [ $1 -gt 1 ]; then
- if [ -f /var/www/html/usage/webalizer.current ]; then
- mv /var/www/html/usage/webalizer.current /var/lib/webalizer
- fi
- if [ -f /var/www/html/usage/webalizer.hist ]; then
- mv /var/www/html/usage/webalizer.hist /var/lib/webalizer
- fi
- for i in /var/lib/webalizer/* /var/www/html/usage/*; do
- [ -f "$i" ] && /bin/chown webalizer $i
- done
-fi
-exit 0
-
-%triggerpostun -- webalizer <= 2.0
-# older files incompatible with 2.01 and later
-# trigger will run (if necessary) after postinstall script
-if [ -f /var/lib/webalizer/webalizer.current ]; then
- rm -f /var/lib/webalizer/webalizer.current
-fi
-
%files
%defattr(-,root,root)
%doc README
@@ -118,6 +97,11 @@ fi
%attr(-, webalizer, root) /var/www/usage/*.png
%changelog
+* Wed Sep 21 2005 Joe Orton <jorton@redhat.com> 2.01_10-29
+- run with -Q from cron (#120913)
+- remove ancient trigger and post scriptlets
+- only read webalizer.conf from $PWD if owner matches user (#158174)
+
* Fri Mar 4 2005 Joe Orton <jorton@redhat.com> 2.01_10-28
- rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-08 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 8:17 [rpms/webalizer] epel9: - run with -Q from cron (#120913) jorton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox