Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1583517
 поиск   регистрация   авторизация 
 
Группа :: Система/Серверы
Пакет: mod_auth_mysql

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

# This spec for backport to M24 is autogenerated. Do not edit it.
Name: mod_auth_mysql
Version: 2.9.0
Release: alt0.M24.1

Summary: mod_auth_mysql module for Apache 1.3 HTTP Server
License: Apache (BSD-like)
Group: System/Servers

Source: %name-%version.tar.bz2
Source1: %name.conf
Source2: A.%name.conf

Requires: apache

# Automatically added by buildreq on Sat Jun 04 2005

BuildRequires: apache-devel apache2-devel libMySQL-devel libapr-devel libaprutil-devel zlib-devel

BuildRequires: rpm-build-compat >= 0.4

%description
mod_auth_mysql is an Apache module to authenticate users and authorize access
through a MySQL database.  It is flexible and support several encryption
methods.  The module will work on Apache 1.x.

%package -n apache2-%name
Summary: %name module for Apache 2 HTTP Server
Group: System/Servers
Requires: apache2

%description -n apache2-%name
mod_auth_mysql is an Apache module to authenticate users and authorize access
through a MySQL database.  It is flexible and support several encryption
methods.  The module will work on Apache 2.x.

%package docs
Summary: Documentation for %name module
Group: System/Servers

%description docs
%summary

%prep
%setup -q -n %name-%version
%__mkdir 1.3

%build


/usr/sbin/apxs -c -I/usr/include/mysql -lmysqlclient -lm -lz %name.c
%__mv %name.so 1.3/
%__rm -f %name.o
/usr/sbin/apxs2 -c -I/usr/include/mysql -lmysqlclient -lm -lz %name.c

%install
%__mkdir_p %buildroot{%_libdir/apache,%_libdir/apache2/modules,%_sysconfdir/httpd{/conf/addon-modules.d,2/conf/addon.d}}
%__install -m 644 .libs/%name.so %buildroot%_libdir/apache2/modules/
%__install -m 644 1.3/%name.so %buildroot%_libdir/apache/
%__install -m 644 %SOURCE1 %buildroot%_sysconfdir/httpd/conf/addon-modules.d/
%__install -m 644 %SOURCE2 %buildroot%_sysconfdir/httpd2/conf/addon.d/A.%name.conf

%post
%_sbindir/apachectl update

%preun
if [ $1 = 0 ]; then
%_sbindir/apachectl update
fi

%post -n apache2-%name
%_sbindir/apachectl2 update

%preun -n apache2-%name
if [ $1 = 0 ]; then
%_sbindir/apachectl2 update
fi

%files
%config(noreplace) %_sysconfdir/httpd/conf/addon-modules.d/%name.conf
%_libdir/apache/*

%files -n apache2-%name
%config(noreplace) %_sysconfdir/httpd2/conf/addon.d/A.%name.conf
%_libdir/apache2/modules/*

%files docs
%doc CHANGES CONFIGURE README

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005