1 Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
6 Group: Networking/Daemons
7 Source0: %{name}-%{version}.tar.gz
10 Source3: %{name}-ftpusers
11 BuildRoot: /tmp/%{name}-%{version}-root
18 This is a Linux port of the BSD ftp server (ftpd). It doesn't have
19 all the bells and whistles of wu-ftpd, but it is also probably less
20 buggy and more secure (at least, it was certainly so before I ported
21 it, and I hope I didn't mess things up *too* much).
23 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this
24 is between releases 2.6 and 2.7). The ftpd version number is 6.4 and
25 this port's version number is 0.3.0.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
37 install -s ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
38 install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ftpd-BSD.8
39 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftp
40 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
41 install %{SOURCE3} $RPM_BUILD_ROOT/etc/ftpusers
43 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
46 if [ -f /var/lock/subsys/rc-inetd ]; then
47 /etc/rc.d/init.d/rc-inetd reload 1>&2
49 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
53 if [ -f /var/lock/subsys/rc-inetd ]; then
54 /etc/rc.d/init.d/rc-inetd reload
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_sbindir}/ftpd-BSD
64 %attr(640,root,root) %{_mandir}/man8/*
65 %attr(640,root,root) /etc/pam.d/ftp
66 %attr(640,root,root) /etc/ftpusers
67 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftp