summaryrefslogtreecommitdiff
path: root/vlogger.spec
blob: 8b8101a7fed861e0ff6e07bc57895abcb6b4f55e (plain)
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
%include        /usr/lib/rpm/macros.perl
Summary:	virtual web logfile rotater/parser
Name:		vlogger
Version:	1.3
Release:	1
License:	GPL
Group:		Networking/Utilities
Source0:	http://n0rp.chemlab.org/vlogger/%{name}-%{version}.tar.gz
# Source0-md5:	4170a4bf7ab8b24373458e8ac820c0a1
Patch0:		%{name}-debian.patch
URL:		http://n0rp.chemlab.org/vlogger/
BuildRequires:	rpm-perlprov
BuildRequires:	perl-TimeDate
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Vlogger is a little piece of code borned to handle dealing with large
amounts of virtualhost logs. It's bad news that apache can't do this
on its own. Vlogger takes piped input from apache, splits it off to
separate files based on the first field. It uses a file handle cache
so it can't run out of file descriptors. It will also start a new
logfile every night at midnight, and maintain a symlink to the most
recent file. For security, it can drop privileges and do a chroot to
the logs directory.

%prep
%setup -q
%patch0 -p1

%build

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}

install %{name} $RPM_BUILD_ROOT%{_sbindir}
install *.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README *.conf *.sql
%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man1/*