]> git.pld-linux.org Git - packages/ftpproxy.git/blob - ftpproxy.spec
1fab5363e1d9b5d2a29a8b74043d45198013846e
[packages/ftpproxy.git] / ftpproxy.spec
1 Summary:        ftpproxy is an application level gateway for the FTP protocol
2 Summary(pl):    ftpproxy jest aplikacyjn± bramk± dla protoko³u FTP
3 Name:           ftpproxy
4 Version:        1.1.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/Networking
8 Group(de):      Applikationen/Netzwerkwesen
9 Group(pl):      Aplikacje/Sieciowe
10 Source0:        http://ftp.daemons.de/download/%{name}-%{version}.tgz
11 Source1:        %{name}.inetd
12 Prereq:         rc-inetd >= 0.8.1
13 URL:            http://ftp.daemons.de/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Conflicts:      proxytools
16
17 %description
18 ftp.proxy is a proxy server for a subset of the file transfer protocol
19 described in RFC 959. It forwards traffic between a client and a
20 server without looking too much if both hosts do real FTP. The FTP
21 server can be either given on the command line or supplied by the
22 client.
23
24 %description -l pl
25 ftp.proxy jest aplikacyjn± bramk± dla podzbioru protoko³u FTP
26 opisanego w RFC 959. Po¶redniczy w transferze pomiêdzy klientem a
27 serwerem bez specjalnego patrzenia czy oba hosty s± prawdziwymi
28 serwerami FTP.
29
30 %prep
31 %setup -q
32
33 %build
34 %{__make} \
35         CC=%{__cc} \
36         CFLAGS="%{rpmcflags}"
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/sysconfig/rc-inetd}
41
42 install ftp.proxy $RPM_BUILD_ROOT%{_sbindir}
43 install ftp.proxy.1 $RPM_BUILD_ROOT%{_mandir}/man1
44
45 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpproxy
46
47 gzip -9nf  rfc959 HISTORY INSTALL
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 if [ -f /var/lock/subsys/rc-inetd ]; then
54         /etc/rc.d/init.d/rc-inetd reload 1>&2
55 else
56         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
57 fi
58
59 %postun
60 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
61         /etc/rc.d/init.d/rc-inetd reload
62 fi
63     
64 %files
65 %defattr(644,root,root,755)
66 %doc *.gz
67 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/rc-inetd/ftpproxy
68 %attr(755,root,root) %{_sbindir}/ftp.proxy
69 %{_mandir}/man1/*
This page took 0.043733 seconds and 2 git commands to generate.