Initial commit

tags/0.1.0_el5
Daniel Berteaud 10 years ago
commit d9c1d2a354
  1. 5
      createlinks
  2. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb
  3. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/junk.ndb
  4. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/jurlbl.ndb
  5. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/mbl.ndb
  6. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/phish.ndb
  7. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/rogue.hdb
  8. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/sanesecurity.ftm
  9. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/scam.ndb
  10. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfo.hdb
  11. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfobat.hdb
  12. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfodos.hdb
  13. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfoelf.hdb
  14. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfohtml.hdb
  15. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfooffice.hdb
  16. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfopdf.hdb
  17. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfosh.hdb
  18. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/spamimg.hdb
  19. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/status
  20. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/type
  21. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware.hdb
  22. 1
      root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb
  23. 2
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path
  24. 2
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/015User
  25. 1
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/020Db
  26. 1
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/025Pid
  27. 2
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/030Reload
  28. 4
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/035Randomize
  29. 25
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/040Databases
  30. 2
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/045Frequencies
  31. 7
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/060Dirs
  32. 1
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/065Backup
  33. 4
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/070Silence
  34. 3
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/075Log
  35. 2
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/080Proxy
  36. 1
      root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/099UserConfigComplete
  37. 52
      smeserver-clamav-unofficial-sigs.spec

@ -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,2 @@
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
export PATH

@ -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,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,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,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…
Cancel
Save