5 Summary: Transparent FTP proxy
6 Summary(pl): Przezroczyste proxy FTP
15 Group: Networking/Daemons
16 Source0: http://frox.sourceforge.net/download/%{name}-%{version}.tar.bz2
17 # Source0-md5: 95ef94973e94ba2cfb33f1004c74190e
19 Source2: %{name}.sysconfig
20 Patch0: %{name}-config.patch
21 URL: http://frox.sourceforge.net/
22 BuildRequires: autoconf
23 BuildRequires: automake
25 Requires(pre): /usr/bin/getgid
26 Requires(pre): /bin/id
27 Requires(pre): /usr/sbin/groupadd
28 Requires(pre): /usr/sbin/useradd
29 Requires(postun): /usr/sbin/userdel
30 Requires(postun): /usr/sbin/groupdel
31 Requires(post,preun): /sbin/chkconfig
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Frox is transparent FTP proxy. It also has support for non-transparent
36 connections, caching of anonymous ftp, and active --> passive
37 conversion of data connections.
40 Frox to przezroczyste proxy FTP, posiada równie¿ wsparcie do
41 nieprzezroczystych po³±czeñ, buforowania anonimowego ftp, i konwersji
42 po³±czeñ z aktywnych na pasywne.
53 --enable-local-cache \
54 %{?!with_kernel22:--enable-libiptc} \
55 %{?with_kernel22:--disable-libiptc} \
56 --enable-transparent-data \
57 --enable-configfile=%{_sysconfdir}/frox.conf
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,%{_mandir}/man{5,8}} \
63 $RPM_BUILD_ROOT/var/lib/frox
66 DESTDIR=$RPM_BUILD_ROOT
68 install src/frox.conf $RPM_BUILD_ROOT%{_sysconfdir}/frox.conf
69 install doc/frox.man $RPM_BUILD_ROOT%{_mandir}/man8/frox.8
70 install doc/frox.conf.man $RPM_BUILD_ROOT%{_mandir}/man5/frox.5
71 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/frox
72 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/frox
75 rm -rf $RPM_BUILD_ROOT
78 if [ ! -n "`getgid frox`" ]; then
79 /usr/sbin/groupadd -g 97 -r -f frox 1>&2 || :
82 if [ ! -n "`id -u frox 2>/dev/null`" ]; then
83 /usr/sbin/useradd -M -o -r -u 97 -s /bin/false \
84 -g frox -c "FROX ftp caching daemon" -d /var/cache/frox frox 1>&2 || :
88 /sbin/chkconfig --add frox
89 if [ -f /var/lock/subsys/frox ]; then
90 /etc/rc.d/init.d/frox restart >&2
92 echo "Run \"/etc/rc.d/init.d/frox start\" to start frox daemons."
96 if [ "$1" = "0" ]; then
97 if [ -f /var/lock/subsys/frox ]; then
98 /etc/rc.d/init.d/frox stop >&2
100 /sbin/chkconfig --del frox
104 if [ "$1" = "0" ]; then
105 /usr/sbin/userdel frox 2> /dev/null
106 /usr/sbin/groupdel frox 2> /dev/null
110 %defattr(644,root,root,755)
111 %doc doc/{FAQ,README.transdata,RELEASE,SECURITY,TODO}
112 %attr(754,root,root) /etc/rc.d/init.d/frox
113 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/frox
114 %attr(640,root,frox) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/frox.conf
115 %attr(755,root,root) %{_sbindir}/frox
116 %attr(770,root,frox) /var/lib/frox