]> git.pld-linux.org Git - packages/ftpproxy.git/blob - ftpproxy.spec
- cosmetics, Prereq: rc-inetd
[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.2
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 ftp.proxy is a proxy server for a subset of the file transfer
17 protocol described in RFC 959. It forwards traffic between a client
18 and a server without looking too much if both hosts do real FTP. The
19 FTP server can be either given on the command line or supplied by the
20 client.
21
22 %description -l pl
23 ftp.proxy jest aplikacyjn± bramk± dla podzbioru protoko³u FTP
24 opisanego w RFC 959.
25
26 %prep
27 %setup -q
28
29 %build
30 %{__make} \
31         CC=%{__cc} \
32         CFLAGS="%{rpmcflags}"
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/sysconfig/rc-inetd}
37
38 install ftp.proxy $RPM_BUILD_ROOT%{_sbindir}
39 install ftp.proxy.1 $RPM_BUILD_ROOT%{_mandir}/man1
40
41 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpproxy
42
43 gzip -9nf  rfc959 HISTORY INSTALL
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 if [ -f /var/lock/subsys/rc-inetd ]; then
50     /etc/rc.d/init.d/rc-inetd reload 1>&2
51 else
52     echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
53 fi
54         
55 %postun
56 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
57     /etc/rc.d/init.d/rc-inetd reload
58 fi
59             
60 %files
61 %defattr(644,root,root,755)
62 %doc *gz
63 %attr(755,root,root) %{_sbindir}/ftp.proxy
64 %{_mandir}/man1/*
65 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/rc-inetd/ftpproxy
This page took 0.082821 seconds and 3 git commands to generate.