From d9c1d2a35475a70f2a7546ae8617a2e6193eef0a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 9 Jun 2015 18:42:08 +0200 Subject: [PATCH] Initial commit --- createlinks | 5 +++ .../defaults/clamav-unofficial-sigs/honeynet.hdb | 1 + .../defaults/clamav-unofficial-sigs/junk.ndb | 1 + .../defaults/clamav-unofficial-sigs/jurlbl.ndb | 1 + .../defaults/clamav-unofficial-sigs/mbl.ndb | 1 + .../defaults/clamav-unofficial-sigs/phish.ndb | 1 + .../defaults/clamav-unofficial-sigs/rogue.hdb | 1 + .../clamav-unofficial-sigs/sanesecurity.ftm | 1 + .../defaults/clamav-unofficial-sigs/scam.ndb | 1 + .../clamav-unofficial-sigs/securiteinfo.hdb | 1 + .../clamav-unofficial-sigs/securiteinfobat.hdb | 1 + .../clamav-unofficial-sigs/securiteinfodos.hdb | 1 + .../clamav-unofficial-sigs/securiteinfoelf.hdb | 1 + .../clamav-unofficial-sigs/securiteinfohtml.hdb | 1 + .../clamav-unofficial-sigs/securiteinfooffice.hdb | 1 + .../clamav-unofficial-sigs/securiteinfopdf.hdb | 1 + .../clamav-unofficial-sigs/securiteinfosh.hdb | 1 + .../defaults/clamav-unofficial-sigs/spamimg.hdb | 1 + .../defaults/clamav-unofficial-sigs/status | 1 + .../defaults/clamav-unofficial-sigs/type | 1 + .../clamav-unofficial-sigs/winnow_malware.hdb | 1 + .../winnow_malware_links.ndb | 1 + .../clamav-unofficial-sigs.conf/010Path | 2 + .../clamav-unofficial-sigs.conf/015User | 2 + .../clamav-unofficial-sigs.conf/020Db | 1 + .../clamav-unofficial-sigs.conf/025Pid | 1 + .../clamav-unofficial-sigs.conf/030Reload | 2 + .../clamav-unofficial-sigs.conf/035Randomize | 4 ++ .../clamav-unofficial-sigs.conf/040Databases | 25 +++++++++++ .../clamav-unofficial-sigs.conf/045Frequencies | 2 + .../clamav-unofficial-sigs.conf/060Dirs | 7 +++ .../clamav-unofficial-sigs.conf/065Backup | 1 + .../clamav-unofficial-sigs.conf/070Silence | 4 ++ .../clamav-unofficial-sigs.conf/075Log | 3 ++ .../clamav-unofficial-sigs.conf/080Proxy | 2 + .../099UserConfigComplete | 1 + smeserver-clamav-unofficial-sigs.spec | 52 ++++++++++++++++++++++ 37 files changed, 135 insertions(+) create mode 100644 createlinks create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/junk.ndb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/jurlbl.ndb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/mbl.ndb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/phish.ndb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/rogue.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/sanesecurity.ftm create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/scam.ndb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfo.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfobat.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfodos.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfoelf.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfohtml.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfooffice.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfopdf.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfosh.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/spamimg.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/status create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/type create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware.hdb create mode 100644 root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/015User create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/020Db create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/025Pid create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/030Reload create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/035Randomize create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/040Databases create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/045Frequencies create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/060Dirs create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/065Backup create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/070Silence create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/075Log create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/080Proxy create mode 100644 root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/099UserConfigComplete create mode 100644 smeserver-clamav-unofficial-sigs.spec diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..5507fc2 --- /dev/null +++ b/createlinks @@ -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)); diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/junk.ndb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/junk.ndb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/junk.ndb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/jurlbl.ndb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/jurlbl.ndb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/jurlbl.ndb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/mbl.ndb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/mbl.ndb new file mode 100644 index 0000000..f95e9a8 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/mbl.ndb @@ -0,0 +1 @@ +mbl diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/phish.ndb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/phish.ndb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/phish.ndb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/rogue.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/rogue.hdb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/rogue.hdb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/sanesecurity.ftm b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/sanesecurity.ftm new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/sanesecurity.ftm @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/scam.ndb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/scam.ndb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/scam.ndb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfo.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfo.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfo.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfobat.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfobat.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfobat.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfodos.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfodos.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfodos.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfoelf.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfoelf.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfoelf.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfohtml.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfohtml.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfohtml.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfooffice.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfooffice.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfooffice.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfopdf.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfopdf.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfopdf.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfosh.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfosh.hdb new file mode 100644 index 0000000..d581232 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/securiteinfosh.hdb @@ -0,0 +1 @@ +si diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/spamimg.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/spamimg.hdb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/spamimg.hdb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/status b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/type b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware.hdb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware.hdb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware.hdb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb new file mode 100644 index 0000000..1df28a2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb @@ -0,0 +1 @@ +ss diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path new file mode 100644 index 0000000..f76a2fe --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path @@ -0,0 +1,2 @@ +PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" +export PATH diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/015User b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/015User new file mode 100644 index 0000000..c8f5df0 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/015User @@ -0,0 +1,2 @@ +clam_user="clamav" +clam_group="clamav" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/020Db b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/020Db new file mode 100644 index 0000000..1d47656 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/020Db @@ -0,0 +1 @@ +clam_dbs="/var/clamav" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/025Pid b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/025Pid new file mode 100644 index 0000000..4a3365b --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/025Pid @@ -0,0 +1 @@ +clamd_pid="/service/clamd/supervise/pid" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/030Reload b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/030Reload new file mode 100644 index 0000000..8457cfc --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/030Reload @@ -0,0 +1,2 @@ +reload_dbs="yes +reload_opt="clamdscan --reload" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/035Randomize b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/035Randomize new file mode 100644 index 0000000..6c34049 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/035Randomize @@ -0,0 +1,4 @@ +enable_random="yes" +min_sleep_time="60" +max_sleep_time="600" + diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/040Databases b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/040Databases new file mode 100644 index 0000000..26de78d --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/040Databases @@ -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); +} +} diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/045Frequencies b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/045Frequencies new file mode 100644 index 0000000..1b35414 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/045Frequencies @@ -0,0 +1,2 @@ +si_update_hours="4" +mbl_update_hours="6" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/060Dirs b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/060Dirs new file mode 100644 index 0000000..d78e60f --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/060Dirs @@ -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 diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/065Backup b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/065Backup new file mode 100644 index 0000000..6176441 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/065Backup @@ -0,0 +1 @@ +keep_db_backup="no" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/070Silence b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/070Silence new file mode 100644 index 0000000..03418eb --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/070Silence @@ -0,0 +1,4 @@ +curl_silence="no" +rsync_silence="no" +gpg_silence="no" +comment_silence="no" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/075Log b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/075Log new file mode 100644 index 0000000..c477361 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/075Log @@ -0,0 +1,3 @@ +enable_logging="yes" +log_file_path="/var/log/clamav-unofficial-sigs" +log_file_name="clamav-unofficial-sigs.log" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/080Proxy b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/080Proxy new file mode 100644 index 0000000..db312b8 --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/080Proxy @@ -0,0 +1,2 @@ +rsync_proxy="" +curl_proxy="" diff --git a/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/099UserConfigComplete b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/099UserConfigComplete new file mode 100644 index 0000000..8ffc65f --- /dev/null +++ b/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/099UserConfigComplete @@ -0,0 +1 @@ +user_configuration_complete="yes" diff --git a/smeserver-clamav-unofficial-sigs.spec b/smeserver-clamav-unofficial-sigs.spec new file mode 100644 index 0000000..ea52dfa --- /dev/null +++ b/smeserver-clamav-unofficial-sigs.spec @@ -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 - 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 +