Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
pmacct
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 20
[-]
[+]
Changed
pmacct.spec
@@ -15,9 +15,10 @@ Patch0: pmacct-bgp.patch URL: http://www.pmacct.net/ BuildRoot: %{_tmppath}/%{name}-root -Requires: mysql-shared postgresql-libs sqlite +Requires: postgresql-libs sqlite BuildRequires: mysql-devel postgresql-devel %if %{?suse_version:1}0 +Requires: mysql-shared %if %suse_version > 920 BuildRequires: sqlite-devel %endif @@ -28,7 +29,7 @@ BuildRequires: kernel %endif %if %{?mandriva_version:1}0 -Requires: libpcap0 +Requires: libpcap0 mysql-shared BuildRequires: libpcap0-devel %else Requires: libpcap @@ -37,7 +38,8 @@ %if 0%{?suse_version} >= 1030 BuildRequires: libpcap-devel %endif -%if 0%{?centos_version} +%if 0%{?centos_version} || 0%{?rhel_version} +Requires: mysql BuildRequires: libpcap-devel %endif @@ -64,7 +66,7 @@ --enable-ulog --enable-threads %if %{?suse_version:1}0 -%if %suse_version > 920 +%if %{suse_version} > 920 --enable-sqlite3 %endif --with-pgsql-includes=/usr/include/pgsql/ @@ -73,7 +75,7 @@ --with-pgsql-includes=/usr/include/pgsql/ --with-pcap-includes=/usr/include/ %endif -%if 0%{?centos_version} +%if 0%{?centos_version} || 0%{?rhel_version} --with-mysql-libs=%{_libdir}/mysql %endif " @@ -86,7 +88,7 @@ %{__rm} -rf %{buildroot} %makeinstall -%if 0%{?suse_version} +%if 0%{?suse_version} || 0%{?mandriva_version} %{__install} -Dpm555 %{SOURCE1} %{buildroot}/%{_sysconfdir}/init.d/nfacctd %{__install} -Dpm555 %{SOURCE2} %{buildroot}/%{_sysconfdir}/init.d/pmacctd %{__install} -Dpm555 %{SOURCE3} %{buildroot}/%{_sysconfdir}/init.d/sfacctd