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