]>
Commit | Line | Data |
---|---|---|
9b961cd6 | 1 | Summary: ftpproxy is an application level gateway for the FTP protocol |
cdc10c04 | 2 | Summary(pl.UTF-8): ftpproxy jest aplikacyjną bramką dla protokołu FTP |
9b961cd6 | 3 | Name: ftpproxy |
c071edba | 4 | Version: 1.2.3 |
adc99c38 | 5 | Release: 1 |
9b961cd6 | 6 | License: GPL |
7 | Group: Applications/Networking | |
9b961cd6 | 8 | Source0: http://ftp.daemons.de/download/%{name}-%{version}.tgz |
c071edba | 9 | # Source0-md5: c2068bc452e1d7554d3bda08030aa433 |
9b961cd6 | 10 | Source1: %{name}.inetd |
61f5b770 | 11 | URL: http://ftp.daemons.de/ |
c071edba | 12 | BuildRequires: ctags |
cb8ed911 ER |
13 | BuildRequires: rpmbuild(macros) >= 1.268 |
14 | Requires: rc-inetd >= 0.8.1 | |
7046d96d | 15 | Conflicts: proxytools |
cb8ed911 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9b961cd6 | 17 | |
18 | %description | |
adc99c38 | 19 | ftp.proxy is a proxy server for a subset of the file transfer protocol |
20 | described in RFC 959. It forwards traffic between a client and a | |
21 | server without looking too much if both hosts do real FTP. The FTP | |
22 | server can be either given on the command line or supplied by the | |
9b961cd6 | 23 | client. |
24 | ||
a7311a73 JR |
25 | %description -l pl.UTF-8 |
26 | ftp.proxy jest aplikacyjną bramką dla podzbioru protokołu FTP | |
27 | opisanego w RFC 959. Pośredniczy w transferze pomiędzy klientem a | |
28 | serwerem bez specjalnego patrzenia czy oba hosty są prawdziwymi | |
7046d96d | 29 | serwerami FTP. |
9b961cd6 | 30 | |
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | %{__make} \ | |
a7ba7c54 | 36 | CC="%{__cc}" \ |
c071edba | 37 | CFLAGS="%{rpmcflags} -DVERSION=\\\"%{version}\\\"" |
9b961cd6 | 38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
f4ea0c7d | 41 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/sysconfig/rc-inetd} |
9b961cd6 | 42 | |
1255a9c5 | 43 | install src/ftp.proxy $RPM_BUILD_ROOT%{_sbindir} |
44 | install doc/ftp.proxy.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
9b961cd6 | 45 | |
9b961cd6 | 46 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpproxy |
47 | ||
f4ea0c7d JB |
48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
9b961cd6 | 51 | %post |
cb8ed911 | 52 | %service -q rc-inetd reload |
dcbea120 | 53 | |
9b961cd6 | 54 | %postun |
cb8ed911 ER |
55 | if [ "$1" = "0" ]; then |
56 | %service -q rc-inetd reload | |
9b961cd6 | 57 | fi |
e9c6d57d | 58 | |
9b961cd6 | 59 | %files |
60 | %defattr(644,root,root,755) | |
1255a9c5 | 61 | %doc doc/rfc*.txt HISTORY INSTALL |
a7ba7c54 | 62 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpproxy |
9b961cd6 | 63 | %attr(755,root,root) %{_sbindir}/ftp.proxy |
64 | %{_mandir}/man1/* |