forked from zxvdr/scribble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scribble.spec
53 lines (43 loc) · 1.49 KB
/
scribble.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name: scribble
Version: 0.3
Release: 1%{?dist}
Summary: Daemon that sends log files to a Scribe log server
Group: Development/Languages
License: GPLv3+
URL: https://github.com/zxvdr/scribble
Source0: https://github.com/zxvdr/scribble/raw/master/scribble
Source1: https://github.com/zxvdr/scribble/raw/master/scribble.init
Source2: https://github.com/zxvdr/scribble/raw/master/logs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-daemon
Requires: scribe
Requires(post): chkconfig
%description
Scribble is a daemon that sends log files to a Scribe log server.
%install
rm -rf %{buildroot}
install -D -m 755 %{SOURCE0} %{buildroot}/%{_sbindir}/scribble
install -D -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/rc.d/init.d/scribble
install -D -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/scribed/logs.conf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/scribed/logs.conf
%{_sysconfdir}/rc.d/init.d/scribble
%{_sbindir}/scribble
%post
/sbin/chkconfig --add scribble
%preun
if [ $1 -eq 0 ] ; then
/sbin/service scribble stop >/dev/null 2>&1
/sbin/chkconfig --del scribble
fi
%changelog
* Fri May 27 2011 David Robinson <[email protected]> - 0.2-1
- New release
* Mon May 02 2011 David Robinson <[email protected]> - 0.1-1
- Initial build