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