Summary: Web authentication (webauth) module for the Apache 2.x web servers Name: webauth Version: 4.5.5 Release: 1 Group: System Environment/Daemons URL: http://webauth.stanford.edu Source: http://webauth.stanford.edu/dist/webauth-%{version}.tar.gz License: MIT Vendor: Stanford University Distribution: EL BuildRequires: httpd-devel >= 2.0.40-11, openssl-devel >= 0.9.7 #BuildRequires: e2fsprogs-devel BuildRequires: krb5-devel, curl-devel Requires: httpd >= 2.0.40 Requires: mod_ssl Requires: cyrus-sasl-gssapi Requires: curl BuildRequires: libtool BuildRequires: openldap-devel BuildRequires: glibc-common BuildRequires: perl-Module-Build BuildRequires: perl-CGI-Application, perl-CGI-Application-Plugin-AutoRunmode BuildRequires: perl-CGI-Application-Plugin-Forward BuildRequires: perl-CGI-Application-Plugin-Redirect BuildRequires: perl-CGI-Application-Plugin-TT BuildRequires: perl-IO-All BuildRequires: perl-LWP-Protocol-https #BuildRequires: perl-Template\* BuildRequires: perl-URI #BuildRequires: perl-XML BuildRequires: perl-Cache-Memcached #BuildRequires: perl-Date-Parse BuildRequires: perl-Digest-SHA BuildRequires: remctl-perl BuildRequires: perl-Time-Duration %description WebAuth is an authentication system for web pages and web applications. The first time a user attempts to access a web page protected by WebAuth, they will be sent to a central login server (weblogin.stanford.edu at Stanford) and prompted to authenticate. Normally, they will be asked for a username and password, although other authentication methods are possible. Once the user has logged in, the weblogin server will send their encrypted identity back to the original web page they were trying to access. Their identity will also be stored in a cookie set by the weblogin server and they will not need to authenticate again until their credentials expire, even if they visit multiple protected web sites. %prep %setup -q # patch .load scripts for current arch sed 's|/usr/lib/apache2/|%{_libdir}/httpd/|g' conf/debian/webauth*.load %build %configure \ --with-openssl=%{_prefix} --with-curl=%{_prefix} \ --with-apxs=apxs \ --with-ldap=%{_prefix} --with-krb5=%{_prefix} \ --without-remctl \ --enable-webkdc make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %make_install mv -f $RPM_BUILD_ROOT%{_libexecdir}/apache2 $RPM_BUILD_ROOT%{_libdir}/httpd mv -f $RPM_BUILD_ROOT/usr/local/lib*/perl5 $RPM_BUILD_ROOT%{_libdir}/ mv -f $RPM_BUILD_ROOT/usr/local/share/man/man3 $RPM_BUILD_ROOT%{_mandir}/man3/ #mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules #install -m 755 lib/.libs/libwebauth.so.*.0.0 $RPM_BUILD_ROOT%{_libdir} #install -m 755 modules/ldap/.libs/mod_webauthldap.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules #install -m 755 modules/webauth/.libs/mod_webauth.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules #mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT/usr/share/man/man1/ #install -m 755 tools/.libs/wa_keyring $RPM_BUILD_ROOT%{_bindir} #install -m 644 tools/wa_keyring.1 $RPM_BUILD_ROOT/usr/share/man/man1/wa_keyring.1 #gzip $RPM_BUILD_ROOT/usr/share/man/man1/wa_keyring.1 mkdir -p $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version} #install -m 644 INSTALL $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version} #install -m 644 README $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version}/README #install -m 644 NEWS $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version} cp -rp conf $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version} # convert to UTF-8 # cp -rp docs $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version} for i in `ls docs | grep -v -e diagram -e scripts`; do iconv -f ISO-8859-1 -t UTF-8 docs/$i > $RPM_BUILD_ROOT/$RPM_DOC_DIR/webauth-%{version}/$i done mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d cp -rp conf/debian/webauth.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/ cp -rp conf/debian/webauth.load $RPM_BUILD_ROOT/etc/httpd/conf.d/webauth-load.conf cp -rp conf/debian/webauthldap.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/ cp -rp conf/debian/webauthldap.load $RPM_BUILD_ROOT/etc/httpd/conf.d/webauthldap-load.conf mkdir -p $RPM_BUILD_ROOT/etc/webauth/ mkdir -p $RPM_BUILD_ROOT/var/lib/webauth/ %files %defattr(-,root,root) %{_libdir}/httpd/modules/* %{_libdir}/libweb* %{_bindir}/wa_keyring %config(noreplace) /etc/httpd/conf.d/* %doc %{_docdir}/webauth-%{version} %doc /usr/share/man/man1/wa_keyring.1* %dir /etc/webauth %defattr(-,root,apache,0770) %dir /var/lib/webauth # perl %{_libdir}/perl5/* %{_mandir}/man3/* # webkdc /usr/share/weblogin # debug %{_includedir}/webauth %{_libdir}/pkgconfig/libwebauth.pc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Wed Jul 25 2012 Darren Patterson 4.2.2-1 - updated to 4.2.2 * Thu Mar 29 2012 Darren Patterson 4.1.0-2 - adjust configure: --without-remctl * Wed Mar 28 2012 Darren Patterson 4.1.0-1 - updated to 4.1.0, remove unneeded req remctl-client/devel * Fri Dec 2 2011 Darren Patterson 4.0.2-1 - updated to 4.0.2 * Tue Oct 11 2011 Darren Patterson 4.0.1-1 - updated to 4.0.1 * Fri Sep 23 2011 Darren Patterson 3.7.4-1 - updated to 3.7.4 * Fri Aug 13 2010 Darren Patterson 3.7.3-1 - updated to 3.7.3 * Fri Aug 13 2010 Darren Patterson 3.7.2-1 - updated to 3.7.2 * Fri Jul 23 2010 Darren Patterosn 3.7.1-1 - updated to 3.7.1 * Wed Nov 11 2009 Darren Patterson 3.6.1-3 - removed httpd condrestart. * Mon Nov 9 2009 Darren Patterson 3.6.1-2 - include real wa_keyring. - rpmlint cleanup. - removed RHEL3 support (hack to use ancient krb5-SU). * Thu Jul 16 2009 Darren Patterson 3.6.1-1 - built 3.6.1 * Fri Jun 13 2008 Darren Patterson 3.6.0-2 - rebuild without krb5-SU * Wed Apr 2 2008 Darren Patterson 3.6.0-1 - updated to 3.6.0. * Mon May 7 2007 Darren Patterson 3.5.4-1 - update to 3.5.4 * Wed Apr 4 2007 Darren Patterson 3.5.3-2 - Substantial changes to use configuration as similar to deb as possible. - Stanford users will now need the stanford-server RPM. * Thu Oct 5 2006 Darren Patterson 3.5.3-1 - updated for 3.5.3 * Tue Sep 12 2006 Digant C Kasundra 3.5.1-4 - Moved stanford-webauth.conf back into the httpd conf.d dir to match the behavior of the debian package * Wed Jun 28 2006 Darren Patterson 3.5.1-3 - Changed rhel3 requirements to include openldap * Mon Jun 12 2006 Darren Patterson 3.5.1-2 - Made an attempt to support fedora core and added comments for users who may want to try and change/update the spec later to fix FC/CentOS(/other OS?) build issues. - Moved stanford-webauth.conf to doc dir instead of httpd conf.d dir. * Sun Jun 11 2006 Darren Patterson 3.5.1-1 - updated release for 64-bit fixes * Wed May 31 2006 Darren Patterson 3.5.0-2 - removed configure option that made rhel3 balk * Tue May 30 2006 Darren Patterson - added rel option for different rhel releases * Mon May 22 2006 Darren Patterson - changed httpd restart to "condrestart" * Fri May 19 2006 Darren Patterson 3.5.0 - updated to latest release - removed module *.la and *.a files because they are extraneous. - changed README to install as README instead of LICENSE * Thu Apr 14 2005 Joe Little 3.2.4-2 - fixed inclusion of default configs * Thu Mar 10 2005 Joe Little 3.2.4-1 - fixed webauthldap/webauth mod builds - fixed library versioning of symlinks - still lacks webkdc build * Tue Apr 1 2003 Joe Little 3.0.0-1 - first build - enable-perl is not used; no perl bindings packaged