]>
Commit | Line | Data |
---|---|---|
1 | Summary: Shell script for setting up CBQ | |
2 | Summary(pl.UTF-8): Skrypt umożliwiający prostą konfigurację CBQ | |
3 | Name: cbq.init | |
4 | Version: 0.7.3 | |
5 | Release: 0.1 | |
6 | License: GPL v2+ | |
7 | Group: Networking/Utilities | |
8 | Source0: http://dl.sourceforge.net/cbqinit/%{name}-v%{version} | |
9 | # Source0-md5: c319f136059aadf7b3f0a38a12f3f3e0 | |
10 | URL: http://www.sourceforge.net/projects/cbqinit/ | |
11 | PreReq: rc-scripts | |
12 | Requires(post,preun): /sbin/chkconfig | |
13 | Requires: iproute2 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | CBQ.init is a simple shell script for setting up a smart ethernet | |
19 | shaper based on CBQ (Class Based Queueing) for Linux 2.2 and 2.4. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | CBQ.init jest prostym skryptem umożliwiającym konfigurację CBQ w | |
23 | Linuksie 2.2 i 2.4. | |
24 | ||
25 | %prep | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig/cbq} | |
30 | ||
31 | install %{SOURCE0} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
32 | ||
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %post | |
37 | /sbin/chkconfig --add cbq.init | |
38 | ||
39 | %postun | |
40 | if [ "$1" = "0" ]; then | |
41 | /sbin/chkconfig --del cbq.init | |
42 | fi | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
47 | %dir /etc/sysconfig/cbq |