Update
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/pmacct?expand=0&rev=70
This commit is contained in:
parent
e74cec664e
commit
d3928b8379
35
pmacct.spec
35
pmacct.spec
@ -14,11 +14,11 @@ BuildRoot: %{_tmppath}/%{name}-root
|
||||
Requires: mysql-shared postgresql-libs sqlite
|
||||
BuildRequires: mysql-devel postgresql-devel
|
||||
%if %{?suse_version:1}0
|
||||
%if %suse_version > 920
|
||||
%if %suse_version > 1030
|
||||
BuildRequires: sqlite-devel
|
||||
%endif
|
||||
%if %suse_version > 1020
|
||||
BuildRequires: libpcap-devel
|
||||
%if %suse_version > 1030
|
||||
BuildRequires: libpcap-devel >= 0.6.0
|
||||
%endif
|
||||
%else
|
||||
BuildRequires: sqlite-devel
|
||||
@ -27,11 +27,11 @@ BuildRequires: sqlite-devel
|
||||
BuildRequires: kernel
|
||||
%endif
|
||||
%if %{?mandriva_version:1}0
|
||||
Requires: libpcap0
|
||||
BuildRequires: libpcap0-devel
|
||||
Requires: libpcap0 >= 0.6.0
|
||||
BuildRequires: libpcap0-devel >= 0.6.0
|
||||
%else
|
||||
Requires: libpcap
|
||||
BuildRequires: libpcap
|
||||
Requires: libpcap >= 0.6.0
|
||||
BuildRequires: libpcap >= 0.6.0
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -43,8 +43,9 @@ pmacct is a small set of passive network monitoring tools to measure, account, c
|
||||
#%patch
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
export AM_CFLAGS="%{optflags}"
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
#export CFLAGS="%{optflags}"
|
||||
#export AM_CFLAGS="%{optflags}"
|
||||
PMACCT_BASE_CONFIG="
|
||||
--prefix=%{_prefix}
|
||||
--bindir=%{_bindir}
|
||||
@ -90,14 +91,16 @@ touch %{buildroot}/%{_sysconfdir}/pmacct/sfacctd.conf
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE docs examples sql
|
||||
%defattr(-, root, root, 0755)
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
#%dir %{_docdir}/pmacct
|
||||
%doc %attr(644,root,root) docs examples sql
|
||||
%doc %attr(644,root,root) AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
|
||||
%attr(755,root,root) %{_bindir}/*
|
||||
%attr(755,root,root) %{_sbindir}/*
|
||||
%{_sysconfdir}/init.d/*
|
||||
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/pmacct/nfacctd.conf
|
||||
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/pmacct/pmacctd.conf
|
||||
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/pmacct/sfacctd.conf
|
||||
%dir /etc/pmacct
|
||||
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/nfacctd.conf
|
||||
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/pmacctd.conf
|
||||
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/sfacctd.conf
|
||||
|
||||
%changelog
|
||||
* Mon Jul 21 2008 Peter Nixon 0.11.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user