]> git.pld-linux.org Git - packages/apache1-mod_iptos.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 16 Jul 2005 10:09:03 +0000 (10:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_iptos.spec -> 1.1

apache1-mod_iptos.spec [new file with mode: 0644]

diff --git a/apache1-mod_iptos.spec b/apache1-mod_iptos.spec
new file mode 100644 (file)
index 0000000..ceaffcb
--- /dev/null
@@ -0,0 +1,57 @@
+%define                mod_name        iptos
+%define        apxs            %{_sbindir}/apxs1
+Summary:       Apache module: assign IPTOS bits to different vhosts or directories.
+Name:          apache1-mod_%{mod_name}
+Version:       1.1
+Release:       0.1
+License:       Apache 1.1
+Group:         Networking/Daemons
+Source0:       http://www.arctic.org/~dean/mod_iptos/libapache-mod-%{mod_name}_%{version}.orig.tar.gz
+# Source0-md5: 1e5582acf63b6fabf567ecb79e57bdd5
+URL:           http://www.arctic.org/~dean/mod_iptos/
+BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires:      apache1 >= 1.3.33-2
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+
+%description
+Modify IPTOS bits on outbound data for fine-tuned traffic shaping
+mod_iptos is a module for apache 1.3.x which allows the admin to
+assign different IPTOS bits to different vhosts or directories. This
+can be used in combination with traffic shaping to give much better
+control (than other userland-only solutions such as mod_bandwidth)
+over the bandwidth for various portions of a website.
+
+%prep
+%setup -q -n libapache-mod-%{mod_name}-%{version}
+
+%build
+%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
+
+install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+echo 'LoadModule %{mod_name}_module    modules/mod_%{mod_name}.so' > \
+       $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service apache restart
+
+%postun
+if [ "$1" = "0" ]; then
+       %service -q apache restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README debian/changelog
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.479713 seconds and 4 git commands to generate.