1 Summary: Transparent FTP proxy
2 Summary(pl): Prze¼roczyste proxy FTP
7 Group: Networking/Daemons
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
10 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/frox/%{name}-%{version}.tar.gz
13 URL: http://frox.sourceforge.net/
14 BuildRequires: autoconf
15 BuildRequires: automake
17 Prereq: /sbin/chkconfig
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Frox is transparent FTP proxy. It also has support for non-transparent
22 connections, caching of anonymous ftp, and active --> passive
23 conversion of data connections.
26 Frox to prze¼roczyste proxy FTP, posiada równie¿ wsparcie do
27 nie-transparentnych po³aczen, buforowania anonimowego ftp, i konwersji
28 aktywne-pasywne polaczenia.
38 --enable-local-cache \
40 --enable-transparent-data \
41 --enable-configfile=%{_sysconfdir}/frox.conf
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_mandir}/man8} \
47 $RPM_BUILD_ROOT/var/cache/frox/0{1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f}
49 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51 install doc/frox.man $RPM_BUILD_ROOT%{_mandir}/man8/frox.8
52 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/frox
53 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/frox.conf
55 gzip -9nf doc/{FAQ,README.transdata,RELEASE,SECURITY,TODO}
58 rm -rf $RPM_BUILD_ROOT
61 if [ ! -n "`getgid frox`" ]; then
62 /usr/sbin/groupadd -g 97 -r -f frox 1>&2 || :
65 if [ ! -n "`id -u frox 2>/dev/null`" ]; then
66 /usr/sbin/useradd -M -o -r -u 97 -s /bin/false \
67 -g squid -c "FROX ftp caching daemon" -d /var/cache/frox frox 1>&2 || :
71 /sbin/chkconfig --add frox
72 if [ -f /var/lock/subsys/frox ]; then
73 /etc/rc.d/init.d/frox restart >&2
75 echo "Run \"/etc/rc.d/init.d/frox start\" to start frox daemons."
79 if [ "$1" = "0" ]; then
80 if [ -f /var/lock/subsys/frox ]; then
81 /etc/rc.d/init.d/frox stop >&2
83 /sbin/chkconfig --del frox
87 # If package is being erased for the last time.
88 if [ "$1" = "0" ]; then
89 /usr/sbin/userdel frox 2> /dev/null
90 /usr/sbin/groupdel frox 2> /dev/null
94 %defattr(644,root,root,755)
96 %attr(754,root,root) /etc/rc.d/init.d/frox
97 %attr(640,root,frox) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/frox.conf
98 %attr(755,root,root) %{_sbindir}/frox
99 %attr(750,frox,frox) %dir /var/cache/frox