Summary(pl): Ma³y, szybki i bezpieczny serwer FTP
Name: pure-ftpd
Version: 1.0.20
-Release: 3%{?with_extra:extra}
+Release: 6%{?with_extra:extra}
Epoch: 0
License: BSD-like%{?with_extra:, GLPv2 for pure-config due to libcfg+ license}
Group: Daemons
Source2: %{name}.init
Source3: ftpusers.tar.bz2
# Source3-md5: 76c80b6ec9f4d079a1e27316edddbe16
-Source4: ftp://distfiles.pld-linux.org/src/pure-config-20041106.tar.gz
-# Source4-md5: a9e40fa1eabde41f8599133da2d92b18
+Source4: http://twittner.host.sk/files/pure-config/pure-config-20041201.tar.gz
+# Source4-md5: 3f2ff6b00b5c38ee11ce588ee5af6cf6
Patch0: %{name}-config.patch
Patch1: %{name}-path_to_ssl_cert_in_config.patch
Patch2: %{name}-pure-pw_passwd.patch
Patch3: %{name}-userlength.patch
Patch4: %{name}-mysql_config.patch
+Patch5: %{name}-nosymlinks-hideuidmismatch.patch
URL: http://www.pureftpd.org/
%{?with_extra:BuildRequires: autoconf}
%{?with_extra:BuildRequires: automake}
%{?with_tls:BuildRequires: openssl-devel}
BuildRequires: pam-devel
PreReq: rc-scripts
-Requires(post,preun):/sbin/chkconfig
-Requires: pam >= 0.77.3
+Requires(post,preun): /sbin/chkconfig
+Requires: pam >= 0.79.0
%{!?with_extra:Requires: perl-base}
Provides: ftpserver
Obsoletes: ftpserver
po³±czeñ...
%prep
-%setup -q
%setup -q -a 4
%patch0 -p0
-%patch4 -p0
+%patch4 -p1
+%patch5 -p1
%{?with_longusername:%patch3 -p1}
%{?with_extra:%patch1 -p1}
%{?with_extra:%patch2 -p1}
-
%build
%configure \
--with-boring \
%{?with_tls:--with-tls --with-certfile=%{_sharedstatedir}/openssl/certs/ftpd.pem} \
--with-uploadscript \
--with-virtualchroot \
- --with-virtualhosts
+ --with-virtualhosts
%if %{with extra}
cd pure-config
%configure
%{__make}
%endif
-
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{pam.d,sysconfig,security,rc.d/init.d} \