commit
d9c1d2a354
37 changed files with 135 additions and 0 deletions
@ -0,0 +1,5 @@ |
||||
#!/usr/bin/perl -w |
||||
|
||||
use esmith::Build::CreateLinks qw(:all); |
||||
|
||||
templates2events("/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf", qw(email-update bootstrap-console-save clamav-update)); |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
mbl |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
si |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
enabled |
@ -0,0 +1 @@ |
||||
service |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1 @@ |
||||
ss |
@ -0,0 +1,2 @@ |
||||
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" |
||||
export PATH |
@ -0,0 +1,2 @@ |
||||
clam_user="clamav" |
||||
clam_group="clamav" |
@ -0,0 +1 @@ |
||||
clam_dbs="/var/clamav" |
@ -0,0 +1 @@ |
||||
clamd_pid="/service/clamd/supervise/pid" |
@ -0,0 +1,2 @@ |
||||
reload_dbs="yes |
||||
reload_opt="clamdscan --reload" |
@ -0,0 +1,4 @@ |
||||
enable_random="yes" |
||||
min_sleep_time="60" |
||||
max_sleep_time="600" |
||||
|
@ -0,0 +1,25 @@ |
||||
{ |
||||
|
||||
my %db = $DB->get('clamav-unofficial-sigs')->props; |
||||
|
||||
my @ss = (); |
||||
my @si = (); |
||||
my @mbl = (); |
||||
|
||||
if ((${'clamav-unofficial-sigs'}{'status'} || 'disabled') eq 'enabled'){ |
||||
while (my ($param,$value) = each(%db)){ |
||||
if ($value eq 'ss'){ |
||||
push @ss, $param; |
||||
} |
||||
elsif ($value eq 'si'){ |
||||
push @si, $param; |
||||
} |
||||
elsif ($value eq 'mbl'){ |
||||
push @mbl, $param; |
||||
} |
||||
} |
||||
$OUT .= "ss_dbs=\"\n" . join "\n", @ss . '"' if (scalar @ss > 0); |
||||
$OUT .= "si_dbs=\"\n" . join "\n", @si . '"' if (scalar @si > 0); |
||||
$OUT .= "mbl_dbs=\"\n" . join "\n", @mbl . '"' if (scalar @mbl > 0); |
||||
} |
||||
} |
@ -0,0 +1,2 @@ |
||||
si_update_hours="4" |
||||
mbl_update_hours="6" |
@ -0,0 +1,7 @@ |
||||
work_dir="/var/lib/clamav-unofficial-sigs |
||||
ss_dir="$work_dir/ss-dbs" |
||||
si_dir="$work_dir/si-dbs |
||||
mbl_dir="$work_dir/mbl-dbs |
||||
config_dir="$work_dir/configs" |
||||
gpg_dir="$work_dir/gpg-key" |
||||
add_dir="$work_dir/add-dbs |
@ -0,0 +1 @@ |
||||
keep_db_backup="no" |
@ -0,0 +1,4 @@ |
||||
curl_silence="no" |
||||
rsync_silence="no" |
||||
gpg_silence="no" |
||||
comment_silence="no" |
@ -0,0 +1,3 @@ |
||||
enable_logging="yes" |
||||
log_file_path="/var/log/clamav-unofficial-sigs" |
||||
log_file_name="clamav-unofficial-sigs.log" |
@ -0,0 +1,2 @@ |
||||
rsync_proxy="" |
||||
curl_proxy="" |
@ -0,0 +1 @@ |
||||
user_configuration_complete="yes" |
@ -0,0 +1,52 @@ |
||||
%define version 0.1.0 |
||||
%define release 0.beta0 |
||||
%define name smeserver-clamav-unofficial-sigs |
||||
|
||||
|
||||
Summary:Unofficial ClamAV signature integration |
||||
Name: %{name} |
||||
Version: %{version} |
||||
Release: %{release}%{?dist} |
||||
License: GPL |
||||
Group: Applications/System |
||||
Source: %{name}-%{version}.tar.gz |
||||
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
||||
BuildArchitectures: noarch |
||||
BuildRequires: e-smith-devtools |
||||
|
||||
Requires: clamav-unofficial-sigs |
||||
Requires: smeserver-clamav |
||||
|
||||
%description |
||||
Configure unofficial ClamAV signatures on SME Server |
||||
|
||||
%changelog |
||||
* Tue Jun 9 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0 |
||||
- initial release |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
perl createlinks |
||||
|
||||
%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 \ |
||||
> %{name}-%{version}-filelist |
||||
|
||||
%files -f %{name}-%{version}-filelist |
||||
%defattr(-,root,root) |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
%pre |
||||
|
||||
%post |
||||
|
||||
%preun |
||||
|
Loading…
Reference in new issue