File wondershaper.spec of Package wondershaper

#
# spec file for package wondershaper (Version 1.1a)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           wondershaper
Url:            http://lartc.org/wondershaper/
License:        GPL v2 or later
Group:          Productivity/Networking/System
Version:        1.1a
Release:        349
Source0:        wondershaper-1.1a.tar.bz2
Source1:        sysconfig.wondershaper
Source2:        rcwondershaper
Patch0:         %{name}-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
AutoReqProv:    on
Requires:       iproute2
PreReq:         %fillup_prereq
Summary:        Wondershaper is a QOS (Quality of Service) script.

%description
Many cablemodem and ADSL users experience horrifying latency while
uploading or downloading. They also notice that uploading hampers
downloading greatly. The wondershaper neatly addresses these issues,
allowing users of a router with a wondershaper to continue using SSH
over a loaded link happily.



Authors:
--------
    Bert Hubert <ahu@ds9a.nl>

%prep
%setup 
cp %{S:1} %{S:2} .
%patch0 -p1

%build

%install
mv wshaper wshaper.cbq
install -m 755 -d $RPM_BUILD_ROOT/usr/sbin
install -m 755 -d $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 755 -d $RPM_BUILD_ROOT/etc/init.d
install -m 750 wshaper.* $RPM_BUILD_ROOT/usr/sbin/
install -m 644 sysconfig.wondershaper $RPM_BUILD_ROOT/var/adm/fillup-templates/
install -m 755 rcwondershaper $RPM_BUILD_ROOT/etc/init.d/wondershaper
ln -sf ../../etc/init.d/wondershaper $RPM_BUILD_ROOT/usr/sbin/rcwondershaper

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}

%post
%{fillup_only}

%preun
%stop_on_removal wondershaper

%postun
%restart_on_update wondershaper
%insserv_cleanup

%files
%defattr(-, root, root)
%doc COPYING ChangeLog README TODO VERSION
%config /etc/init.d/wondershaper
/usr/sbin/*
/var/adm/fillup-templates/*

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 29 2004 hvogel@suse.de
- fixed another bug in the init script status behaviour.
  (Bug #46425)
* Fri Aug 27 2004 lmuelle@suse.de
- Add WSHAPER_QDISC_TYPE variable to the sysconfig file and use HTB as
  default.
* Wed Apr 28 2004 hvogel@suse.de
- Do sanity checks only during starting. (Bug #39583)
* Tue Apr 27 2004 hvogel@suse.de
- fix sysconfig variable namings which made config nearly impossible
  (Bug #39464)
* Thu Mar 18 2004 hvogel@suse.de
- fix init script. There is now a default queue so status returned
  always running. (Bug #36510)
* Thu Nov 13 2003 hvogel@suse.de
- dont build as root
* Thu Aug 14 2003 hvogel@suse.de
- Add sysconfig activation metadata
* Thu Jul 31 2003 hvogel@suse.de
- use preun/postun service macros
* Thu Mar 13 2003 hvogel@suse.de
- cleaned patch. wshaper.htb had old variables (#25228)
* Tue Mar 04 2003 hvogel@suse.de
- added QOS kernel test
- fixed sysconfig metadata types
* Sun Jan 26 2003 hvogel@suse.de
- Removed need for src/dst variables reported by axboe
- Source sysconfig file in init script
* Fri Jan 17 2003 hvogel@suse.de
- fixed permissions of init script
- added new sysconfig scheme
* Mon Jan 13 2003 hvogel@suse.de
- Changed variable names to use the original wondershaper names
- Made the verbose rcwondershaper status output variable dependent.
* Thu Dec 19 2002 hvogel@suse.de
- Initial Package, Version 1.1a
openSUSE Build Service is sponsored by