view @ 12:f6220c098155 default tip

Added tag stable-1-0-1 for changeset 1b7813f588ba
author Carl Byington <>
date Fri, 17 May 2013 13:35:21 -0700
parents 37eace15ef87
line wrap: on
line source

%define localstatedir   /var/lib

Summary:            wflogs daemon
Name:               @PACKAGE@
Version:            @VERSION@
Release:            1%{?dist}
License:            GPLv3+
Group:              System Environment/Daemons
Source:   {name}/packages/%{name}-%{version}.tar.gz
BuildRoot:          %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
URL:      {name}/

Requires(post,preun):   /sbin/chkconfig
Requires(post,preun):   /sbin/service
Requires:               coreutils
BuildRequires:          gcc gcc-c++

This is a simple wflogs daemon. It reads a syslog file, and feeds
the data every N seconds to wflogs, which creates a web page. M
versions of the web page are kept.

%setup -q

make %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}        $RPM_BUILD_ROOT/etc/rc.d/init.d



/sbin/chkconfig --add %{name}

[ $1 = 0 ] && /sbin/service %{name} stop || :

[ $1 = 0 ] && /sbin/chkconfig --del %{name}

%docdir %{_datadir}/doc/%{name}-%{version}
%config(noreplace) %{_sysconfdir}/%{name}.conf

* Fri May 17 2013 Carl Byington <> - 1.1-1
- allow multiple config contexts
- output optionally triggered by hourly/daily/weekly rollover

* Wed May 15 2013 Carl Byington <> - 1.0-1
- initial revision