]> git.pld-linux.org Git - packages/ggrelay.git/blob - ggrelay.spec
--up to 1.2.0
[packages/ggrelay.git] / ggrelay.spec
1 # $Revision: 1.6 $
2 Summary:        ggrelay - Gadu-Gadu instant messenger transparent proxy with DCC support
3 Summary(pl):    ggrelay - przezroczyste proxy dla komunikatora Gadu-Gadu z obs³ug± DCC
4 Name:           ggrelay
5 Version:        1.2
6 Release:        0
7 License:        GPL
8 Group:          Networking/Utilities
9 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10 # Source0-md5:  8b1d71e4d2769147a0a6760d3124048a
11 Patch0:         %{name}-init.patch
12 PreReq:         rc-scripts
13 Requires(post,preun):   /sbin/chkconfig
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 This small application is a simple GG relaying agent. This means, that
18 if you are a network administrator and applying masquerade on your
19 server, it's likely, that your customers would like to establish
20 direct connections over the masquerade using GG. This program is
21 intended to be the solution.
22
23 %description -l pl
24 Ta ma³a aplikacja jest prostym agentem przekazuj±cym GG. Oznacza to,
25 ¿e pozwala na u¿ywanie transferów plików pomiêdzy u¿ytkownikami
26 Gadu-Gadu, którzy schowani s± za NAT-em (aka maskarad±).
27
28 %prep
29 %setup -q -n %{name}-%{version}
30 %patch0 -p1
31
32 %build
33 %configure \
34         --prefix="$RPM_BUILD_ROOT%{_prefix}"
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT
40
41 %{__make} install
42 ./install.sh --rpmbuild "$RPM_BUILD_ROOT"
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /sbin/chkconfig --add ggrelay
49 if [ -f /var/lock/subsys/ggrelay ]; then
50         /etc/rc.d/init.d/ggrelay restart 1>&2
51 else
52         echo
53         echo "Installation completed."
54         echo
55         echo "1. Please adjust your /etc/ggrelay/ggrelay.conf adding -o and possibly -i parameters."
56         echo "2. Run \"/etc/rc.d/init.d/ggrelay start\" to start daemon."
57         echo "3. Finally setup iptables to redirect connections:"
58         echo "   \$ iptables -t nat -A PREROUTING -p tcp --dport 8074 -j REDIRECT"
59         echo "   \$ iptables -I FORWARD -o <external iface> -d 217.17.41.0/24 -p+tcp --dport 443 -j REJECT"
60
61 fi
62
63 %preun
64 if [ "$1" = 0 ]; then
65         if [ -f /var/lock/subsys/ggrelay ]; then
66                 /etc/rc.d/init.d/ggrelay stop >&2
67         fi
68         /sbin/chkconfig --del ggrelay
69 fi
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README
74 %attr(755,root,root) %{_sbindir}/ggrelay
75 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ggrelay
76 %attr(754,root,root) /etc/rc.d/init.d/ggrelay
This page took 0.071169 seconds and 4 git commands to generate.