rpms/mod_auth_shadow/devel mod_auth_shadow.conf, NONE, 1.1 mod_auth_shadow.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
David Anderson (anderson)
fedora-extras-commits at redhat.com
Tue Apr 3 06:46:52 UTC 2007
Author: anderson
Update of /cvs/extras/rpms/mod_auth_shadow/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22108/devel
Modified Files:
.cvsignore sources
Added Files:
mod_auth_shadow.conf mod_auth_shadow.spec
Log Message:
Initial import
--- NEW FILE mod_auth_shadow.conf ---
LoadModule auth_shadow_module modules/mod_auth_shadow.so
# <Location /test>
# AuthType Basic
# AuthName WhateverAuthnameYouWant
# AuthShadow on
# require valid-user
# </Location>
--- NEW FILE mod_auth_shadow.spec ---
Name: mod_auth_shadow
Version: 2.2
Release: 1%{?dist}
Source: http://downloads.sourceforge.net/mod-auth-shadow/%{name}-%{version}.tar.gz
Source1: mod_auth_shadow.conf
URL: http://mod-auth-shadow.sourceforge.net
License: GPL
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
%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
supposed to run under a non-root user, such as "nobody".
mod_auth_shadow addresses this difficulty by opening a pipe
to an suid root program, validate, which does the actual
validation. When there is a failure, validate writes an
error message to the system log, and waits three seconds
before exiting.
%prep
%setup -q
sed -i 's#/usr/local#/usr#' makefile
%build
gcc -o validate validate.c -lcrypt
make %{?_smp_mflags} all
%install
rm -rf $RPM_BUILD_ROOT
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 -p %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(4755,root,root) %{_sbindir}/validate
%{_libdir}/httpd/modules/*
%attr(0644,root,root) %config(noreplace) /etc/httpd/conf.d/%{name}.conf
%doc CHANGES INSTALL README COPYING
%changelog
* Mon Apr 02 2007 David Anderson <fedora-packaging at dw-perspective.org.uk> 2.2-1
- Upstream new release (includes license file)
* Sat Mar 24 2007 David Anderson <fedora-packaging at dw-perspective.org.uk> 2.1-3
- First packaging for Fedora Extras (modified from upstream spec file)
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mod_auth_shadow/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 3 Apr 2007 00:42:00 -0000 1.1
+++ .cvsignore 3 Apr 2007 06:46:19 -0000 1.2
@@ -0,0 +1 @@
+mod_auth_shadow-2.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mod_auth_shadow/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 3 Apr 2007 00:42:00 -0000 1.1
+++ sources 3 Apr 2007 06:46:19 -0000 1.2
@@ -0,0 +1 @@
+066aee9d2c3c19cbf9f0d42e5b9c59a0 mod_auth_shadow-2.2.tar.gz
More information about the scm-commits
mailing list