]> git.pld-linux.org Git - packages/apache-mod_auth_pam.git/blobdiff - apache-mod_auth_pam.spec
- config manipulation in post/preun scripts replaced by config file
[packages/apache-mod_auth_pam.git] / apache-mod_auth_pam.spec
index 759a03243601d05e60753ce02db1b6c81700760a..0bdfede04ad0abad145157bf196bead2a5a8615d 100644 (file)
@@ -6,19 +6,20 @@ Summary(pl):  Modu
 Summary(pt_BR):        Este módulo provê autenticação PAM para o Apache
 Name:          apache-mod_%{mod_name}
 Version:       2.0
-Release:       1
+Release:       3
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://pam.sourceforge.net/mod_%{mod_name}/dist/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: 561a495f27e6cc810641bd6ce6db3d02
+Source1:       apache-mod_auth_pam.conf
 Patch0:                %{name}-missing_constant.patch
 URL:           http://pam.sourceforge.net/mod_auth_pam/
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2
-Requires(post,preun):  %{apxs}
 Requires:      apache >= 2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sysconfdir     /etc/httpd
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
 
 %description
@@ -41,30 +42,27 @@ diret
 %patch0 -p0
 
 %build
-%{apxs} -c mod_%{mod_name}2.c   -o mod_%{mod_name}2.so   -lpam -Wl,-shared
-%{apxs} -c mod_auth_etc_group.c -o mod_auth_etc_group.so -lpam -Wl,-shared
+%{apxs} -c mod_%{mod_name}2.c   -o mod_%{mod_name}2.la   -lpam
+%{apxs} -c mod_auth_etc_group.c -o mod_auth_etc_group.la -lpam
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},/etc/pam.d}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},/etc/pam.d,%{_sysconfdir}/httpd.conf/}
 
-install mod_*.so $RPM_BUILD_ROOT%{_pkglibdir}
+install .libs/mod_*.so $RPM_BUILD_ROOT%{_pkglibdir}
 install ../samples/httpd- $RPM_BUILD_ROOT/etc/pam.d/httpd
+install %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/httpd.conf/52_mod_auth_pam.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{apxs} -e -a -n %{mod_name}2   %{_pkglibdir}/mod_%{mod_name}2.so   1>&2
-%{apxs} -e -a -n auth_etc_group %{_pkglibdir}/mod_auth_etc_group.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n %{mod_name}2   %{_pkglibdir}/mod_%{mod_name}2.so   1>&2
-       %{apxs} -e -A -n auth_etc_group %{_pkglibdir}/mod_auth_etc_group.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
@@ -74,4 +72,5 @@ fi
 %defattr(644,root,root,755)
 %doc ../doc/{configure,faq}.txt ../samples/dot-htaccess ../README
 %config(noreplace) /etc/pam.d/httpd
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_pam.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.067303 seconds and 4 git commands to generate.