]> git.pld-linux.org Git - packages/frottle.git/blob - frottle.spec
- tabs in preamble
[packages/frottle.git] / frottle.spec
1 Summary:        Packet scheduling and QoS for wireless networks
2 Summary(pl.UTF-8):      Szeregowanie pakietów i QoS dla sieci bezprzewodowych
3 Name:           frottle
4 Version:        0.2.1
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://dl.sourceforge.net/frottle/%{name}-%{version}.tar.gz
9 # Source0-md5:  eb18d7490fbc874fcecb1f4686f2707a
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 URL:            http://frottle.sourceforge.net/
13 BuildRequires:  iptables-devel
14 Requires(post,preun):   /sbin/chkconfig
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Frottle (Freenet throttle) is an open source GNU GPL project to
19 control traffic on wireless networks. Such control eliminates the
20 common hidden-node effect even on large scale wireless networks.
21 Frottle is currently only available for Linux wireless gateways using
22 iptables firewalls, with plans to develop a windows client in the
23 future.
24
25 Frottle works by scheduling the traffic of each client, using a master
26 node to co-ordinate actions. This eliminates collisions, and prevents
27 clients with stronger signals from receiving bandwidth bias.
28
29 %description -l pl.UTF-8
30 Frottle (Freenet throttle) to projekt z otwartymi źródłami na licencji
31 GNU GPL służący do kontroli ruchu w sieciach bezprzewodowych. Kontrola
32 ta eliminuje popularny efekt ukrytego węzła nawet w dużych rozmiarów
33 sieciach bezprzewodowych. Frottle jest aktualnie dostępne tylko dla
34 bramek bezprzewodowych na Linuksie używających firewalli na iptables,
35 ale są plany stworzenia w przyszłości windowsowego klienta.
36
37 Frottle działa szeregując ruch każdego klienta, używając głównego
38 węzła do koordynowania akcji. Eliminuje to kolizje i zapobiega
39 otrzymywaniu większego pasma przez klientów z silniejszym sygnałem.
40
41 %prep
42 %setup -q
43
44 %build
45 CPPFLAGS="-I%{_includedir}/libipq"
46 %configure
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT \
55
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
57 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
58
59 install frottle.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 /sbin/chkconfig --add %{name}
66 if [ -f /var/lock/subsys/%{name} ]; then
67         /etc/rc.d/init.d/%{name} restart >&2
68 else
69         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start frottle daemon."
70 fi
71
72 %preun
73 if [ "$1" = "0" ]; then
74         if [ -f /var/lock/subsys/%{name} ]; then
75                 /etc/rc.d/init.d/%{name} stop >&2
76         fi
77         /sbin/chkconfig --del %{name}
78 fi
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog INSTALL README
83 %attr(754,root,root) /etc/rc.d/init.d/%{name}
84 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
86 %attr(755,root,root) %{_bindir}/%{name}
87 %{_mandir}/man?/*
This page took 0.114653 seconds and 3 git commands to generate.