]> git.pld-linux.org Git - packages/frox.git/blob - frox.spec
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
[packages/frox.git] / frox.spec
1 Summary:        Transparent FTP proxy
2 Summary(pl):    Prze¼roczyste proxy FTP
3 Name:           frox
4 Version:        0.7.4
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://frox.sourceforge.net/download/%{name}-%{version}.tar.bz2
9 Source1:        %{name}.init
10 Source2:        %{name}.conf
11 URL:            http://frox.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 Prereq:         rc-scripts
15 Prereq:         /sbin/chkconfig
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
31 %build
32 aclocal
33 %{__autoconf}
34 %configure \
35         --enable-http-cache \
36         --enable-local-cache \
37         --enable-libiptc \
38         --enable-transparent-data \
39         --enable-configfile=%{_sysconfdir}/frox.conf
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_mandir}/man8} \
45         $RPM_BUILD_ROOT/var/cache/frox/0{1,2,3,4,5,6,7,8,9,0,a,b,c,d,e,f}
46
47 %{__make} install DESTDIR=$RPM_BUILD_ROOT
48
49 install doc/frox.man    $RPM_BUILD_ROOT%{_mandir}/man8/frox.8
50 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/frox
51 install %{SOURCE2}      $RPM_BUILD_ROOT%{_sysconfdir}/frox.conf
52
53 gzip -9nf doc/{FAQ,README.transdata,RELEASE,SECURITY,TODO}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %pre
59 if [ ! -n "`getgid frox`" ]; then
60         /usr/sbin/groupadd -g 97 -r -f frox 1>&2 || :
61 fi
62
63 if [ ! -n "`id -u frox 2>/dev/null`" ]; then
64         /usr/sbin/useradd -M -o -r -u 97 -s /bin/false \
65                 -g squid -c "FROX ftp caching daemon" -d /var/cache/frox frox 1>&2 || :
66 fi
67
68 %post
69 /sbin/chkconfig --add frox
70 if [ -f /var/lock/subsys/frox ]; then
71         /etc/rc.d/init.d/frox restart >&2
72 else
73         echo "Run \"/etc/rc.d/init.d/frox start\" to start frox daemons."
74 fi
75
76 %preun
77 if [ "$1" = "0" ]; then
78         if [ -f /var/lock/subsys/frox ]; then
79                 /etc/rc.d/init.d/frox stop >&2
80         fi
81         /sbin/chkconfig --del frox
82 fi
83
84 %postun
85 # If package is being erased for the last time.
86 if [ "$1" = "0" ]; then
87         /usr/sbin/userdel frox 2> /dev/null
88         /usr/sbin/groupdel frox 2> /dev/null
89 fi
90
91 %files
92 %defattr(644,root,root,755)
93 %doc doc/*.gz
94 %attr(754,root,root) /etc/rc.d/init.d/frox
95 %attr(640,root,frox) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/frox.conf
96 %attr(755,root,root) %{_sbindir}/frox
97 %attr(750,frox,frox) %dir /var/cache/frox
98 %{_mandir}/man*/*
This page took 0.050993 seconds and 4 git commands to generate.