Summary: A utility to generate htb scripts Name: htb_util Version: 0.2.3 Release: 1.n0i.2 License: GPL Group: Applications/System Source: http://SGI.rdscv.ro/~ionuts/C/%{name}-%{version}.tar.gz URL: http://SGI.rdscv.ro/~ionuts/C/ Requires: perl, sed, bash >= 2.00, /sbin/chkconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: flex %description This is a program that generates scripts for bandwidth management using the htb queuing discipline. %prep %setup perl -pi.orig -e 's{#include }{}' q_show.c %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/sbin/ install -D -m750 q_{parser,show} $RPM_BUILD_ROOT/sbin/ install -D -m750 init.d/htb $RPM_BUILD_ROOT%{_initrddir}/htb install -d -m750 $RPM_BUILD_ROOT/etc/sysconfig/htb %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add htb || : %preun if [ $1 = 0 ]; then /sbin/chkconfig --del htb [ -f /var/lock/subsys/htb ] && /etc/rc.d/init.d/htb stop >/dev/null 2>&1 fi exit 0 %postun if [ "$1" -ge 1 ]; then /etc/init.d/htb restart >/dev/null 2>&1 || : fi %files %defattr(-,root,root) %doc docs/README* docs/*.cfg Changelog %dir /etc/sysconfig/htb /sbin/q_* %{_initrddir}/htb %changelog * Tue Nov 30 2004 Marius FERARU 0.2.3-1.n0i.2 - rebuild on >= FC3 * Wed Oct 30 2002 Marius FERARU - baked a real spec file for this gadget