]> git.pld-linux.org Git - packages/apache-mod_rpaf.git/commitdiff
- based on apache1-mod_rpaf.spec
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 24 Oct 2005 10:26:56 +0000 (10:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_rpaf.spec -> 1.1

apache-mod_rpaf.spec [new file with mode: 0644]

diff --git a/apache-mod_rpaf.spec b/apache-mod_rpaf.spec
new file mode 100644 (file)
index 0000000..2573329
--- /dev/null
@@ -0,0 +1,64 @@
+%define                mod_name        rpaf
+%define        apxs            %{_sbindir}/apxs
+Summary:       Reverse proxy add forward module for Apache2
+Name:          apache-mod_%{mod_name}
+Version:       0.5
+Release:       0.2
+License:       Apache
+Group:         Networking/Daemons
+Source0:       http://stderr.net/apache/rpaf/download/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: 471fb059d6223a394f319b7c8ab45c4d
+Source1:       %{name}.conf
+URL:           http://stderr.net/apache/rpaf/
+BuildRequires: apache-devel >=  2.0.36
+Requires:      apache >= 2.0.36
+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
+rpaf is for backend Apache servers what mod_proxy_add_forward is for
+frontend Apache servers. It does excactly the opposite of
+mod_proxy_add_forward written by Ask Bjørn Hansen. It will also work
+with mod_proxy that is distributed with Apache2 from version 2.0.36.
+
+%description -l pl
+rpaf jest dla backendowych serwerów Apache tym, czym
+mod_proxy_add_forward jest dla frontendowych. Wykonuje dok³adnie
+przeciwne operacje do mod_proxy_add_forward napisanego przez Aska
+Bjorna Hansena. Bêdzie tak¿e dzia³aæ z mod_proxy w Apache'u pocz±wszy
+od wersji 2.0.36.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%{apxs} -c -n mod_%{mod_name}-2.0.o mod_%{mod_name}-2.0.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+install .libs/mod_rpaf-2.0.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/99_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README CHANGES test.pl
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.104537 seconds and 4 git commands to generate.