%define datafile_location /opt/savi # Update this to reflect the version of libsavi included in the distribution %define libver 3.2.05.034 # disable build root strip policy %define __spec_install_post echo Skipping brp-compress Summary: Sophos Antivirus Name: sophos Version: 3.70 Release: 1 License: Proprietary Group: Applications URL: http://www.sophos.com/ Source: linux.intel.libc6-%{version}.tar.Z Packager: Tim Jackson BuildRoot: /var/tmp/%{name}-buildroot %description Sophos Antivirus is a proprietary virus scanning solution, which includes a number of components: - the 'sweep' command line virus scanner - the InterCheck file access daemon - the libsavi shared library SAVI interface - the Sophos virus database %prep %setup -n sav-install %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir} install -m 755 libsavi.so.%{libver} $RPM_BUILD_ROOT%{_libdir} pushd $RPM_BUILD_ROOT%{_libdir} ln -sf libsavi.so.%{libver} libsavi.so.3 ln -sf libsavi.so.3 libsavi.so popd # binaries mkdir -p $RPM_BUILD_ROOT%{_bindir} install -m 755 icheckd $RPM_BUILD_ROOT%{_bindir} install -m 755 sweep $RPM_BUILD_ROOT%{_bindir} # virus database mkdir -p $RPM_BUILD_ROOT%{datafile_location} install -m 644 vdl-%{version}.dat $RPM_BUILD_ROOT%{datafile_location}/vdl.dat install -m 644 vdl*.vdb $RPM_BUILD_ROOT%{datafile_location}/ # config file mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} echo "SAV virus data directory = %{datafile_location}" > $RPM_BUILD_ROOT%{_sysconfdir}/sav.conf # manuals mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 install -m 644 icheckd.1 $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 sweep.1 $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 icheckd.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 %clean rm -rf $RPM_BUILD_ROOT %pre rm -f %{datafile_location}/*.ide %post /sbin/service sophie restart 2>/dev/null %files %doc Install.txt Readunix.txt %defattr(-,root,root) %{_libdir}/libsavi.* %config(noreplace) %{_sysconfdir}/sav.conf %{datafile_location}/* %{_mandir}/* %{_bindir}/*