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