]>
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 |
963e2124 | 11 | BuildRoot: /tmp/%{name}-%{version}-root |
12 | Requires: rc-inetd | |
13 | Requires: inetdaemon | |
14 | Requires: anonftp | |
15 | Provides: ftpserver | |
16 | ||
17 | %description | |
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). | |
22 | ||
9eaf0992 | 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. | |
963e2124 | 26 | |
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | make | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}} | |
36 | ||
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 | |
9eaf0992 | 41 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/ftpusers |
963e2124 | 42 | |
43 | gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/* | |
44 | ||
963e2124 | 45 | %post |
46 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
9eaf0992 | 47 | /etc/rc.d/init.d/rc-inetd reload 1>&2 |
963e2124 | 48 | else |
49 | echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2 | |
50 | fi | |
51 | ||
52 | %postun | |
53 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
9eaf0992 | 54 | /etc/rc.d/init.d/rc-inetd reload |
963e2124 | 55 | fi |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc README.gz | |
63 | %attr(755,root,root) %{_sbindir}/ftpd-BSD | |
64 | %attr(640,root,root) %{_mandir}/man8/* | |
8757d5f8 | 65 | %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp |
963e2124 | 66 | %attr(640,root,root) /etc/ftpusers |
67 | %attr(640,root,root) /etc/sysconfig/rc-inetd/ftp |