]> git.pld-linux.org Git - packages/cbq.init.git/blob - cbq.init.spec
- fix improper usage of %%{_sysconfdir}
[packages/cbq.init.git] / cbq.init.spec
1 Summary:        Shell script for setting up CBQ
2 Summary(pl):    Skrypt umo¿liwiaj±cy prost± konfiguracjê CBQ
3 Name:           cbq.init
4 Version:        0.6.2
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Utilities
8 Source0:        ftp://ftp.lj.pl/pub/linux/%{name}-%{version}.tar.gz
9 URL:            ftp://ftp.equinox.gu.net/pub/linux/cbq/
10 Requires:       iproute2
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 BuildArch:      noarch
13
14 %description
15 CBQ.init is a simple shell script for setting up a smart ethernet
16 shaper based on CBQ (Class Based Queueing) for Linux 2.2 and 2.4.
17
18 %description -l pl
19 CBQ.init jest prostym skryptem umo¿liwiaj±cym konfiguracjê CBQ w
20 Linuksie 2.2 i 2.4.
21
22 %prep
23 %setup  -q
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig/cbq}
28
29 install %{name}-v%{version} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
30
31 %clean
32 rm -rf $RPM_BUILD_ROOT
33
34 %post
35 /sbin/chkconfig --add cbq.init
36
37 %postun
38 if [ "$1" = "0" ]; then
39         /sbin/chkconfig --del cbq.init
40 fi
41
42 %files
43 %defattr(644,root,root,755)
44 %doc README doc/*
45 %attr(754,root,root) /etc/rc.d/init.d/%{name}
46 /etc/sysconfig/cbq
This page took 0.094027 seconds and 3 git commands to generate.