From ef19c772cf370346db56b033502b43b460e1c430 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 3 Jul 2012 22:12:11 +0200 Subject: [PATCH] Fix templates --- root/etc/e-smith/templates/etc/clamrt.list/00setup | 7 ++----- root/etc/e-smith/templates/etc/clamrt.list/10shares | 4 ---- root/etc/e-smith/templates/etc/clamrt.list/20ibays | 4 ---- .../templates/etc/clamrt.list/{30netlogon => 30dummy} | 2 +- smeserver-clamrt.spec | 8 ++------ 5 files changed, 5 insertions(+), 20 deletions(-) rename root/etc/e-smith/templates/etc/clamrt.list/{30netlogon => 30dummy} (61%) diff --git a/root/etc/e-smith/templates/etc/clamrt.list/00setup b/root/etc/e-smith/templates/etc/clamrt.list/00setup index cb86f2f..fd6925e 100644 --- a/root/etc/e-smith/templates/etc/clamrt.list/00setup +++ b/root/etc/e-smith/templates/etc/clamrt.list/00setup @@ -3,12 +3,9 @@ use esmith::AccountsDB; my $a = esmith::AccountsDB->open_ro || die "Couldn't open AccountsDB\n"; -my @ibays = $a->ibays(); -my @shares = $a->get_all_by_prop(type=>'share'); +@ibays = $a->ibays(); +@shares = $a->get_all_by_prop(type=>'share'); -<<<<<<< HEAD -======= $OUT .= ''; ->>>>>>> c99401afc73e86cc62d04be2dab94651b24af879 } diff --git a/root/etc/e-smith/templates/etc/clamrt.list/10shares b/root/etc/e-smith/templates/etc/clamrt.list/10shares index 7f6ad9a..b79775a 100644 --- a/root/etc/e-smith/templates/etc/clamrt.list/10shares +++ b/root/etc/e-smith/templates/etc/clamrt.list/10shares @@ -6,9 +6,5 @@ foreach my $share (@shares){ next unless ($av eq 'enabled'); $OUT .= "/home/e-smith/files/shares/$name/files\n"; } -<<<<<<< HEAD - -======= $OUT .= ''; ->>>>>>> c99401afc73e86cc62d04be2dab94651b24af879 } diff --git a/root/etc/e-smith/templates/etc/clamrt.list/20ibays b/root/etc/e-smith/templates/etc/clamrt.list/20ibays index 0d16d04..ac47154 100644 --- a/root/etc/e-smith/templates/etc/clamrt.list/20ibays +++ b/root/etc/e-smith/templates/etc/clamrt.list/20ibays @@ -6,9 +6,5 @@ foreach my $ibay (@ibays){ next unless ($av eq 'enabled'); $OUT .= "/home/e-smith/files/ibays/$name\n"; } -<<<<<<< HEAD - -======= $OUT .= ''; ->>>>>>> c99401afc73e86cc62d04be2dab94651b24af879 } diff --git a/root/etc/e-smith/templates/etc/clamrt.list/30netlogon b/root/etc/e-smith/templates/etc/clamrt.list/30dummy similarity index 61% rename from root/etc/e-smith/templates/etc/clamrt.list/30netlogon rename to root/etc/e-smith/templates/etc/clamrt.list/30dummy index c6642e5..1bf9dda 100644 --- a/root/etc/e-smith/templates/etc/clamrt.list/30netlogon +++ b/root/etc/e-smith/templates/etc/clamrt.list/30dummy @@ -1,4 +1,4 @@ { # Just a dummy rep so there's always a rep to watch } -/home/e-smith/files/samba/netlogon +/var/lib/clamrt diff --git a/smeserver-clamrt.spec b/smeserver-clamrt.spec index 2c169c6..6711fe0 100644 --- a/smeserver-clamrt.spec +++ b/smeserver-clamrt.spec @@ -2,14 +2,10 @@ # Name: Daniel B. Summary: On access AV scanner -<<<<<<< HEAD -%define name smeserver-webapps-common -======= %define name smeserver-clamrt ->>>>>>> c99401afc73e86cc62d04be2dab94651b24af879 Name: %{name} %define version 0.0.1 -%define release 1.beta0 +%define release 1.beta3 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -35,7 +31,7 @@ Provides on access AV scan for shares and ibays %build perl createlinks -%{__mkdir_p} root/var/log/clamrt +%{__mkdir_p} root/var/{log,lib}/clamrt %install /bin/rm -rf $RPM_BUILD_ROOT