From 86dc1cff9c5beff164664feb24b90aac363dfb9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 15 Sep 2010 12:05:07 +0000 Subject: [PATCH] - added example config for mod_clamav Changed files: proftpd-mod_clamav.conf -> 1.1 proftpd.spec -> 1.273 --- proftpd-mod_clamav.conf | 14 ++++++++++++++ proftpd.spec | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 proftpd-mod_clamav.conf diff --git a/proftpd-mod_clamav.conf b/proftpd-mod_clamav.conf new file mode 100644 index 0000000..368f70c --- /dev/null +++ b/proftpd-mod_clamav.conf @@ -0,0 +1,14 @@ +# Single system with both ProFTPd and Clamd utilizing Unix local sockets. +# +# ClamAV on +# ClamLocalSocket /tmp/clamd +# + +# Single system with both ProFTPd and Clamd utilizing TCP sockets. +# Additionally, only files who's size is less than 250MB will be scanned. +# +# ClamAV on +# ClamServer localhost +# ClamPort 3310 +# ClamMaxSize 250 Mb +# diff --git a/proftpd.spec b/proftpd.spec index 58f5288..1762546 100644 --- a/proftpd.spec +++ b/proftpd.spec @@ -41,6 +41,7 @@ Source7: ftpusers.tar.bz2 Source9: %{name}-mod_pam.conf Source10: %{name}-mod_tls.conf Source11: %{name}-anonftp.conf +Source12: %{name}-mod_clamav.conf Patch0: %{name}-paths.patch Patch1: %{name}-noautopriv.patch Patch2: %{name}-wtmp.patch @@ -533,6 +534,7 @@ for module in $MODULES; do done install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/mod_tls.conf install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/anonftp.conf +install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/mod_clamav.conf %{?with_pam:install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/ftp} install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd @@ -648,6 +650,7 @@ fi %dir %attr(750,root,root) %{_sysconfdir}/conf.d %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_auth_file.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_ident.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mod_clamav.conf #%attr(640,root,root) %ghost /var/log/* %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/* -- 2.44.0