summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSÅ‚awomir Paszkiewicz2005-02-22 11:47:56 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit3255b4b26ea87da648287f45c66a1ced45c10717 (patch)
tree2d89f7e309589ce76cf2609adedc8f56af3cd1d9
downloadrc-shaper-3255b4b26ea87da648287f45c66a1ced45c10717.zip
rc-shaper-3255b4b26ea87da648287f45c66a1ced45c10717.tar.gz
- added new spec
- missing pl desc/summary - release 0.1 Changed files: rc-shaper.spec -> 1.1
-rw-r--r--rc-shaper.spec43
1 files changed, 43 insertions, 0 deletions
diff --git a/rc-shaper.spec b/rc-shaper.spec
new file mode 100644
index 0000000..cdc0ca8
--- /dev/null
+++ b/rc-shaper.spec
@@ -0,0 +1,43 @@
+Summary: Shaper super-script
+Name: rc-shaper
+Version: 1.10
+Release: 0.1
+License: GPL
+Group: Networking/Admin
+Source0: http://dl.sourceforge.net/rc-shaper/%{name}-%{version}.tar.gz
+# Source0-md5: 840926444558967b8498eb84bf829bd4
+Patch0: %{name}-conf.patch
+URL: http://rc-shaper.sf.net/
+Requires: iproute2
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Shaper Super-Script is a bash script that uses iproute2 and shapecfg
+(shaper.o) to limit incoming and outgoing traffic on a Linux router.
+It also has an option for supporting more than 100 shapers via a
+kernel patch.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc-shaper,/etc/rc.d/init.d}
+
+install shapecfg-libc6 $RPM_BUILD_ROOT%{_sbindir}
+install shapecfg-uClib $RPM_BUILD_ROOT%{_sbindir}
+
+install rc.shape $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install shape.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/shape.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG README
+%attr(755,root,root) %{_sbindir}/*
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/shape.conf