%bcond_without tls # disable SSL/TLS support
%bcond_without cap # disable capabilities
#
+%define rel 1
Summary: Small, fast and secure FTP server
Summary(pl.UTF-8): Mały, szybki i bezpieczny serwer FTP
Name: pure-ftpd
-Version: 1.0.21
-Release: 5%{?with_extra:extra}
+Version: 1.0.30
+Release: %{rel}%{?with_extra:extra}
Epoch: 0
License: BSD-like%{?with_extra:, GLPv2 for pure-config due to libcfg+ license}
Group: Daemons
Source0: ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: ca8a8dbec0cd9c8ea92fc4c37ea9c410
+# Source0-md5: 865a9020dbe48d30913c796ac3ec1f32
Source1: %{name}.pamd
Source2: %{name}.init
Source3: %{name}.sysconfig
Patch1: %{name}-path_to_ssl_cert_in_config.patch
Patch2: %{name}-pure-pw_passwd.patch
Patch3: %{name}-mysql_config.patch
-Patch4: %{name}-nosymlinks-hideuidmismatch.patch
-Patch5: %{name}-auth-can-delete-pure.patch
+Patch4: %{name}-allauth.patch
+Patch5: %{name}-passwd_location.patch
+Patch6: %{name}-additionalgid.patch
+Patch7: audit_cap.patch
+Patch8: %{name}-mysql.patch
URL: http://www.pureftpd.org/
%{?with_extra:BuildRequires: autoconf}
%{?with_extra:BuildRequires: automake}
%{!?with_extra:Requires: perl-base}
Requires: rc-scripts
Provides: ftpserver
-Obsoletes: anonftp
-Obsoletes: bftpd
-Obsoletes: ftpd-BSD
-Obsoletes: ftpserver
-Obsoletes: glftpd
-Obsoletes: heimdal-ftpd
-Obsoletes: krb5-ftpd
-Obsoletes: linux-ftpd
-Obsoletes: muddleftpd
-Obsoletes: proftpd
-Obsoletes: proftpd-common
-Obsoletes: proftpd-inetd
-Obsoletes: proftpd-standalone
-Obsoletes: troll-ftpd
-Obsoletes: vsftpd
-Obsoletes: wu-ftpd
Conflicts: man-pages < 1.51
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Group: Networking/Daemons
Requires(post,postun): sed >= 4.0
Requires: openldap-servers
-Requires: sed >= 4.0
+Requires: sed >= 4.0
%description -n openldap-schema-pureftpd
This package contains an Pure-FTPd openldap schema.
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+
%{?with_extra:%patch1 -p1}
%{?with_extra:%patch2 -p1}
%build
-# drop --without-cork for Th
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
%configure \
- --without-cork \
+ CFLAGS="%{rpmcflags} %{rpmcppflags} -DALLOW_DELETION_OF_TEMPORARY_FILES=1 -DALWAYS_SHOW_RESOLVED_SYMLINKS=1" \
--with-boring \
--with-altlog \
--with-cookie \
--with-extauth \
--with-ftpwho \
--with-language=english \
- --with-largefile \
%{!?with_cap:--without-capabilities} \
%{?with_ldap:--with-ldap} \
%{?with_mysql:CPPFLAGS="-I%{_includedir}/mysql" --with-mysql} \
%{!?with_extra:install configuration-file/pure-config.pl $RPM_BUILD_ROOT%{_sbindir}}
install pureftpd.schema $RPM_BUILD_ROOT%{schemadir}/pureftpd.schema
-touch $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers
+touch $RPM_BUILD_ROOT%{_sysconfdir}/{ftpusers,pureftpd-dir-aliases}
ln -s vhosts $RPM_BUILD_ROOT%{_sysconfdir}/pure-ftpd
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpusers
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pureftpd-dir-aliases
%{?with_ldap:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pureftpd-ldap.conf}
%{?with_mysql:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pureftpd-mysql.conf}
%{?with_pgsql:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pureftpd-pgsql.conf}