1 %define mod_name auth_samba
2 Summary: This is the samba authentication module for Apache
3 Name: apache-mod_%{mod_name}
7 Group: Networking/Daemons
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
10 Source0: ftp://download.sourceforge.net/pub/sourceforge/modauthsamba/mod_%{mod_name}-%{version}.tar.gz
11 Patch0: %{name}-symbol_fix.patch
12 BuildRequires: /usr/sbin/apxs
13 BuildRequires: apache(EAPI)-devel
14 Prereq: /usr/sbin/apxs
15 Requires: apache(EAPI)
16 URL: http://modauthsamba.sourceforge.net/
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
22 This is an authentication module for Apache that allows you to
23 authenticate HTTP clients using user entries in an samba directory.
26 %setup -q -n mod_%{mod_name}
30 /usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_pkglibdir}
36 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
39 /usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
40 if [ -f /var/lock/subsys/httpd ]; then
41 /etc/rc.d/init.d/httpd restart 1>&2
45 if [ "$1" = "0" ]; then
46 /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
47 if [ -f /var/lock/subsys/httpd ]; then
48 /etc/rc.d/init.d/httpd restart 1>&2
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_pkglibdir}/*