]>
Commit | Line | Data |
---|---|---|
3407f537 PS |
1 | # |
2 | %define _ftpdir /home/services/ftp | |
3 | # | |
e4c107c6 | 4 | Summary: vsftpd - Very Secure FTP Daemon |
7177ff83 JR |
5 | Summary(pl.UTF-8): Bardzo Bezpieczny Demon FTP |
6 | Summary(pt_BR.UTF-8): vsftpd - Daemon FTP Muito Seguro | |
e4c107c6 | 7 | Name: vsftpd |
0ecfbe84 | 8 | Version: 2.0.5 |
fe964f4b | 9 | Release: 2 |
e4c107c6 JB |
10 | License: GPL v2 |
11 | Group: Daemons | |
2cfdc4fa | 12 | Source0: ftp://vsftpd.beasts.org/users/cevans/%{name}-%{version}.tar.gz |
0ecfbe84 | 13 | # Source0-md5: 146062e8b2f93af43ff6c2c770feea94 |
e4c107c6 JB |
14 | Source1: %{name}.inetd |
15 | Source2: %{name}.pamd | |
16 | Source3: %{name}-ftpusers | |
f4fb5732 | 17 | Source4: ftpusers.tar.bz2 |
7d5d375b | 18 | # Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16 |
6b1fc9c5 | 19 | Source5: %{name}.init |
a65fc8bc | 20 | Patch0: %{name}-builddefs.patch |
f62c9387 | 21 | Patch1: %{name}-amd64-findlibs.patch |
e4c107c6 | 22 | URL: http://vsftpd.beasts.org/ |
4283234b | 23 | BuildRequires: libcap-devel |
a65fc8bc PS |
24 | BuildRequires: libwrap-devel |
25 | BuildRequires: openssl-devel >= 0.9.7d | |
be43983e ER |
26 | BuildRequires: rpmbuild(macros) >= 1.268 |
27 | Requires: %{name}-init = %{version}-%{release} | |
fe964f4b | 28 | Requires: filesystem >= 3.0-11 |
77ce80d1 | 29 | Requires: pam >= 0.77.3 |
e4c107c6 | 30 | Provides: ftpserver |
e4c107c6 JB |
31 | Obsoletes: anonftp |
32 | Obsoletes: bftpd | |
33 | Obsoletes: ftpd-BSD | |
be43983e | 34 | Obsoletes: ftpserver |
5dc1e848 | 35 | Obsoletes: glftpd |
e4c107c6 JB |
36 | Obsoletes: heimdal-ftpd |
37 | Obsoletes: linux-ftpd | |
38 | Obsoletes: muddleftpd | |
39 | Obsoletes: proftpd | |
40 | Obsoletes: proftpd-common | |
41 | Obsoletes: proftpd-inetd | |
42 | Obsoletes: proftpd-standalone | |
43 | Obsoletes: pure-ftpd | |
44 | Obsoletes: troll-ftpd | |
45 | Obsoletes: wu-ftpd | |
2418a325 | 46 | Conflicts: man-pages < 1.51 |
db24aa96 | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e4c107c6 JB |
48 | |
49 | %description | |
50 | A Very Secure FTP Daemon - written from scratch - by Chris "One Man | |
51 | Security Audit Team" Evans. | |
52 | ||
7177ff83 | 53 | %description -l pl.UTF-8 |
e4c107c6 JB |
54 | Bardzo Bezpieczny Demon FTP - napisany od zera przez Chrisa "One Man |
55 | Security Audit Team" Evansa. | |
56 | ||
7177ff83 | 57 | %description -l pt_BR.UTF-8 |
d4759db0 | 58 | A Very Secure FTP Daemon (vsftpd) - escrito do zero - por Chris "One |
59 | Man Security Audit Team" Evans. | |
60 | ||
6b1fc9c5 AG |
61 | %package inetd |
62 | Summary: vsftpd - Very Secure FTP Daemon | |
7177ff83 JR |
63 | Summary(pl.UTF-8): Bardzo Bezpieczny Demon FTP |
64 | Summary(pt_BR.UTF-8): vsftpd - Daemon FTP Muito Seguro | |
6b1fc9c5 AG |
65 | Group: Networking/Daemons |
66 | Requires: %{name} = %{version}-%{release} | |
67 | Requires: rc-inetd | |
68 | Provides: %{name}-init = %{version}-%{release} | |
be43983e | 69 | Obsoletes: vsftpd-standalone |
6b1fc9c5 AG |
70 | Conflicts: %{name} <= 2.0.3-1 |
71 | ||
72 | %description inetd | |
73 | This package allows to start vsftpd as inetd service. | |
74 | ||
7177ff83 JR |
75 | %description inetd -l pl.UTF-8 |
76 | Ten pakiet pozwala na wystartowanie vsftpd jako usługi inetd. | |
6b1fc9c5 AG |
77 | |
78 | %package standalone | |
79 | Summary: vsftpd - Very Secure FTP Daemon | |
7177ff83 JR |
80 | Summary(pl.UTF-8): Bardzo Bezpieczny Demon FTP |
81 | Summary(pt_BR.UTF-8): vsftpd - Daemon FTP Muito Seguro | |
6b1fc9c5 AG |
82 | Group: Networking/Daemons |
83 | Requires(post,preun): /sbin/chkconfig | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | Requires: rc-scripts | |
86 | Provides: %{name}-init = %{version}-%{release} | |
be43983e | 87 | Obsoletes: vsftpd-inetd |
6b1fc9c5 AG |
88 | Conflicts: %{name} <= 2.0.3-1 |
89 | ||
90 | %description standalone | |
91 | This package allows to start vsftpd as standalone daemon. | |
92 | ||
7177ff83 | 93 | %description standalone -l pl.UTF-8 |
6b1fc9c5 AG |
94 | Ten pakiet pozwala na wystartowanie vsftpd jako samodzielnego demona. |
95 | ||
e4c107c6 | 96 | %prep |
a1c13b88 | 97 | %setup -q |
a65fc8bc | 98 | %patch0 -p1 |
f62c9387 | 99 | %patch1 -p1 |
e4c107c6 JB |
100 | |
101 | %build | |
102 | %{__make} \ | |
103 | CC="%{__cc}" \ | |
104 | CFLAGS="%{rpmcflags}" \ | |
105 | LINK="%{rpmldflags}" | |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
fe964f4b | 109 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8}} \ |
6b1fc9c5 | 110 | $RPM_BUILD_ROOT/etc/{pam.d,sysconfig/rc-inetd,logrotate.d,ftpd,rc.d/init.d} \ |
11883f94 | 111 | $RPM_BUILD_ROOT{%{_ftpdir}/pub/incoming,/var/log} |
e4c107c6 JB |
112 | |
113 | install vsftpd $RPM_BUILD_ROOT%{_sbindir}/vsftpd | |
114 | install vsftpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd.conf | |
42c194ac TP |
115 | install vsftpd.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/vsftpd.conf.5 |
116 | install vsftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/vsftpd.8 | |
e4c107c6 JB |
117 | install RedHat/vsftpd.log $RPM_BUILD_ROOT/etc/logrotate.d/vsftpd |
118 | ||
119 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/vsftpd | |
120 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp | |
d4759db0 | 121 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers |
6b1fc9c5 | 122 | install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/vsftpd |
e4c107c6 JB |
123 | |
124 | > $RPM_BUILD_ROOT/var/log/vsftpd.log | |
125 | ||
f4fb5732 | 126 | bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
b54a62e6 | 127 | rm -f $RPM_BUILD_ROOT/usr/share/man/ftpusers-path.diff |
f4fb5732 | 128 | |
e4c107c6 JB |
129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post | |
133 | touch /var/log/vsftpd.log | |
134 | chmod 640 /var/log/vsftpd.log | |
6b1fc9c5 AG |
135 | |
136 | %post inetd | |
be43983e | 137 | %service -q rc-inetd reload |
e4c107c6 | 138 | |
6b1fc9c5 | 139 | %postun inetd |
be43983e ER |
140 | if [ "$1" = "0" ]; then |
141 | %service -q rc-inetd reload | |
e4c107c6 JB |
142 | fi |
143 | ||
6b1fc9c5 AG |
144 | %post standalone |
145 | /sbin/chkconfig --add %{name} | |
be43983e | 146 | %service vsftpd restart "vsftpd server" |
6b1fc9c5 AG |
147 | |
148 | %preun standalone | |
149 | if [ "$1" = "0" ]; then | |
be43983e | 150 | %service vsftpd stop |
6b1fc9c5 AG |
151 | /sbin/chkconfig --del %{name} |
152 | fi | |
153 | ||
e4c107c6 JB |
154 | %files |
155 | %defattr(644,root,root,755) | |
35a9c2e8 | 156 | %doc AUDIT BENCHMARKS BUGS Changelog FAQ README README.ssl REWARD SIZE SPEED TODO TUNING EXAMPLE SECURITY |
e4c107c6 | 157 | %attr(755,root,root) %{_sbindir}/vsftpd |
f9292778 | 158 | %dir %attr(750,root,ftp) %dir %{_sysconfdir}/ftpd |
681525da ER |
159 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vsftpd.conf |
160 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers | |
681525da ER |
161 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp |
162 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/vsftpd | |
e4c107c6 JB |
163 | %attr(640,root,root) %ghost /var/log/vsftpd.log |
164 | %{_mandir}/man5/vsftpd.conf.5* | |
165 | %{_mandir}/man8/vsftpd.8* | |
f4fb5732 | 166 | %{_mandir}/man5/ftpusers.5* |
167 | %lang(ja) %{_mandir}/ja/man5/ftpusers* | |
168 | %lang(pl) %{_mandir}/pl/man5/ftpusers* | |
169 | %lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers* | |
170 | %lang(ru) %{_mandir}/ru/man5/ftpusers* | |
11883f94 | 171 | %dir %{_ftpdir} |
172 | %dir %{_ftpdir}/pub | |
e4c107c6 | 173 | # it's safe - by default anon_upload_enable=NO, anon_world_readable_only=YES |
11883f94 | 174 | %attr(775,root,ftp) %dir %{_ftpdir}/pub/incoming |
6b1fc9c5 AG |
175 | |
176 | %files inetd | |
177 | %defattr(644,root,root,755) | |
178 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/vsftpd | |
179 | ||
180 | %files standalone | |
181 | %defattr(644,root,root,755) | |
182 | %attr(754,root,root) /etc/rc.d/init.d/vsftpd |