Mercurial > wflogs-daemon
annotate wflogs-daemon.spec.in @ 4:37eace15ef87
allow hourly/daily/weekly triggers for output generation, append to temp wflogs input files so daemon restart won't drop as much data
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 12:03:21 -0700 |
parents | 400b1de6e1c6 |
children |
rev | line source |
---|---|
0 | 1 %define localstatedir /var/lib |
2 | |
3 Summary: wflogs daemon | |
4 Name: @PACKAGE@ | |
5 Version: @VERSION@ | |
6 Release: 1%{?dist} | |
7 License: GPLv3+ | |
8 Group: System Environment/Daemons | |
9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz | |
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | |
11 URL: http://www.five-ten-sg.com/%{name}/ | |
12 | |
13 Requires(post,preun): /sbin/chkconfig | |
14 Requires(post,preun): /sbin/service | |
15 Requires: coreutils | |
16 BuildRequires: gcc gcc-c++ | |
17 | |
18 | |
19 %description | |
20 This is a simple wflogs daemon. It reads a syslog file, and feeds | |
21 the data every N seconds to wflogs, which creates a web page. M | |
22 versions of the web page are kept. | |
23 | |
24 %prep | |
25 %setup -q | |
26 | |
27 %build | |
28 %configure | |
29 make %{?_smp_mflags} | |
30 | |
31 | |
32 %install | |
33 rm -rf $RPM_BUILD_ROOT | |
34 make DESTDIR=$RPM_BUILD_ROOT install | |
35 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d | |
4
37eace15ef87
allow hourly/daily/weekly triggers for output generation, append to temp wflogs input files so daemon restart won't drop as much data
Carl Byington <carl@five-ten-sg.com>
parents:
2
diff
changeset
|
36 mkdir -p $RPM_BUILD_ROOT/var/lib/%{name} |
0 | 37 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
38 | |
39 | |
40 %clean | |
41 rm -rf $RPM_BUILD_ROOT | |
42 | |
43 | |
44 %pre | |
45 | |
46 | |
47 %post | |
48 /sbin/chkconfig --add %{name} | |
49 | |
50 | |
51 %preun | |
52 [ $1 = 0 ] && /sbin/service %{name} stop || : | |
53 | |
54 | |
55 %postun | |
56 [ $1 = 0 ] && /sbin/chkconfig --del %{name} | |
57 | |
58 | |
59 %files | |
60 %defattr(-,root,root,-) | |
61 %{_sbindir}/* | |
62 %{_mandir}/man1/* | |
63 %{_mandir}/man5/* | |
64 %docdir %{_datadir}/doc/%{name}-%{version} | |
65 %{_datadir}/doc/%{name}-%{version} | |
4
37eace15ef87
allow hourly/daily/weekly triggers for output generation, append to temp wflogs input files so daemon restart won't drop as much data
Carl Byington <carl@five-ten-sg.com>
parents:
2
diff
changeset
|
66 /var/lib/%{name}/ |
0 | 67 %config(noreplace) %{_sysconfdir}/%{name}.conf |
68 /etc/rc.d/init.d/%{name} | |
69 | |
70 | |
71 %changelog | |
2
400b1de6e1c6
allow multiple config contexts
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
72 * Fri May 17 2013 Carl Byington <carl@five-ten-sg.com> - 1.1-1 |
400b1de6e1c6
allow multiple config contexts
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
73 - allow multiple config contexts |
4
37eace15ef87
allow hourly/daily/weekly triggers for output generation, append to temp wflogs input files so daemon restart won't drop as much data
Carl Byington <carl@five-ten-sg.com>
parents:
2
diff
changeset
|
74 - output optionally triggered by hourly/daily/weekly rollover |
2
400b1de6e1c6
allow multiple config contexts
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
75 |
0 | 76 * Wed May 15 2013 Carl Byington <carl@five-ten-sg.com> - 1.0-1 |
77 - initial revision |