+# TODO:
+# - default config does not work with inetd configuration
#
+# Conditional build:
+%bcond_with clamav #ClamAV scanning support
+
%define _ftpdir /home/services/ftp
-#
Summary: vsftpd - Very Secure FTP Daemon
Summary(pl.UTF-8): Bardzo Bezpieczny Demon FTP
Summary(pt_BR.UTF-8): vsftpd - Daemon FTP Muito Seguro
Name: vsftpd
-Version: 2.1.0
+Version: 2.3.4
Release: 1
License: GPL v2
Group: Daemons
Source0: ftp://vsftpd.beasts.org/users/cevans/%{name}-%{version}.tar.gz
-# Source0-md5: 7890b54e7ffa6106ffbdfda53f47fa41
+# Source0-md5: 2ea5d19978710527bb7444d93b67767a
Source1: %{name}.inetd
Source2: %{name}.pamd
Source3: %{name}-ftpusers
Source5: %{name}.init
Patch0: %{name}-builddefs.patch
Patch1: %{name}-amd64-findlibs.patch
+Patch2: %{name}-clamav.patch
+Patch3: %{name}-switch_sha256_to_sha1.patch
URL: http://vsftpd.beasts.org/
BuildRequires: libcap-devel
BuildRequires: libwrap-devel
+%if "%{pld_release}" == "ac"
BuildRequires: openssl-devel >= 0.9.7d
+%else
+BuildRequires: openssl-devel >= 0.9.8
+%endif
BuildRequires: rpmbuild(macros) >= 1.268
Requires: %{name}-init = %{version}-%{release}
Requires: filesystem >= 3.0-11
%setup -q
%patch0 -p1
%patch1 -p1
+%if %{with clamav}
+%patch2 -p1
+%endif
+%if "%{pld_release}" == "ac"
+%patch3 -p1
+%endif
%build
%{__make} \