Summary: Shell script for setting up HTB Name: htb.init Version: 0.8.5 Release: 2%{?dist} License: GPL Group: System Environment/Daemons Source0: http://dl.sourceforge.net/htbinit/%{name}-v%{version} Source1: http://dl.sourceforge.net/htbinit/htb-lartc.tar.gz Patch0: %{name}-lsb.patch Patch1: %{name}-find.patch URL: http://sourceforge.net/projects/htbinit/ Requires: iproute BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) %description HTB.init is a shell script derived from CBQ.init that allows for easy setup of HTB-based traffic control on Linux. HTB (Hierachical Token Bucket) is a new queueing discipline which attempts to address the weaknesses of current CBQ implementation. %prep %setup -q -T -c -a1 install %{SOURCE0} . %patch0 -p0 %patch1 -p0 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_initrddir},/etc/sysconfig/htb} install %{name}-v%{version} $RPM_BUILD_ROOT%{_initrddir}/htb %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add htb %preun if [ "$1" = "0" ]; then /sbin/chkconfig --del htb fi %files %defattr(644,root,root,755) %doc e* %attr(754,root,root) %{_initrddir}/htb %dir /etc/sysconfig/htb %changelog