]> git.pld-linux.org Git - packages/proftpd.git/commitdiff
- added example config for mod_clamav
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 15 Sep 2010 12:05:07 +0000 (12:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    proftpd-mod_clamav.conf -> 1.1
    proftpd.spec -> 1.273

proftpd-mod_clamav.conf [new file with mode: 0644]
proftpd.spec

diff --git a/proftpd-mod_clamav.conf b/proftpd-mod_clamav.conf
new file mode 100644 (file)
index 0000000..368f70c
--- /dev/null
@@ -0,0 +1,14 @@
+# Single system with both ProFTPd and Clamd utilizing Unix local sockets.
+#<IfModule mod_clamav.c>
+#      ClamAV on
+#      ClamLocalSocket /tmp/clamd
+#</IfModule>
+
+# Single system with both ProFTPd and Clamd utilizing TCP sockets.
+# Additionally, only files who's size is less than 250MB will be scanned.
+#<IfModule mod_clamav.c>
+#      ClamAV on
+#      ClamServer localhost
+#      ClamPort 3310
+#      ClamMaxSize 250 Mb
+#</IfModule>
index 58f52881209873a075fd34ad17815b6bcd5b43b9..1762546b5aaebb5ca72e2985c621a257f489e6f7 100644 (file)
@@ -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}/*
This page took 0.163583 seconds and 4 git commands to generate.