]>
Commit | Line | Data |
---|---|---|
9eaf0992 | 1 | Summary: OpenBSD's ftpd ported to Linux (with IPv6 support) |
963e2124 | 2 | Name: ftpd-BSD |
9eaf0992 | 3 | Version: 0.3.0 |
963e2124 | 4 | Release: 1 |
5 | License: BSD-like | |
6 | Group: Networking/Daemons | |
8fab0a0a | 7 | Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/%{name}-%{version}.tar.gz |
963e2124 | 8 | Source1: %{name}.inetd |
9 | Source2: %{name}.pamd | |
9eaf0992 | 10 | Source3: %{name}-ftpusers |
f663eb48 | 11 | Buildrequires: libwrap-devel |
12 | Buildrequires: pam-devel | |
963e2124 | 13 | Requires: rc-inetd |
14 | Requires: inetdaemon | |
15 | Requires: anonftp | |
16 | Provides: ftpserver | |
f663eb48 | 17 | BuildRoot: /tmp/%{name}-%{version}-root |
18 | Obsoletes: wu-ftpd | |
19 | Obsoletes: proftpd | |
20 | Obsoletes: heimdal-ftpd | |
963e2124 | 21 | |
22 | %description | |
f663eb48 | 23 | This is a Linux port of the BSD ftp server (ftpd). It doesn't have all the |
24 | bells and whistles of wu-ftpd, but it is also probably less buggy and more | |
25 | secure (at least, it was certainly so before I ported it, and I hope I | |
26 | didn't mess things up *too* much). | |
963e2124 | 27 | |
f663eb48 | 28 | The source code was taken from the OpenBSD CVS as of 2000/01/23 (this is |
29 | between releases 2.6 and 2.7). The ftpd version number is 6.4 and this | |
30 | port's version number is 0.3.0. | |
963e2124 | 31 | |
32 | %prep | |
33 | %setup -q | |
34 | ||
35 | %build | |
36 | make | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}} | |
41 | ||
42 | install -s ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD | |
f663eb48 | 43 | install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ |
44 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd | |
963e2124 | 45 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp |
9eaf0992 | 46 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/ftpusers |
963e2124 | 47 | |
48 | gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/* | |
49 | ||
963e2124 | 50 | %post |
51 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
9eaf0992 | 52 | /etc/rc.d/init.d/rc-inetd reload 1>&2 |
963e2124 | 53 | else |
54 | echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2 | |
55 | fi | |
56 | ||
57 | %postun | |
58 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
9eaf0992 | 59 | /etc/rc.d/init.d/rc-inetd reload |
963e2124 | 60 | fi |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc README.gz | |
68 | %attr(755,root,root) %{_sbindir}/ftpd-BSD | |
69 | %attr(640,root,root) %{_mandir}/man8/* | |
8757d5f8 | 70 | %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp |
963e2124 | 71 | %attr(640,root,root) /etc/ftpusers |
f663eb48 | 72 | %attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd |