]> git.pld-linux.org Git - packages/apache1-mod_access_rbl.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 16 Feb 2006 17:29:48 +0000 (17:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_access_rbl.spec -> 1.1

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

diff --git a/apache1-mod_access_rbl.spec b/apache1-mod_access_rbl.spec
new file mode 100644 (file)
index 0000000..d907b71
--- /dev/null
@@ -0,0 +1,44 @@
+%define                mod_name        access_rbl
+%define        apxs            /usr/sbin/apxs1
+Summary:       Apache module: access based on RBL
+Name:          apache1-mod_%{mod_name}
+Version:       0.1
+Release:       0.1
+License:       Apache Group
+Group:         Networking/Daemons
+Source0:       http://www.blars.org/mod_access_rbl.tar.gz
+# Source0-md5: 9a3a513435e57fe589d6b0cb8c7d7eb4
+URL:           http://www.blars.org/mod_access_rbl.html
+BuildRequires: apache1-devel >= 1.3.33-2
+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
+mod_access_rbl is a superset replacement for mod_access. Both modules
+cannot be used at the same time.
+
+%prep
+%setup -q -c
+
+%build
+%{apxs} -c mod_%{mod_name}.c
+
+%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/10_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rbl
+%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.077722 seconds and 4 git commands to generate.