Mercurial > wflogs-daemon
comparison wflogs-daemon.spec.in @ 0:0aa1171aebd2 stable-1-0-0
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 15 May 2013 13:15:59 -0700 |
parents | |
children | 400b1de6e1c6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0aa1171aebd2 |
---|---|
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 | |
36 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d | |
37 | |
38 | |
39 %clean | |
40 rm -rf $RPM_BUILD_ROOT | |
41 | |
42 | |
43 %pre | |
44 | |
45 | |
46 %post | |
47 /sbin/chkconfig --add %{name} | |
48 | |
49 | |
50 %preun | |
51 [ $1 = 0 ] && /sbin/service %{name} stop || : | |
52 | |
53 | |
54 %postun | |
55 [ $1 = 0 ] && /sbin/chkconfig --del %{name} | |
56 | |
57 | |
58 %files | |
59 %defattr(-,root,root,-) | |
60 %{_sbindir}/* | |
61 %{_mandir}/man1/* | |
62 %{_mandir}/man5/* | |
63 %docdir %{_datadir}/doc/%{name}-%{version} | |
64 %{_datadir}/doc/%{name}-%{version} | |
65 %config(noreplace) %{_sysconfdir}/%{name}.conf | |
66 /etc/rc.d/init.d/%{name} | |
67 | |
68 | |
69 %changelog | |
70 * Wed May 15 2013 Carl Byington <carl@five-ten-sg.com> - 1.0-1 | |
71 - initial revision |