]>
Commit | Line | Data |
---|---|---|
963e2124 | 1 | Summary: OpenBSD's ftpd ported to Linux |
2 | Name: ftpd-BSD | |
3 | Version: 0.2.3 | |
4 | Release: 1 | |
5 | License: BSD-like | |
6 | Group: Networking/Daemons | |
7 | Source0: %{name}-%{version}.tar.gz | |
8 | Source1: %{name}.inetd | |
9 | Source2: %{name}.pamd | |
10 | BuildRoot: /tmp/%{name}-%{version}-root | |
11 | Requires: rc-inetd | |
12 | Requires: inetdaemon | |
13 | Requires: anonftp | |
14 | Provides: ftpserver | |
15 | ||
16 | %description | |
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). | |
21 | ||
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. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
27 | ||
28 | %build | |
29 | make | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}} | |
34 | ||
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 | |
39 | ||
40 | gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/* | |
41 | ||
42 | cat << EOF >$RPM_BUILD_ROOT/etc/ftpusers | |
43 | root | |
44 | bin | |
45 | daemon | |
46 | adm | |
47 | lp | |
48 | sync | |
49 | shutdown | |
50 | halt | |
51 | ||
52 | news | |
53 | uucp | |
54 | operator | |
55 | games | |
56 | nobody | |
57 | EOF | |
58 | ||
59 | %post | |
60 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
61 | /etc/rc.d/init.d/rc-inetd restart 1>&2 | |
62 | else | |
63 | echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2 | |
64 | fi | |
65 | ||
66 | %postun | |
67 | if [ -f /var/lock/subsys/rc-inetd ]; then | |
68 | /etc/rc.d/init.d/rc-inetd restart | |
69 | fi | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc README.gz | |
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 |