1 Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
2 Summary(pl): Port ftpd z OpenBSD dla Linuxa (z wsparciem do IPv6)
7 Group: Networking/Daemons
8 Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz
11 Source3: %{name}-ftpusers
12 Patch0: %{name}-anonuser.patch
13 Patch1: %{name}-paths.patch
14 Patch2: %{name}-username.patch
15 Patch3: %{name}-SA_LEN.patch
16 Patch4: %{name}-no_libnsl.patch
17 URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD
18 Buildrequires: libwrap-devel
19 Buildrequires: pam-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Obsoletes: heimdal-ftpd
33 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
34 the bells and whistles of wu-ftpd, but it is also probably less buggy
35 and more secure (at least, it was certainly so before I ported it, and
36 I hope I didn't mess things up *too* much).
38 The source code was taken from the OpenBSD CVS as of 2000/07/07 (this
39 is after release 2.7). The ftpd version number is 6.5 and this port's
40 version number is 0.3.2.
42 Package comes with anonymous upload disabled. If you really want to
43 enable it - chmod /home/ftp/upload to 0730.
46 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
47 on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
48 prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
49 razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
50 nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
51 CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd
52 to 6.5, za¶ numer wersji tego portu to 0.3.2.
54 Pakiet przychodzi z wy³±czonym anonimowym uploadem. Je¶li naprawdê
55 chcesz go w³±czyæ - zmieñ uprawnienia do /home/ftp/upload na 0730.
58 %setup -q -n ftpd-bsd-%{version}
66 %{__make} OPT_CFLAGS="%{rpmcflags}"
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
71 $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \
72 $RPM_BUILD_ROOT/home/ftp/{upload,pub}
74 install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
75 install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
76 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
77 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
78 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers
83 rm -rf $RPM_BUILD_ROOT
86 if [ -f /var/lock/subsys/rc-inetd ]; then
87 /etc/rc.d/init.d/rc-inetd reload 1>&2
89 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
93 if [ -f /var/lock/subsys/rc-inetd ]; then
94 /etc/rc.d/init.d/rc-inetd reload
98 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_sbindir}/ftpd-BSD
101 %dir %{_sysconfdir}/ftpd
102 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pam.d/ftp
103 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers
104 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysconfig/rc-inetd/ftpd
107 %attr(700,root,ftp) %verify(not mode) %dir /home/ftp/upload