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.
52 lines
1.2 KiB
52 lines
1.2 KiB
# Authority: VIP-ire
|
|
# Name: Daniel B.
|
|
|
|
Summary: On access AV scanner
|
|
%define name smeserver-clamrt
|
|
Name: %{name}
|
|
%define version 0.0.1
|
|
%define release 1.beta0
|
|
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
|
|
%{__mkdir_p} root/var/log/clamrt
|
|
|
|
%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
|
|
|
|
|