- previously called mod_log_mysql; version 1.99
authorradek <radek@pld-linux.org>
Mon, 30 Aug 2004 16:29:38 +0000 (16:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_log_sql.spec -> 1.1

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

diff --git a/apache1-mod_log_sql.spec b/apache1-mod_log_sql.spec
new file mode 100644 (file)
index 0000000..31c52e2
--- /dev/null
@@ -0,0 +1,76 @@
+# todo: split *.so to subpackages: mysql/dbi/ssl
+%define                mod_name        log_sql
+%define                apxs            /usr/sbin/apxs1
+Summary:       SQL logging module for Apache
+Summary(pl):   Modu³ logowania zapytañ do Apache do bazy SQL
+Name:          apache1-mod_%{mod_name}
+Version:       1.99
+Release:       1
+License:       Apache (?)
+Group:         Networking/Daemons
+Source0:       http://www.outoforder.cc/downloads/mod_log_sql/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: e246a3d8e96d2d62715eb34f75c7c11d
+Source1:       apache1-log_mysql.conf
+URL:           http://www.outoforder.cc/projects/apache/mod_log_sql/
+BuildRequires: %{apxs}
+BuildRequires: apache1-devel >= 1.3.20
+BuildRequires: apache1-mod_ssl-devel
+BuildRequires: libdbi-devel >= 0.7.0
+BuildRequires: mysql-devel >= 3.23.30
+Requires(post,preun):  %{apxs}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+Requires:      apache1
+Obsoletes:     apache-mod_log_sql <= 1.13
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/apache
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+
+%description
+mod_log_sql is a logging module for Apache 1.3 and 2.0 which logs all requests
+to a database.
+
+%description -l pl
+mod_log_sql jest modu³em loguj±cym dla Apache 1.3 i 2.0, który pozwala na
+logowanie wszystkich zapytañ do bazy danych.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%configure \
+       --with-apxs=%{apxs}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir}}
+
+install *.so $RPM_BUILD_ROOT%{_pkglibdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
+
+rm docs/Makefile* docs/*.xml contrib/Makefile*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_libexecdir}/mod_%{mod_name}.so 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache restart 1>&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       %{apxs} -e -A -n %{mod_name} %{_libexecdir}/mod_%{mod_name}.so 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGELOG TODO contrib docs LICENSE
+%attr(755,root,root) %{_pkglibdir}/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
This page took 0.038989 seconds and 4 git commands to generate.