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 Buildrequires: libwrap-devel
13 Buildrequires: pam-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Obsoletes: heimdal-ftpd
24 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all the
25 bells and whistles of wu-ftpd, but it is also probably less buggy and more
26 secure (at least, it was certainly so before I ported it, and I hope I
27 didn't mess things up *too* much).
29 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this is
30 between releases 2.6 and 2.7). The ftpd version number is 6.4 and this
31 port's version number is 0.3.0.
34 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera on
35 wszystkich wymy¶lnych elementów wu-ftpd, jest jednak prawdopodobniej mniej
36 zapluskwiony i bardziej bezpieczny (w kazdym razie by³ takim zanim go
37 przenios³em na Linuksa, i mam nadziejê, ¿e nie naba³agani³em *za bardzo*).
38 Kod ¼ród³owy pochodzi z repozytorium CVS OpenBSD z dnia 2000/01/23 (tj.
39 miêdzy wersj± 2.6 a 2.7). Numer wersji ftpd to 6.4, za¶ numer wersji tego
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
52 install -s ftpd/ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
53 install ftpd/ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
54 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
55 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
56 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers
58 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
61 if [ -f /var/lock/subsys/rc-inetd ]; then
62 /etc/rc.d/init.d/rc-inetd reload 1>&2
64 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
68 if [ -f /var/lock/subsys/rc-inetd ]; then
69 /etc/rc.d/init.d/rc-inetd reload
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_sbindir}/ftpd-BSD
79 %attr(640,root,root) %{_mandir}/man8/*
80 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp
81 %attr(640,root,root) %{_sysconfdir}/ftpusers
82 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd