%define pkgmajver %(echo %version | cut -d. -f1-2) %define pkgminver %(echo %version | cut -d. -f3) Name: webalizer Version: 2.23.08 Release: 1mamba Summary: A fast, free web server log file analysis program Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.webalizer.org/ Source: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{pkgmajver}-%{pkgminver}-src.tgz Source1: webalizer-conf Source2: webalizer-crond Patch0: webalizer-2.23.08-memmove.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: apache-devel BuildRequires: glibc-devel BuildRequires: libdb53-devel BuildRequires: libgd-devel BuildRequires: libpng-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END %description The Webalizer is a fast, free web server log file analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser. %prep %setup -q -n webalizer-%{pkgmajver}-%{pkgminver} %patch0 -p1 %build ./configure \ --bindir=%{_bindir} \ --mandir=%{_mandir}/man1 \ --sysconfdir=%{_sysconfdir} \ --with-etcdir=%{_sysconfdir}/httpd \ --with-languare=italian \ --enable-dns \ --with-dblib=%{_libdir} \ --with-db=/usr/include/db53 \ CFLAGS="%{optflags} -fcommon" make %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_sysconfdir}/{httpd,cron.daily} mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}/var/www/html/webalizer make install BINDIR=%{buildroot}%{_bindir} \ MANDIR=%{buildroot}%{_mandir}/man1 \ ETCDIR=%{buildroot}%{_sysconfdir}/httpd cp %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/webalizer.conf cp %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/webalizer rm %{buildroot}%{_sysconfdir}/httpd/webalizer.conf.sample rm %{buildroot}%{_bindir}/webazolver ln -s webalizer %{buildroot}%{_bindir}/webazolver %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/wcmgr %{_bindir}/webazolver %{_bindir}/webalizer %{_mandir}/man1/* %config(noreplace) %{_sysconfdir}/httpd/webalizer.conf %config(noreplace) %attr(0700,root,root) %{_sysconfdir}/cron.daily/webalizer %dir %{_localstatedir}/www/html/webalizer %changelog * Sun Mar 28 2021 Silvan Calarco 2.23.08-1mamba - update to 2.23.08 * Tue Apr 10 2012 Automatic Build System 2.23.05-1mamba - update to 2.23.05 * Wed Jun 10 2009 Silvan Calarco 2.21.02-1mamba - update to 2.21.02 * Fri Oct 10 2008 Silvan Calarco 2.20.01-1mamba - automatic update by autodist * Wed Aug 08 2007 Silvan Calarco 2.01-5mamba - specify etcdir in configure * Fri Jun 29 2007 Silvan Calarco 2.01-4mamba - added webazolver symlink * Mon Jun 14 2004 Silvan Calarco 2.01-3qilnx - rebuild with libdb4 * Sat Feb 21 2004 Silvan Calarco 2.01-2qilnx - rebuild with enable-dns option * Wed Jun 11 2003 Silvan Calarco 2.01-1qilnx - first build