Experimental, on access AV scanner for SME Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

13 years ago
# Authority: VIP-ire
# Name: Daniel B.
Summary: On access AV scanner
13 years ago
%define name smeserver-clamrt
13 years ago
Name: %{name}
%define version 0.0.1
13 years ago
%define release 1.beta3
13 years ago
Version: %{version}
Release: %{release}%{?dist}
License: GPL
Group: SMEServer/addon
Source: %{name}-%{version}.tar.gz
URL: http://www.firewall-services.com/
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch
Requires: e-smith-base
Requires: smeserver-clamav
Requires: inotify-tools
BuildRequires: e-smith-devtools
%description
Provides on access AV scan for shares and ibays
%changelog
%prep
%setup
%build
perl createlinks
13 years ago
%{__mkdir_p} root/var/{log,lib}/clamrt
13 years ago
%install
/bin/rm -rf $RPM_BUILD_ROOT
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
--file /var/service/clamrt/run 'attr(0755,root,root)' \
--file /var/service/clamrt/log/run 'attr(0755,root,root)' \
--dir /var/log/clamrt 'attr(0750,smelog,smelog)' \
> %{name}-%{version}-filelist
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%clean
rm -rf $RPM_BUILD_ROOT