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