From: serek Date: Mon, 28 May 2001 20:49:44 +0000 (+0000) Subject: - new & works for me. X-Git-Tag: apache-mod_auth_samba-1_1-1~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_auth_samba.git;a=commitdiff_plain;h=ead9fb75b6d7d9edb7198de9e88604f6c94263d2 - new & works for me. Changed files: apache1-mod_auth_samba.spec -> 1.1 --- ead9fb75b6d7d9edb7198de9e88604f6c94263d2 diff --git a/apache1-mod_auth_samba.spec b/apache1-mod_auth_samba.spec new file mode 100644 index 0000000..ae821bb --- /dev/null +++ b/apache1-mod_auth_samba.spec @@ -0,0 +1,57 @@ +%define mod_name auth_samba +Summary: This is the samba authentication module for Apache +Name: apache-mod_%{mod_name} +Version: 1.1 +Release: 1 +License: GPL +Group: Networking/Daemons +Group(pl): Sieciowe/Serwery +Source0: ftp://download.sourceforge.net/pub/sourceforge/modauthsamba/mod_%{mod_name}-%{version}.tar.gz +BuildRequires: /usr/sbin/apxs +BuildRequires: apache(EAPI)-devel +Prereq: /usr/sbin/apxs +Requires: apache(EAPI) +URL: http://modauthsamba.sourceforge.net/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR) + +%description +This is an authentication module for Apache that allows you to +authenticate HTTP clients using user entries in an samba directory. + +%prep +%setup -q -n mod_%{mod_name} + +%build +/usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_pkglibdir} + +install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} + +strip --strip-unneeded $RPM_BUILD_ROOT%{_pkglibdir}/* + +%post +%{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 +if [ -f /var/lock/subsys/httpd ]; then + %{_sysconfdir}/rc.d/init.d/httpd restart 1>&2 +fi + +%preun +if [ "$1" = "0" ]; then + /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 + if [ -f /var/lock/subsys/httpd ]; then + /etc/rc.d/init.d/httpd restart 1>&2 + fi +fi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_pkglibdir}/*