]> git.pld-linux.org Git - packages/frox.git/blob - frox.spec
- added Summary(pl)
[packages/frox.git] / frox.spec
1 Summary:        Transparent FTP proxy
2 Summary(pl):    Prze¼roczyste proxy FTP
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 %description -l pl
24 Frox to prze¼roczyste proxy FTP, posiada równie¿ wsparcie do
25 nie-transparentnych po³aczen, buforowania anonimowego ftp, i konwersji
26 aktywne-pasywne polaczenia.
27
28 %prep
29 %setup -q
30 %build
31 %configure \
32         --enable-http-cache \
33         --enable-local-cache \
34         --enable-libiptc \
35         --enable-transparent-data \
36         --enable-configfile=%{_sysconfdir}/frox.conf
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_mandir}/man8} \
42         $RPM_BUILD_ROOT/var/cache/frox/0{1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f}
43
44 %{__make} install DESTDIR=$RPM_BUILD_ROOT
45
46 install doc/frox.man    $RPM_BUILD_ROOT%{_mandir}/man8/frox.8
47 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/frox
48 install %{SOURCE2}      $RPM_BUILD_ROOT%{_sysconfdir}/frox.conf
49
50 gzip -9nf doc/{FAQ,README.transdata,RELEASE,SECURITY,TODO}
51
52 %pre
53 if [ ! -n "`getgid frox`" ]; then
54         /usr/sbin/groupadd -g 97 -r -f frox 1>&2 || :
55 fi
56
57 if [ ! -n "`id -u frox 2>/dev/null`" ]; then
58         /usr/sbin/useradd -M -o -r -u 97 -s /bin/false \
59                 -g squid -c "FROX ftp caching daemon" -d /var/cache/frox frox 1>&2 || :
60 fi              
61
62 %post
63 /sbin/chkconfig --add frox
64 if [ -f /var/lock/subsys/frox ]; then
65         /etc/rc.d/init.d/frox restart >&2
66 else
67         echo "Run \"/etc/rc.d/init.d/frox start\" to start frox daemons."
68 fi
69
70 %postun
71 # If package is being erased for the last time.
72 if [ "$1" = "0" ]; then
73         /usr/sbin/userdel frox 2> /dev/null
74         /usr/sbin/groupdel frox 2> /dev/null
75 fi              
76
77 %preun
78 if [ "$1" = "0" ]; then
79         if [ -f /var/lock/subsys/frox ]; then
80                 /etc/rc.d/init.d/frox stop >&2
81         fi
82         /sbin/chkconfig --del frox
83 fi
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc doc/*.gz
91 %attr(754,root,root) /etc/rc.d/init.d/frox
92 %attr(640,root,frox) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/frox.conf
93 %attr(755,root,root) %{_sbindir}/frox
94 %attr(750,frox,frox) %dir /var/cache/frox
95 %{_mandir}/man*/*
This page took 0.08334 seconds and 4 git commands to generate.