]>
Commit | Line | Data |
---|---|---|
e1e5c179 AM |
1 | Summary: Packet Scheduling and QoS for Wireless Networks |
2 | Name: frottle | |
3 | Version: 0.2.1 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Networking/Daemons | |
7 | Source0: http://dl.sourceforge.net/frottle/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: eb18d7490fbc874fcecb1f4686f2707a | |
9 | Source1: %{name}.init | |
10 | Source2: %{name}.sysconfig | |
11 | URL: http://frottle.sourceforge.net/ | |
12 | BuildRequires: iptables-devel | |
13 | Requires(post,preun): /sbin/chkconfig | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Frottle (Freenet throttle) is an open source GNU GPL project to | |
18 | control traffic on wireless networks. Such control eliminates the | |
19 | common hidden-node effect even on large scale wireless networks. | |
20 | Frottle is currently only available for Linux wireless gateways using | |
21 | iptables firewalls, with plans to develop a windows client in the | |
22 | future. | |
23 | ||
24 | Frottle works by scheduling the traffic of each client, using a master | |
25 | node to co-ordinate actions. This eliminates collisions, and prevents | |
26 | clients with stronger signals from receiving bandwidth bias. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | CPPFLAGS="-I%{_includedir}/libipq" | |
33 | %configure | |
34 | %{__make} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} | |
39 | ||
40 | %{__make} install \ | |
41 | DESTDIR=$RPM_BUILD_ROOT \ | |
42 | ||
43 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
44 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
45 | ||
46 | install frottle.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post | |
52 | /sbin/chkconfig --add %{name} | |
53 | if [ -f /var/lock/subsys/%{name} ]; then | |
54 | /etc/rc.d/init.d/%{name} restart >&2 | |
55 | else | |
56 | echo "Run \"/etc/rc.d/init.d/%{name} start\" to start frottle daemon." | |
57 | fi | |
58 | ||
59 | %preun | |
60 | if [ "$1" = "0" ]; then | |
61 | if [ -f /var/lock/subsys/%{name} ]; then | |
62 | /etc/rc.d/init.d/%{name} stop >&2 | |
63 | fi | |
64 | /sbin/chkconfig --del %{name} | |
65 | fi | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
69 | %doc AUTHORS ChangeLog INSTALL README | |
70 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
71 | %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name} | |
72 | %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf | |
73 | %attr(755,root,root) %{_sbindir}/%{name} | |
74 | %{_mandir}/man?/* |