Projects
Kolab:3.4
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 145
View file
pykolab.spec
Changed
@@ -38,6 +38,8 @@ Patch4: remove-plugin-threading_as_default.patch Patch5: deliver-to-shared-folders-with-spaces.patch Patch6: fix_kolabsaslauthd_centos7.patch +Patch7: fix_run_kolabd_centos7.patch +Patch8: fix_clamd_sock_centos7.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch @@ -206,6 +208,8 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 +%patch8 -p1 %build autoreconf -v @@ -529,6 +533,10 @@ %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace %changelog +* Fri Feb 20 2015 Timotheus Pokorra (TBits.net) <tp@tbits.net> +- more fixes for CentOS7, fix path for /run/kolabd, fixing #2626 +- and fixing path for clamd.sock, #3565 + * Thu Feb 19 2015 Timotheus Pokorra (TBits.net) <tp@tbits.net> - fix for CentOS7, fix path for kolab-saslauthd, fixing #4628
View file
fix_clamd_sock_centos7.patch
Added
@@ -0,0 +1,54 @@ +From e43e509c773c7f69ab4c479c708d20aae0cf063d Mon Sep 17 00:00:00 2001 +From: Timotheus Pokorra <tp@tbits.net> +Date: Thu, 19 Feb 2015 13:38:54 +0100 +Subject: [PATCH 2/2] CentOS7: make sure we are using the correct path for the + clamd.sock (#3565) reading from + /etc/clamd.d/amavisd.conf, otherwise defaulting to + /var/spool/amavisd/clamd.sock which was previously used + +--- + pykolab/setup/setup_mta.py | 7 +++++++ + share/templates/amavisd.conf.tpl | 2 +- + 2 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py +index 0cd9c33..56109fe 100644 +--- a/pykolab/setup/setup_mta.py ++++ b/pykolab/setup/setup_mta.py +@@ -363,6 +363,7 @@ result_format = "shared+%%s" + 'primary_domain': conf.get('kolab', 'primary_domain'), + 'ldap_filter': "(|(mail=%m)(alias=%m))", + 'ldap_base_dn': conf.get('ldap', 'base_dn'), ++ 'clamdsock': '/var/spool/amavisd/clamd.sock', + } + + template_file = None +@@ -381,6 +382,12 @@ result_format = "shared+%%s" + template_definition = fp.read() + fp.close() + ++ if os.path.isfile('/etc/clamd.d/amavisd.conf'): ++ amavisdconf_content = file('/etc/clamd.d/amavisd.conf') ++ for line in amavisdconf_content: ++ if line.startswith('LocalSocket'): ++ amavisd_settings['clamdsock'] = line[len('LocalSocket '):].strip() ++ + t = Template(template_definition, searchList=[amavisd_settings]) + + fp = None +diff --git a/share/templates/amavisd.conf.tpl b/share/templates/amavisd.conf.tpl +index 12fb4ed..1fa43fb 100644 +--- a/share/templates/amavisd.conf.tpl ++++ b/share/templates/amavisd.conf.tpl +@@ -373,7 +373,7 @@ use strict; + + # \#\## http://www.clamav.net/ + ['ClamAV-clamd', +- \&ask_daemon, ["CONTSCAN {}\n", "/var/spool/amavisd/clamd.sock"], ++ \&ask_daemon, ["CONTSCAN {}\n", "$clamdsock"], + qr/\bOK\$/m, qr/\bFOUND\$/m, + qr/^.*?: (?!Infected Archive)(.*) FOUND\$/m ], + # # NOTE: run clamd under the same user as amavisd, or run it under its own +-- +1.7.9.5 +
View file
fix_run_kolabd_centos7.patch
Added
@@ -0,0 +1,23 @@ +From ae9894cee0f8b85978d6b96d57d0a006d2c975ae Mon Sep 17 00:00:00 2001 +From: Timotheus Pokorra <tp@tbits.net> +Date: Fri, 20 Feb 2015 07:15:23 +0100 +Subject: [PATCH 1/2] CentOS7 systemd: need to adjust the + kolabd.tmpfiles.d.conf as well (#2626) that was + pointing still to /var/run/kolabd instead of + /run/kolabd as in the spec file + +--- + kolabd/kolabd.tmpfiles.d.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kolabd/kolabd.tmpfiles.d.conf b/kolabd/kolabd.tmpfiles.d.conf +index ce98b6e..abea15c 100644 +--- a/kolabd/kolabd.tmpfiles.d.conf ++++ b/kolabd/kolabd.tmpfiles.d.conf +@@ -1,2 +1,2 @@ +-d /var/run/kolabd 750 kolab kolab ++d /run/kolabd 750 kolab kolab + +-- +1.7.9.5 +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.