Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmailmrtg7
> qmailmrtg7.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qmailmrtg7.spec of Package qmailmrtg7
Name: qmailmrtg7 Version: 4.2 Release: 3 Summary: Create mrtg graphs from qmail logs Group: Productivity/Networking/Email/Utilities License: GPL Url: http://www.inter7.com/index.php?page=qmailmrtg7 Source0: %{name}-%{version}.tar.gz Patch0: %{name}-makefile.patch Patch1: %{name}-mrtg.patch Patch2: %{name}-amavis-rblspp.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc qmail Requires: qmail mrtg %if 0%{?suse_version} %define _wwwdir /srv/www/htdocs %endif %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} %define _wwwdir /var/www/html %endif %description %prep %setup %patch0 %patch1 %patch2 %build mkdir -p %{buildroot}%{_wwwdir}/%{name} mkdir -p %{buildroot}%{_sysconfdir}/cron.d mkdir -p %{buildroot}%{_bindir} %__make %install %__make DESTDIR=%{buildroot} install %__install -D -m 644 qmail.mrtg.cfg %{buildroot}%{_sysconfdir}/qmail.mrtg.cfg %__install -m 644 index.html %{buildroot}%{_wwwdir}/%{name}/index.html %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS ChangeLog FAQ TODO %attr(0755,root,root) %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/qmail.mrtg.cfg %dir %{_wwwdir}/%{name} %{_wwwdir}/%{name}/index.html