Adapt spec for v 6

tags/squidclamav-6.16-0.beta3
Daniel Berteaud 7 years ago
parent 496f00390c
commit 92d41cb6fb
  1. 45
      squidclamav.spec

@ -22,25 +22,6 @@ in C and can handle thousand of connections.
%prep %prep
%setup -q %setup -q
# create README.RPM
%{__cat} > README.RPM << __EOF
1. Edit an modify configuration file %{_sysconfdir}/%{name}.conf to match
your installation.
2. Create a redirect CGI script or HTML where you want your users to be
redirected when a virus is found and set the 'redirect' configuration
directive to that URL. You have a CGI script sample in different languages
in %{_libexecdir}/%{name}/
3. If you use squidclamav log remember that squidclamav will run as squid
user, so the path to %{name}.log must be writable by this user.
You can have more information on how to configure and use %{name} by reading
documentation at http://squidclamav.darold.net/ or with squidclamav man page.
__EOF
%build %build
%configure --prefix=%{_prefix} %configure --prefix=%{_prefix}
%{__make} %{__make}
@ -48,34 +29,24 @@ __EOF
%install %install
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
# set up path structure # set up path structure
%{__install} -d -m 0755 %{buildroot}/%{_bindir} %{__install} -d -m 0755 %{buildroot}/%{_sysconfdir}/c-icap
%{__install} -d -m 0755 %{buildroot}/%{_sysconfdir}
%{__install} -d -m 0755 %{buildroot}/%{_libexecdir}
# Make distrib files # Make distrib files
%{__make} install \ %{__make} install \
DESTDIR=%{buildroot} DESTDIR=%{buildroot}
%{__install} -D -m 0644 doc/%{name}.1 \
%{buildroot}/%{_mandir}/man1/%{name}.1
%clean %clean
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc Change* INSTALL README README.RPM %doc ChangeLog INSTALL README
%attr(0755,root,root) %{_bindir}/%{name} %attr(640,root,squid) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/c-icap/squidclamav.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf %{_sysconfdir}/c-icap/squidclamav.conf.default
%attr(0644,root,root) %{_mandir}/man1/%{name}.1.gz %attr(755,root,root) %{_libdir}/c_icap/squidclamav.so
%attr(0644,root,root) %{_datadir}/%{name}/README %attr(755,root,root) %{_libdir}/squidclamav
%attr(0755,root,root) %{_libexecdir}/%{name}/clwarn.cgi %{_datadir}/c_icap/templates/squidclamav
%attr(0755,root,root) %{_libexecdir}/%{name}/clwarn.cgi.de_DE %{_mandir}/man1/squidclamav.1*
%attr(0755,root,root) %{_libexecdir}/%{name}/clwarn.cgi.en_EN
%attr(0755,root,root) %{_libexecdir}/%{name}/clwarn.cgi.fr_FR
%attr(0755,root,root) %{_libexecdir}/%{name}/clwarn.cgi.pt_BR
%attr(0755,root,root) %{_libexecdir}/%{name}/clwarn.cgi.ru_RU
%dir %{_libexecdir}/%{name}
%changelog %changelog
* Sun Feb 18 2018 Daniel Berteaud <daniel@firewall-services.com> 6.16-0.beta2 * Sun Feb 18 2018 Daniel Berteaud <daniel@firewall-services.com> 6.16-0.beta2

Loading…
Cancel
Save