Blob Blame History Raw
Summary: A syslog data viewer for the web
Name: phplogcon
Version: 2.1.6
Release: 3.beta%{?dist}
License: GPLv3+
Group: Applications/Internet
URL: http://www.phplogcon.com/
Source0: http://download.adiscon.com/phplogcon/%{name}-%{version}.tar.gz
Source1: README.fedora
Source2: phplogcon-httpd.conf
Requires: php php-gd webserver
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
phpLogCon is a web interface to syslog and other network event data. It
provides easy browsing and some basic analysis of realtime network events.
Depending on the applications feeding the database, it can process syslog
messages, Windows event log entries and even SNMP trap data - just to name a
few.

%prep

%setup -q -n %{name}-%{version}

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m 755 %{buildroot}/%{_datadir}/%{name}
cp -aRf src/*     %{buildroot}/%{_datadir}/%{name}/

touch             %{buildroot}%{_sysconfdir}/%{name}/config.php
ln -s ../../../%{_sysconfdir}/%{name}/config.php %{buildroot}/%{_datadir}/%{name}/config.php

install -d -m 755  %{buildroot}%{_sysconfdir}/httpd/conf.d
cp      %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
cp      %{SOURCE1} ./

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc COPYING INSTALL ChangeLog README.fedora
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%attr(0755,root,apache) %dir %{_sysconfdir}/%{name}
%attr(0664,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.php
%{_datadir}/%{name}


%changelog
* Fri May 23 2008 Peter Vrabec <pvrabec@redhat.com> 2.1.6-3.beta
- package improvements (#444722)

* Thu May 22 2008 Peter Vrabec <pvrabec@redhat.com> 2.1.6-2.beta
- package improvements (#444722)

* Mon May 19 2008 Peter Vrabec <pvrabec@redhat.com> 2.1.6-1.beta
- package improvements (#444722)

* Mon May 05 2008 Peter Vrabec <pvrabec@redhat.com> 2.3.1-1
- package improvements (#444722)

* Mon Apr 21 2008 Peter Vrabec <pvrabec@redhat.com> 2.1.3-1
- initial fedora package