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