[mod_auth_shadow] updated to latest version
Jan Klepek
hpejakle at fedoraproject.org
Mon Apr 9 15:46:08 UTC 2012
commit f9ef8edeaf555084d52174c848150a31c0b67750
Author: Jan Klepek <jan.klepek at gmail.com>
Date: Mon Apr 9 12:45:51 2012 -0400
updated to latest version
.gitignore | 1 +
mod_auth_shadow.spec | 25 ++++++++++++-------------
sources | 2 +-
3 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 63e9956..1d37450 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
mod_auth_shadow-2.2.tar.gz
+/mod_auth_shadow-2.3.tar.gz
diff --git a/mod_auth_shadow.spec b/mod_auth_shadow.spec
index c150749..b18c7f6 100644
--- a/mod_auth_shadow.spec
+++ b/mod_auth_shadow.spec
@@ -1,23 +1,21 @@
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
-
Name: mod_auth_shadow
-Version: 2.2
-Release: 11%{?dist}
+Version: 2.3
+Release: 1%{?dist}
Source: http://downloads.sourceforge.net/mod-auth-shadow/%{name}-%{version}.tar.gz
Source1: mod_auth_shadow.conf
-Patch0: mod_auth_shadow-2.2-CVE-2010-1151.patch
URL: http://mod-auth-shadow.sourceforge.net
License: GPLv2+
Group: System Environment/Daemons
Summary: An Apache module for authentication using /etc/shadow
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: httpd-devel
-Requires: httpd-mmn = %{_httpd_mmn}
+Requires: httpd-mmn = %{_httpd_mmn}
%description
When performing this task one encounters one fundamental
difficulty: The /etc/shadow file is supposed to be
-read/writeable only by root. However, the webserver is
+read/writable only by root. However, the web server is
supposed to run under a non-root user, such as "nobody".
mod_auth_shadow addresses this difficulty by opening a pipe
@@ -27,17 +25,15 @@ error message to the system log, and waits three seconds
before exiting.
%prep
-%setup -q
+%setup -q -n %{name}_%{version}
sed -i 's#/usr/local#/usr#' makefile
sed -i 's/chown/#chown/' makefile
sed -i 's/chmod/#chmod/' makefile
-%patch0 -p1 -b .CVE-2010-1151
-
%build
gcc -o validate validate.c -lcrypt
-make %{?_smp_mflags} all
+%{_httpd_apxs} -D INSTBINDIR=\\\"%{_sbindir}\\\" -c mod_auth_shadow.c
%install
rm -rf $RPM_BUILD_ROOT
@@ -45,7 +41,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/httpd/modules
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
install validate $RPM_BUILD_ROOT/%{_sbindir}
-install .libs/mod_auth_shadow.so $RPM_BUILD_ROOT/%{_libdir}/httpd/modules
+install .libs/mod_auth_shadow.so $RPM_BUILD_ROOT/%{_httpd_moddir}
install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/
%clean
@@ -54,11 +50,14 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(4755,root,root) %{_sbindir}/validate
-%{_libdir}/httpd/modules/*
+%{_httpd_moddir}/*
%attr(0644,root,root) %config(noreplace) /etc/httpd/conf.d/%{name}.conf
-%doc CHANGES INSTALL README COPYING
+%doc CHANGES README COPYING
%changelog
+* Mon Apr 09 2012 Jan Klepek <jan.klepek at gmail.com> - 2.3-1
+- updated to latest version
+
* Sat Mar 17 2012 Jan Klepek <jan.klepek at gmail.com> - 2.2-11
- updated requires
diff --git a/sources b/sources
index 1ad09e6..a181457 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-066aee9d2c3c19cbf9f0d42e5b9c59a0 mod_auth_shadow-2.2.tar.gz
+3a7c4e053edd148a18d1eeee54cb73f7 mod_auth_shadow-2.3.tar.gz
More information about the scm-commits
mailing list