]>
Commit | Line | Data |
---|---|---|
c25cb074 PG |
1 | # TODO: |
2 | # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010968.html | |
9eaf0992 | 3 | Summary: OpenBSD's ftpd ported to Linux (with IPv6 support) |
1d552f7b | 4 | Summary(pl.UTF-8): Port ftpd z OpenBSD dla Linuksa (z obsługą IPv6) |
963e2124 | 5 | Name: ftpd-BSD |
298b26b0 | 6 | Version: 0.3.3 |
393fd2b8 | 7 | Release: 12 |
963e2124 | 8 | License: BSD-like |
9 | Group: Networking/Daemons | |
298b26b0 | 10 | Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz |
17e04a84 | 11 | # Source0-md5: db925235417c8699bb1eb8ca77811fc5 |
963e2124 | 12 | Source1: %{name}.inetd |
13 | Source2: %{name}.pamd | |
9eaf0992 | 14 | Source3: %{name}-ftpusers |
45670279 | 15 | Source4: ftpusers.tar.bz2 |
986677f4 | 16 | # Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16 |
2c794332 | 17 | Patch0: %{name}-anonuser.patch |
1e1c3cf7 | 18 | Patch1: %{name}-paths.patch |
331a52bd | 19 | Patch2: %{name}-username.patch |
298b26b0 | 20 | Patch3: %{name}-SA_LEN.patch |
5ecb4bd3 | 21 | Patch4: %{name}-no_libnsl.patch |
298b26b0 | 22 | URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD |
d0fc2967 | 23 | BuildRequires: libwrap-devel |
24 | BuildRequires: pam-devel | |
eaf4411f | 25 | BuildRequires: rpmbuild(macros) >= 1.268 |
963e2124 | 26 | Requires: inetdaemon |
536d4eab | 27 | Requires: pam >= 0.77.3 |
445a220a | 28 | Requires: rc-inetd |
11403463 | 29 | Provides: ftpserver |
11403463 | 30 | Obsoletes: anonftp |
0d95cd18 | 31 | Obsoletes: bftpd |
eaf4411f | 32 | Obsoletes: ftpserver |
6097a540 | 33 | Obsoletes: glftpd |
f663eb48 | 34 | Obsoletes: heimdal-ftpd |
393fd2b8 | 35 | Obsoletes: krb5-ftpd |
56dbe8db | 36 | Obsoletes: linux-ftpd |
11403463 | 37 | Obsoletes: muddleftpd |
0d95cd18 | 38 | Obsoletes: proftpd |
020b6cc1 JB |
39 | Obsoletes: proftpd-common |
40 | Obsoletes: proftpd-inetd | |
41 | Obsoletes: proftpd-standalone | |
0d95cd18 | 42 | Obsoletes: pure-ftpd |
773b7cf9 | 43 | Obsoletes: troll-ftpd |
11403463 | 44 | Obsoletes: vsftpd |
0d95cd18 | 45 | Obsoletes: wu-ftpd |
45670279 | 46 | Conflicts: man-pages < 1.51 |
eaf4411f | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
963e2124 | 48 | |
49 | %description | |
366a1a2e | 50 | This is a Linux port of the BSD FTP server (ftpd). It doesn't have all |
f7893e6b | 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). | |
963e2124 | 54 | |
5ecb4bd3 JB |
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 | |
50ebe324 | 60 | enable it - chmod /home/services/ftp/upload to 0730. |
963e2124 | 61 | |
3fa527b0 | 62 | %description -l pl.UTF-8 |
366a1a2e | 63 | Pakiet ten zawiera linuksowy port serwera FTP BSD (ftpd). Nie zawiera |
3fa527b0 JR |
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 | |
5ecb4bd3 | 68 | CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd |
3fa527b0 | 69 | to 6.5, zaś numer wersji tego portu to 0.3.2. |
5ecb4bd3 | 70 | |
3fa527b0 JR |
71 | Pakiet przychodzi z wyłączonym anonimowym uploadem. Jeśli naprawdę |
72 | chcesz go włączyć - zmień uprawnienia do /home/services/ftp/upload na | |
445a220a | 73 | 0730. |
48a88c42 | 74 | |
963e2124 | 75 | %prep |
298b26b0 | 76 | %setup -q -n ftpd-bsd-%{version} |
2c794332 | 77 | %patch0 -p1 |
1e1c3cf7 | 78 | %patch1 -p1 |
e99c4a95 | 79 | %patch2 -p1 |
fe758b67 | 80 | %patch3 -p1 |
c8eb4cc1 | 81 | %patch4 -p1 |
298b26b0 | 82 | |
963e2124 | 83 | %build |
298b26b0 | 84 | %{__make} OPT_CFLAGS="%{rpmcflags}" |
963e2124 | 85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
1e1c3cf7 JR |
88 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \ |
89 | $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \ | |
50ebe324 | 90 | $RPM_BUILD_ROOT/home/services/ftp/{upload,pub} |
963e2124 | 91 | |
298b26b0 | 92 | install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD |
93 | install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ | |
49b75143 | 94 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd |
95 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp | |
1e1c3cf7 | 96 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers |
963e2124 | 97 | |
45670279 | 98 | bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
99 | ||
5ecb4bd3 JB |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
963e2124 | 103 | %post |
eaf4411f | 104 | %service -q rc-inetd reload |
963e2124 | 105 | |
106 | %postun | |
eaf4411f ER |
107 | if [ "$1" = 0 ]; then |
108 | %service -q rc-inetd reload | |
b10e70e7 | 109 | fi |
963e2124 | 110 | |
963e2124 | 111 | %files |
112 | %defattr(644,root,root,755) | |
020b6cc1 | 113 | %doc README* |
963e2124 | 114 | %attr(755,root,root) %{_sbindir}/ftpd-BSD |
306bd0f9 | 115 | %dir %{_sysconfdir}/ftpd |
c49e2efb | 116 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp |
1e1c3cf7 | 117 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers |
ee7a5b94 | 118 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd |
50ebe324 TO |
119 | %dir /home/services/ftp |
120 | %dir /home/services/ftp/pub | |
121 | %attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload | |
1e1c3cf7 | 122 | %{_mandir}/man8/* |
45670279 | 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* |