1 Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
2 Summary(pl): Port ftpd z OpenBSD dla Linuksa (z obs³ug± IPv6)
7 Group: Networking/Daemons
8 Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz
9 # Source0-md5: db925235417c8699bb1eb8ca77811fc5
10 Source1: %{name}.inetd
12 Source3: %{name}-ftpusers
13 Source4: ftpusers.tar.bz2
14 # Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16
15 Patch0: %{name}-anonuser.patch
16 Patch1: %{name}-paths.patch
17 Patch2: %{name}-username.patch
18 Patch3: %{name}-SA_LEN.patch
19 Patch4: %{name}-no_libnsl.patch
20 URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD
21 BuildRequires: libwrap-devel
22 BuildRequires: pam-devel
25 Requires: pam >= 0.77.3
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Obsoletes: heimdal-ftpd
35 Obsoletes: proftpd-common
36 Obsoletes: proftpd-inetd
37 Obsoletes: proftpd-standalone
42 Conflicts: man-pages < 1.51
45 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
46 the bells and whistles of wu-ftpd, but it is also probably less buggy
47 and more secure (at least, it was certainly so before I ported it, and
48 I hope I didn't mess things up *too* much).
50 The source code was taken from the OpenBSD CVS as of 2000/07/07 (this
51 is after release 2.7). The ftpd version number is 6.5 and this port's
52 version number is 0.3.2.
54 Package comes with anonymous upload disabled. If you really want to
55 enable it - chmod /home/services/ftp/upload to 0730.
58 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
59 on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
60 prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
61 razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
62 nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
63 CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd
64 to 6.5, za¶ numer wersji tego portu to 0.3.2.
66 Pakiet przychodzi z wy³±czonym anonimowym uploadem. Je¶li naprawdê
67 chcesz go w³±czyæ - zmieñ uprawnienia do /home/services/ftp/upload
71 %setup -q -n ftpd-bsd-%{version}
79 %{__make} OPT_CFLAGS="%{rpmcflags}"
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
84 $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \
85 $RPM_BUILD_ROOT/home/services/ftp/{upload,pub}
87 install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
88 install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
89 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
90 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
91 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers
93 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
96 rm -rf $RPM_BUILD_ROOT
99 if [ -f /var/lock/subsys/rc-inetd ]; then
100 /etc/rc.d/init.d/rc-inetd reload 1>&2
102 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
106 if [ -f /var/lock/subsys/rc-inetd ]; then
107 /etc/rc.d/init.d/rc-inetd reload
111 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_sbindir}/ftpd-BSD
114 %dir %{_sysconfdir}/ftpd
115 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp
116 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers
117 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd
118 %dir /home/services/ftp
119 %dir /home/services/ftp/pub
120 %attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload
122 %lang(ja) %{_mandir}/ja/man5/ftpusers*
123 %lang(pl) %{_mandir}/pl/man5/ftpusers*
124 %lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers*
125 %lang(ru) %{_mandir}/ru/man5/ftpusers*