RSS

(root)/mod_ldap_userdir/head : /mod_ldap_userdir.spec (revision 35)

Line Revision Contents
1 5
#	conditional build:	
2
#		'_with_tls'	if	'--with tls'
3
#	e.g.,
4 34
#		'rpmbuild --with tls -bt mod_ldap_userdir-1.1.17.tar.bz2'
5 5
6
%define		__module_name	ldap_userdir
7
8
Name:		mod_%{__module_name}
9 34
Version:	1.1.17
10 5
Release:	1
11
URL:		http://horde.net/~jwm/software/mod_ldap_userdir/
12
Source:		%{name}-%{version}.tar.bz2
13
Source1:	%{__module_name}.conf
14
Group:		System Environment/Daemons
15
License:	GPL
16
Requires:	httpd
17
BuildRequires:	httpd-devel
18
Requires:	openldap
19
BuildRequires:	openldap-devel
20
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
21
Summary:	Apache module for looking up /~user URLs from an LDAP directory.
22
23
%description
24
The mod_ldap_userdir package enables the Apache web server to look
25
up user home directories (for /~user URLs) from an LDAP directory.
26
It is authored by John Morrissey <jwm@horde.net>.
27
28
%define		__httpd_modules	%(apxs -q LIBEXECDIR)
29
%define		__httpd_conf_d	%(apxs -q SYSCONFDIR).d
30
31
%prep
32
%setup		-q
33
34
%build
35
./configure	--with-activate	\
36
		--with-apxs	\
37
		%{?_with_tls:--with-tls}
38
make
39
40
%install
41
[ "$RPM_BUILD_ROOT" != "/" ]	&&	rm	-rf ${RPM_BUILD_ROOT}
42
#apxs -i -a -n %{__module_name} %{name}.so
43
install		-d			${RPM_BUILD_ROOT}%{__httpd_modules}
44
install		-m 755	%{name}.so	${RPM_BUILD_ROOT}%{__httpd_modules}
45
install		-d			${RPM_BUILD_ROOT}%{__httpd_conf_d}
46
install		-m 644	%{SOURCE1}	${RPM_BUILD_ROOT}%{__httpd_conf_d}
47
48
%clean
49
[ "$RPM_BUILD_ROOT" != "/" ]	&&	rm	-rf ${RPM_BUILD_ROOT}
50
51
%post
52
#apxs -e -a -n %{__module_name} %{name}.so
53
echo		-e	!!!	'\t'	Please modify %{__httpd_conf_d}/%{__module_name}.conf	'\t'	!!!
54
echo		-e	!!!	'\t'	according to your LDAP settings before restarting Apache		'\t'	!!!
55
56
%files
57
%defattr(-,root,root)
58
%{__httpd_modules}/%{name}.so
59
%{__httpd_conf_d}/%{__module_name}.conf
60
61
%changelog

Loggerhead 1.17 is a web-based interface for Bazaar branches