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