]> git.pld-linux.org Git - packages/apache-mod_cfg_ldap.git/blob - apache-mod_cfg_ldap.spec
- added
[packages/apache-mod_cfg_ldap.git] / apache-mod_cfg_ldap.spec
1 %define         apxs            /usr/sbin/apxs
2 Summary:        Module to keep Apache VirtualHost configuration in an LDAP directory.
3 %define tarname mod_cfg_ldap
4 Name:           apache-%{tarname}
5 Version:        1.1
6 Release:        1
7 Group:          Networking/Daemons
8 URL:            http://modcfgldap.sourceforge.net/
9 Source0:        http://dl.sourceforge.net/modcfgldap/%{tarname}-%{version}.tar.gz
10 # Source0-md5:  42f4018277a2d3673d765d1bfd884c89
11 License:        BSD
12 BuildRequires:  %{apxs}
13 BuildRequires:  apache-devel
14 BuildRequires:  db-devel >= 4.2.52
15 Requires(post,preun):   %{apxs}
16 Requires:       apache
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 mod_cfg_ldap allows you to keep your virtual host configuration in a
21 LDAP directory and update it in nearly realtime.
22
23 %prep
24 %setup -q -n %{tarname}-%{version}
25
26 %build
27 %{__make} all
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
33 install -m755 .libs/%{tarname}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
34
35 # Install the config file
36 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf
37 install cfg_ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/85_mod_cfg_ldap.conf
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc AUTHORS ChangeLog INSTALL README TODO
45 %{_libdir}/httpd/modules/*.so
46 %config(noreplace) %{_sysconfdir}/httpd/httpd.conf/*.conf
This page took 0.035361 seconds and 4 git commands to generate.