]> git.pld-linux.org Git - packages/frox.git/blob - frox.spec
ad28afcfb99a33bdf51dc45cb9924148078bba09
[packages/frox.git] / frox.spec
1 # $Revision: 1.3 $
2 Summary:        Transparent FTP proxy
3 Name:           frox
4 Version:        0.6.4
5 Release:        1
6 License:        GPL
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
11 Source1:        %{name}.init
12 Source2:        %{name}.conf
13 URL:            http://frox.sourceforge.net/
14 BuildRequires:  kernel-headers >= 2.4.0
15 Prereq:         rc-scripts
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
22
23
24 %prep
25 %setup -q
26 %build
27 %configure \
28         --enable-http-cache \
29         --enable-local-cache \
30         --enable-libiptc \
31         --enable-transparent-data \
32         --enable-configfile=%{_sysconfdir}/frox.conf
33 %{__make}
34
35 %install
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}
39
40 %{__make} install DESTDIR=$RPM_BUILD_ROOT
41
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
45
46 gzip -9nf doc/{FAQ,README.transdata,RELEASE,SECURITY,TODO}
47
48 %pre
49 GID=97; %groupadd
50 UID=97; GROUP=squid; COMMENT="FROX ftp caching daemon"
51 HOMEDIR=/var/cache/from; %useradd
52
53 %post
54 DESC="frox daemons"; %chkconfig_add
55
56 %postun
57 %userdel
58 %groupdel
59
60 %preun
61 %chkconfig_del
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc doc/*.gz
69 %attr(754,root,root) /etc/rc.d/init.d/frox
70 %attr(640,root,frox) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/frox.conf
71 %attr(755,root,root) %{_sbindir}/frox
72 %attr(750,frox,frox) %dir /var/cache/frox
73 %{_mandir}/man*/*
This page took 0.044271 seconds and 2 git commands to generate.