]>
Commit | Line | Data |
---|---|---|
a8952376 | 1 | # $Revision: 1.12 $ |
7cfe5034 | 2 | Summary: ggrelay - Gadu-Gadu instant messenger transparent proxy with DCC support |
a8952376 | 3 | Summary(pl.UTF-8): ggrelay - przezroczyste proxy dla komunikatora Gadu-Gadu z obsługą DCC |
ba5d9af1 | 4 | Name: ggrelay |
1c4c90a9 KK |
5 | Version: 1.4 |
6 | Release: 0.1 | |
ba5d9af1 | 7 | License: GPL |
7cfe5034 | 8 | Group: Networking/Utilities |
76ef08d9 | 9 | Source0: http://dl.sourceforge.net/ggrelay/%{name}-%{version}.tar.gz |
1c4c90a9 | 10 | # Source0-md5: 46e1d32d2e809083a9fc8bfe9eb45b47 |
f731f87e | 11 | URL: http://ggrelay.sourceforge.net/ |
6cda04b3 | 12 | Patch0: %{name}-init.patch |
7cfe5034 | 13 | Requires(post,preun): /sbin/chkconfig |
76ef08d9 | 14 | Requires: rc-scripts |
ba5d9af1 | 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 | ||
e585cccc JR |
24 | %description -l pl.UTF-8 |
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ą). | |
ba5d9af1 | 28 | |
29 | %prep | |
ea59397a | 30 | %setup -q |
6cda04b3 | 31 | %patch0 -p1 |
ba5d9af1 | 32 | |
33 | %build | |
7cfe5034 JB |
34 | %configure \ |
35 | --prefix="$RPM_BUILD_ROOT%{_prefix}" | |
ba5d9af1 | 36 | %{__make} |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
7cfe5034 JB |
40 | install -d $RPM_BUILD_ROOT |
41 | ||
ba5d9af1 | 42 | %{__make} install |
43 | ./install.sh --rpmbuild "$RPM_BUILD_ROOT" | |
44 | ||
7cfe5034 JB |
45 | %clean |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
ba5d9af1 | 48 | %post |
49 | /sbin/chkconfig --add ggrelay | |
7cfe5034 JB |
50 | if [ -f /var/lock/subsys/ggrelay ]; then |
51 | /etc/rc.d/init.d/ggrelay restart 1>&2 | |
52 | else | |
53 | echo | |
287be81c | 54 | echo "Installation completed." |
7cfe5034 | 55 | echo |
1c4c90a9 | 56 | echo "1. Please adjust your /etc/sysconfig/ggrelay adding -o and possibly -i parameters." |
287be81c | 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 | ||
7cfe5034 | 62 | fi |
ba5d9af1 | 63 | |
64 | %preun | |
65 | if [ "$1" = 0 ]; then | |
7cfe5034 JB |
66 | if [ -f /var/lock/subsys/ggrelay ]; then |
67 | /etc/rc.d/init.d/ggrelay stop >&2 | |
68 | fi | |
ba5d9af1 | 69 | /sbin/chkconfig --del ggrelay |
70 | fi | |
71 | ||
ba5d9af1 | 72 | %files |
73 | %defattr(644,root,root,755) | |
1c4c90a9 | 74 | %doc README* |
ba5d9af1 | 75 | %attr(755,root,root) %{_sbindir}/ggrelay |
76ef08d9 | 76 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ggrelay |
7cfe5034 | 77 | %attr(754,root,root) /etc/rc.d/init.d/ggrelay |