Update
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/pmacct?expand=0&rev=75
This commit is contained in:
committed by
Git OBS Bridge
parent
9840fac108
commit
8646b8b97a
11
pmacct.spec
11
pmacct.spec
@@ -21,16 +21,12 @@ pmacct is a small set of passive network monitoring tools to measure, account, c
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
ls -l docs examples sql
|
|
||||||
chmod a+rx docs examples sql
|
chmod a+rx docs examples sql
|
||||||
find docs examples sql -type f -print0 | xargs -r0 chmod -x
|
find docs examples sql -type f -print0 | xargs -r0 chmod -x
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
%configure \
|
%configure \
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--sbindir=%{_sbindir} \
|
|
||||||
--sysconfdir=%{_sysconfdir}/%{name} \
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
--enable-64bit \
|
--enable-64bit \
|
||||||
@@ -54,17 +50,14 @@ ln -sf ../../etc/init.d/sfacctd $RPM_BUILD_ROOT/usr/sbin/rcsfacctd
|
|||||||
%{__install} -Dp examples/nfacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/nfacctd.conf
|
%{__install} -Dp examples/nfacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/nfacctd.conf
|
||||||
%{__install} -Dp examples/pmacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/pmacctd.conf
|
%{__install} -Dp examples/pmacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/pmacctd.conf
|
||||||
touch %{buildroot}/%{_sysconfdir}/pmacct/sfacctd.conf
|
touch %{buildroot}/%{_sysconfdir}/pmacct/sfacctd.conf
|
||||||
ls -l docs examples sql
|
|
||||||
chmod a+rx docs examples sql
|
|
||||||
find docs examples sql -type f -print0 | xargs -r0 chmod -x
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc %attr(644,root,root) AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
|
%doc AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
|
||||||
%doc %attr(755,root,root) docs examples sql
|
%doc docs examples sql
|
||||||
%attr(755,root,root) %{_bindir}/*
|
%attr(755,root,root) %{_bindir}/*
|
||||||
%attr(755,root,root) %{_sbindir}/*
|
%attr(755,root,root) %{_sbindir}/*
|
||||||
%{_sysconfdir}/init.d/*
|
%{_sysconfdir}/init.d/*
|
||||||
|
Reference in New Issue
Block a user