2 Summary: Transparent FTP proxy
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: kernel-headers >= 2.4.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 frox is transparent FTP proxy. It also has support for non-transparent
20 connections, caching of anonymous ftp, and active --> passive
21 conversion of data connections.
29 --enable-local-cache \
31 --enable-transparent-data \
32 --enable-configfile=%{_sysconfdir}/frox.conf
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_mandir}/man8} \
38 $RPM_BUILD_ROOT/var/cache/frox/0{1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f}
40 %{__make} install DESTDIR=$RPM_BUILD_ROOT
42 install doc/frox.man $RPM_BUILD_ROOT%{_mandir}/man8/frox.8
43 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/frox
44 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/frox.conf
46 gzip -9nf doc/{FAQ,README.transdata,RELEASE,SECURITY,TODO}
49 if [ ! -n "`getgid frox`" ]; then
50 /usr/sbin/groupadd -g 97 -r -f frox 1>&2 || :
53 if [ ! -n "`id -u frox 2>/dev/null`" ]; then
54 /usr/sbin/useradd -M -o -r -u 97 -s /bin/false \
55 -g squid -c "FROX ftp caching daemon" -d /var/cache/frox frox 1>&2 || :
59 /sbin/chkconfig --add frox
60 if [ -f /var/lock/subsys/frox ]; then
61 /etc/rc.d/init.d/frox restart >&2
63 echo "Run \"/etc/rc.d/init.d/frox start\" to start frox daemons."
67 # If package is being erased for the last time.
68 if [ "$1" = "0" ]; then
69 /usr/sbin/userdel frox 2> /dev/null
70 /usr/sbin/groupdel frox 2> /dev/null
74 if [ "$1" = "0" ]; then
75 if [ -f /var/lock/subsys/frox ]; then
76 /etc/rc.d/init.d/frox stop >&2
78 /sbin/chkconfig --del frox
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
87 %attr(754,root,root) /etc/rc.d/init.d/frox
88 %attr(640,root,frox) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/frox.conf
89 %attr(755,root,root) %{_sbindir}/frox
90 %attr(750,frox,frox) %dir /var/cache/frox