view @ 2:400b1de6e1c6

allow multiple config contexts
author Carl Byington <>
date Fri, 17 May 2013 10:32:12 -0700
parents 0aa1171aebd2
children 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
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

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