]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010968.html | |
3 | Summary: OpenBSD's ftpd ported to Linux (with IPv6 support) | |
4 | Summary(pl.UTF-8): Port ftpd z OpenBSD dla Linuksa (z obsługą IPv6) | |
5 | Name: ftpd-BSD | |
6 | Version: 0.3.3 | |
7 | Release: 12 | |
8 | License: BSD-like | |
9 | Group: Networking/Daemons | |
10 | Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: db925235417c8699bb1eb8ca77811fc5 | |
12 | Source1: %{name}.inetd | |
13 | Source2: %{name}.pamd | |
14 | Source3: %{name}-ftpusers | |
15 | Source4: ftpusers.tar.bz2 | |
16 | # Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16 | |
17 | Patch0: %{name}-anonuser.patch | |
18 | Patch1: %{name}-paths.patch | |
19 | Patch2: %{name}-username.patch | |
20 | Patch3: %{name}-SA_LEN.patch | |
21 | Patch4: %{name}-no_libnsl.patch | |
22 | URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD | |
23 | BuildRequires: libwrap-devel | |
24 | BuildRequires: pam-devel | |
25 | BuildRequires: rpmbuild(macros) >= 1.268 | |
26 | Requires: inetdaemon | |
27 | Requires: pam >= 0.77.3 | |
28 | Requires: rc-inetd | |
29 | Provides: ftpserver | |
30 | Obsoletes: anonftp | |
31 | Obsoletes: bftpd | |
32 | Obsoletes: ftpserver | |
33 | Obsoletes: glftpd | |
34 | Obsoletes: heimdal-ftpd | |
35 | Obsoletes: krb5-ftpd | |
36 | Obsoletes: linux-ftpd | |
37 | Obsoletes: muddleftpd | |
38 | Obsoletes: proftpd | |
39 | Obsoletes: proftpd-common | |
40 | Obsoletes: proftpd-inetd | |
41 | Obsoletes: proftpd-standalone | |
42 | Obsoletes: pure-ftpd | |
43 | Obsoletes: troll-ftpd | |
44 | Obsoletes: vsftpd | |
45 | Obsoletes: wu-ftpd | |
46 | Conflicts: man-pages < 1.51 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | This is a Linux port of the BSD FTP server (ftpd). It doesn't have all | |
51 | the bells and whistles of wu-ftpd, but it is also probably less buggy | |
52 | and more secure (at least, it was certainly so before I ported it, and | |
53 | I hope I didn't mess things up *too* much). | |
54 | ||
55 | The source code was taken from the OpenBSD CVS as of 2000/07/07 (this | |
56 | is after release 2.7). The ftpd version number is 6.5 and this port's | |
57 | version number is 0.3.2. | |
58 | ||
59 | Package comes with anonymous upload disabled. If you really want to | |
60 | enable it - chmod /home/services/ftp/upload to 0730. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Pakiet ten zawiera linuksowy port serwera FTP BSD (ftpd). Nie zawiera | |
64 | on wszystkich wymyślnych elementów wu-ftpd, jest jednak | |
65 | prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w każdym | |
66 | razie był takim zanim go przeniosłem na Linuksa, i mam nadzieję, że | |
67 | nie nabałaganiłem *za bardzo*). Kod źródłowy pochodzi z repozytorium | |
68 | CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd | |
69 | to 6.5, zaś numer wersji tego portu to 0.3.2. | |
70 | ||
71 | Pakiet przychodzi z wyłączonym anonimowym uploadem. Jeśli naprawdę | |
72 | chcesz go włączyć - zmień uprawnienia do /home/services/ftp/upload na | |
73 | 0730. | |
74 | ||
75 | %prep | |
76 | %setup -q -n ftpd-bsd-%{version} | |
77 | %patch0 -p1 | |
78 | %patch1 -p1 | |
79 | %patch2 -p1 | |
80 | %patch3 -p1 | |
81 | %patch4 -p1 | |
82 | ||
83 | %build | |
84 | %{__make} OPT_CFLAGS="%{rpmcflags}" | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \ | |
89 | $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \ | |
90 | $RPM_BUILD_ROOT/home/services/ftp/{upload,pub} | |
91 | ||
92 | install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD | |
93 | install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ | |
94 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd | |
95 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp | |
96 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers | |
97 | ||
98 | bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post | |
104 | %service -q rc-inetd reload | |
105 | ||
106 | %postun | |
107 | if [ "$1" = 0 ]; then | |
108 | %service -q rc-inetd reload | |
109 | fi | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc README* | |
114 | %attr(755,root,root) %{_sbindir}/ftpd-BSD | |
115 | %dir %{_sysconfdir}/ftpd | |
116 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp | |
117 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers | |
118 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd | |
119 | %dir /home/services/ftp | |
120 | %dir /home/services/ftp/pub | |
121 | %attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload | |
122 | %{_mandir}/man8/* | |
123 | %lang(ja) %{_mandir}/ja/man5/ftpusers* | |
124 | %lang(pl) %{_mandir}/pl/man5/ftpusers* | |
125 | %lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers* | |
126 | %lang(ru) %{_mandir}/ru/man5/ftpusers* |