Peter Nixon 2009-08-12 18:29:24 +00:00 committed by Git OBS Bridge
parent 9840fac108
commit 8646b8b97a

View File

@ -21,16 +21,12 @@ pmacct is a small set of passive network monitoring tools to measure, account, c
%prep
%setup -q
ls -l docs examples sql
chmod a+rx docs examples sql
find docs examples sql -type f -print0 | xargs -r0 chmod -x
%build
export CFLAGS="$RPM_OPT_FLAGS"
%configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--sysconfdir=%{_sysconfdir}/%{name} \
--enable-threads \
--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/pmacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/pmacctd.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
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%doc %attr(644,root,root) AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
%doc %attr(755,root,root) docs examples sql
%doc AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
%doc docs examples sql
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%{_sysconfdir}/init.d/*