SPECS: kernel-net-sch_srr.spec (NEW) - initial release
cactus
cactus at pld-linux.org
Sun Jul 15 23:47:31 CEST 2007
Author: cactus Date: Sun Jul 15 21:47:31 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial release
---- Files affected:
SPECS:
kernel-net-sch_srr.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/kernel-net-sch_srr.spec
diff -u /dev/null SPECS/kernel-net-sch_srr.spec:1.1
--- /dev/null Sun Jul 15 23:47:31 2007
+++ SPECS/kernel-net-sch_srr.spec Sun Jul 15 23:47:26 2007
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+#
+# TODO:
+# - pl desc
+# Conditional build:
+%bcond_without dist_kernel # allow non-distribution kernel
+%bcond_with verbose # verbose build (V=1)
+#
+%define _rel 1
+Summary: SSR packets scheduler (Simple Round Robin)
+#Summary(pl.UTF-8):
+Name: kernel%{_alt_kernel}-net-sch_srr
+Version: 0.4
+Release: %{_rel}@%{_kernel_ver_str}
+License: GPL
+Group: Base/Kernel
+Source0: http://mordor.strace.net/sched-srr/sch_srr.v%{version}.tgz
+# Source0-md5: 943ed9d1a237336085331d43050d955c
+URL: http://mordor.strace.net/sched-srr/
+%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires: rpmbuild(macros) >= 1.379
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun): %releq_kernel
+%endif
+Provides: kernel(sch_srr)
+Obsoletes: sch_srr
+Obsoletes: linux-net-sch_srr
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains SRR packets scheduler (Simple Round Robin).
+
+Simple Round Robin packets schedules - this is the schedules of packets for the linux
+operating system with kernels 2.4 or 2.6. Its purpose is the simply round robin
+distribution of the resources of the allocated bandwidth between its users.
+It works as follows:
+the internal queue of scheduler is divided into the given number of virtual queues (slots).
+Each slot, in turn, has hard limited number of packets located in it. Internal classifier
+distributes the entering in scheduler packets along the slots, being based either on source
+ip address or on destination ip address. With the selection of packet from the scheduler,
+the slots will be processed cyclically, which will ensure more or less uniform distribution.
+
+#%description -l pl.UTF-8
+
+%prep
+%setup -q -n sch_srr.v%{version}
+
+cat > Makefile <<'EOF'
+obj-m := sch_srr.o
+CFLAGS += -DKERNEL26
+EOF
+
+%build
+%build_kernel_modules -m sch_srr
+# -C .
+%install
+rm -rf $RPM_BUILD_ROOT
+%install_kernel_modules -m sch_srr -d kernel/drivers/net
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%depmod %{_kernel_ver}
+
+%postun
+%depmod %{_kernel_ver}
+
+%files
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/kernel/drivers/net/sch_srr*.ko*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/07/15 21:47:26 cactus
+- initial release
+
================================================================
More information about the pld-cvs-commit
mailing list