1 Summary: OpenBSD's ftpd ported to Linux
6 Group: Networking/Daemons
7 Source0: %{name}-%{version}.tar.gz
10 BuildRoot: /tmp/%{name}-%{version}-root
17 This is a Linux port of the BSD ftp server (ftpd). It doesn't have
18 all the bells and whistles of wu-ftpd, but it is also probably less
19 buggy and more secure (at least, it was certainly so before I ported
20 it, and I hope I didn't mess things up *too* much).
22 The source code was taken from the OpenBSD 2.6 distribution. The ftpd
23 version number is 6.4 and this port's version number is 0.2.3.
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
35 install -s ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
36 install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ftpd-BSD.8
37 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftp
38 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
40 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
42 cat << EOF >$RPM_BUILD_ROOT/etc/ftpusers
60 if [ -f /var/lock/subsys/rc-inetd ]; then
61 /etc/rc.d/init.d/rc-inetd restart 1>&2
63 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
67 if [ -f /var/lock/subsys/rc-inetd ]; then
68 /etc/rc.d/init.d/rc-inetd restart
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_sbindir}/ftpd-BSD
78 %attr(640,root,root) %{_mandir}/man8/*
79 %attr(640,root,root) /etc/pam.d/ftp
80 %attr(640,root,root) /etc/ftpusers
81 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftp