1 Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
6 Group: Networking/Daemons
7 Group(pl): Sieciowe/Serwery
8 Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/%{name}-%{version}.tar.gz
11 Source3: %{name}-ftpusers
12 Patch0: %{name}-anonuser.patch
13 Buildrequires: libwrap-devel
14 Buildrequires: pam-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes: heimdal-ftpd
26 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
27 the bells and whistles of wu-ftpd, but it is also probably less buggy
28 and more secure (at least, it was certainly so before I ported it, and
29 I hope I didn't mess things up *too* much).
31 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this
32 is between releases 2.6 and 2.7). The ftpd version number is 6.4 and
33 this port's version number is 0.3.0.
36 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
37 on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
38 prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
39 razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
40 nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
41 CVS OpenBSD z dnia 2000/01/23 (tj. miêdzy wersj± 2.6 a 2.7). Numer
42 wersji ftpd to 6.4, za¶ numer wersji tego portu to 0.3.0.
49 %{__make} -C ftpd OPT_CFLAGS="$RPM_OPT_FLAGS"
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
55 install -s ftpd/ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
56 install ftpd/ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
57 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
58 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
59 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers
61 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
64 if [ -f /var/lock/subsys/rc-inetd ]; then
65 /etc/rc.d/init.d/rc-inetd reload 1>&2
67 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
71 if [ -f /var/lock/subsys/rc-inetd ]; then
72 /etc/rc.d/init.d/rc-inetd reload
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_sbindir}/ftpd-BSD
82 %attr(640,root,root) %{_mandir}/man8/*
83 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp
84 %attr(640,root,root) %{_sysconfdir}/ftpusers
85 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd