+# TODO:
+# - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010968.html
Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
Summary(pl): Port ftpd z OpenBSD dla Linuksa (z obs³ug± IPv6)
Name: ftpd-BSD
Version: 0.3.3
-Release: 8
+Release: 11
License: BSD-like
Group: Networking/Daemons
Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz
+# Source0-md5: db925235417c8699bb1eb8ca77811fc5
Source1: %{name}.inetd
Source2: %{name}.pamd
Source3: %{name}-ftpusers
Source4: ftpusers.tar.bz2
+# Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16
Patch0: %{name}-anonuser.patch
Patch1: %{name}-paths.patch
Patch2: %{name}-username.patch
Patch3: %{name}-SA_LEN.patch
Patch4: %{name}-no_libnsl.patch
URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD
-Buildrequires: libwrap-devel
-Buildrequires: pam-devel
-Requires: rc-inetd
+BuildRequires: libwrap-devel
+BuildRequires: pam-devel
Requires: inetdaemon
+Requires: pam >= 0.77.3
+Requires: rc-inetd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Provides: ftpserver
Obsoletes: ftpserver
Obsoletes: anonftp
Obsoletes: bftpd
+Obsoletes: glftpd
Obsoletes: heimdal-ftpd
Obsoletes: linux-ftpd
Obsoletes: muddleftpd
Conflicts: man-pages < 1.51
%description
-This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
+This is a Linux port of the BSD FTP server (ftpd). It doesn't have all
the bells and whistles of wu-ftpd, but it is also probably less buggy
and more secure (at least, it was certainly so before I ported it, and
I hope I didn't mess things up *too* much).
version number is 0.3.2.
Package comes with anonymous upload disabled. If you really want to
-enable it - chmod /home/ftp/upload to 0730.
+enable it - chmod /home/services/ftp/upload to 0730.
%description -l pl
-Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
+Pakiet ten zawiera linuksowy port serwera FTP BSD (ftpd). Nie zawiera
on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
-prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
+prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w ka¿dym
razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd
to 6.5, za¶ numer wersji tego portu to 0.3.2.
Pakiet przychodzi z wy³±czonym anonimowym uploadem. Je¶li naprawdê
-chcesz go w³±czyæ - zmieñ uprawnienia do /home/ftp/upload na 0730.
+chcesz go w³±czyæ - zmieñ uprawnienia do /home/services/ftp/upload na
+0730.
%prep
%setup -q -n ftpd-bsd-%{version}
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
$RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \
- $RPM_BUILD_ROOT/home/ftp/{upload,pub}
+ $RPM_BUILD_ROOT/home/services/ftp/{upload,pub}
install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
%doc README*
%attr(755,root,root) %{_sbindir}/ftpd-BSD
%dir %{_sysconfdir}/ftpd
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pam.d/ftp
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd
-%dir /home/ftp
-%dir /home/ftp/pub
-%attr(700,root,ftp) %verify(not mode) %dir /home/ftp/upload
+%dir /home/services/ftp
+%dir /home/services/ftp/pub
+%attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload
%{_mandir}/man8/*
%lang(ja) %{_mandir}/ja/man5/ftpusers*
%lang(pl) %{_mandir}/pl/man5/ftpusers*