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