2007-01-15 23:29:39 +00:00
|
|
|
#
|
2008-10-27 16:07:20 +00:00
|
|
|
# spec file for package perl-Apache-AuthCookie (Version 3.12)
|
2007-01-15 23:29:39 +00:00
|
|
|
#
|
2008-10-27 16:07:20 +00:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:29:39 +00:00
|
|
|
#
|
2008-10-27 16:07:20 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:29:39 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-10-27 16:07:20 +00:00
|
|
|
|
2007-01-15 23:29:39 +00:00
|
|
|
Name: perl-Apache-AuthCookie
|
|
|
|
BuildRequires: apache2-mod_perl
|
2008-10-27 16:07:20 +00:00
|
|
|
Url: http://search.cpan.org/~mschout/Apache-AuthCookie
|
2007-01-15 23:29:39 +00:00
|
|
|
License: Artistic License
|
2008-10-27 16:07:20 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2007-01-15 23:29:39 +00:00
|
|
|
Requires: apache2-mod_perl >= 2
|
2008-10-27 16:07:20 +00:00
|
|
|
AutoReqProv: on
|
2007-01-15 23:29:39 +00:00
|
|
|
Summary: Apache/Perl Authentication and Authorization via cookies
|
2008-10-27 16:07:20 +00:00
|
|
|
Version: 3.12
|
2007-01-15 23:29:39 +00:00
|
|
|
Release: 1
|
|
|
|
Source: Apache-AuthCookie-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Apache::AuthCookie allows you to intercept a user's first
|
|
|
|
unauthenticated access to a protected document. The user will be
|
|
|
|
presented with a custom form where they can enter authentication
|
|
|
|
credentials. The credentials are posted to the server where AuthCookie
|
|
|
|
verifies them and returns a session key.
|
|
|
|
|
|
|
|
The session key is returned to the user's browser as a cookie. As a
|
|
|
|
cookie, the browser will pass the session key on every subsequent
|
|
|
|
accesses. AuthCookie will verify the session key and re-authenticate
|
|
|
|
the user.
|
|
|
|
|
|
|
|
All you have to do is write a custom module that inherits from
|
|
|
|
AuthCookie.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Michael Schout <mschout@gkg.net>
|
|
|
|
Ken Williams <ken@forum.swarthmore.edu>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n Apache-AuthCookie-%{version}
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL
|
|
|
|
make
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README README.modperl2
|
|
|
|
%doc %{_mandir}/man?/Apache::AuthCookie.3pm.gz
|
|
|
|
%doc %{_mandir}/man?/Apache2::AuthCookie.3pm.gz
|
|
|
|
%dir %{perl_vendorlib}/Apache
|
|
|
|
%dir %{perl_vendorlib}/Apache/AuthCookie
|
|
|
|
%dir %{perl_vendorlib}/Apache2
|
|
|
|
%{perl_vendorlib}/Apache/AuthCookie.pm
|
|
|
|
%{perl_vendorlib}/Apache/AuthCookie/Util.pm
|
|
|
|
%{perl_vendorlib}/Apache2/AuthCookie.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Apache
|
|
|
|
%dir %{perl_vendorarch}/auto/Apache/AuthCookie
|
|
|
|
%{perl_vendorarch}/auto/Apache/AuthCookie/.packlist
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
2008-10-27 16:07:20 +00:00
|
|
|
%changelog
|
|
|
|
* Mon Oct 27 2008 cwh@suse.de
|
|
|
|
Version: 3.12
|
|
|
|
- Makefile.PL If no mod_perl version is found, just require mod_perl2.
|
|
|
|
This makes sure that CPAN testers will get the right dependencies.
|
|
|
|
way. Also set up PREREQ_PM properly for mod_perl version 1.
|
|
|
|
Version: 3.11
|
|
|
|
- Fix tiny pod doc error.
|
|
|
|
- Escape CR and LF in 'destination' field to prevent possible XSS attack
|
|
|
|
[Steffen Schwigon]
|
|
|
|
* Thu Jul 13 2006 cwh@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
Version: 3.10
|
|
|
|
- Bug Fix: when copying user from prev request, check that $r->prev
|
|
|
|
is defined, not just that $r->is_initial_request is true.
|
|
|
|
Version: 3.09
|
|
|
|
- POD doc fixes.
|
|
|
|
- MP2: remove _check_request_req() - this was only necessary when
|
|
|
|
running under both MP1 and MP2. Package name change eliminates the
|
|
|
|
need for this.
|
|
|
|
- test suite converted to Test::More style test suites.
|
|
|
|
- descriptive test descriptions added
|
|
|
|
- make login() stash credentials in $r->pnotes("${AuthName}Creds") so
|
|
|
|
that the login form can access the user-supplied credentials if the
|
|
|
|
login fails.
|
|
|
|
- bug fix: use of Apache2::URI::unescape_url() does not handle
|
|
|
|
'+' to ' ' conversion. This caused problems for credentials
|
|
|
|
that contain spaces.
|
|
|
|
- MP2: remove mod_perl features from "use mod_perl2" line. This is
|
|
|
|
no longer supported by mod_perl2.
|
|
|
|
- MP2: _get_form_data() - switch to CGI.pm to handle form data (fixes
|
|
|
|
several form data handling bugs)
|
|
|
|
- In a subrequest, copy $r->prev->user to $r->user (or r->connection->user
|
|
|
|
for MP1).
|
|
|
|
- remove Apache2::AuthCookie::Util - no longer necessary
|
|
|
|
- multi-valued form fields are now handled properly in POST -> GET conversion
|
|
|
|
- MP2: require CGI.pm 3.12 or later
|
2008-10-27 16:07:20 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-10-27 16:07:20 +00:00
|
|
|
* Thu Sep 29 2005 dmueller@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- add %%defattr
|
2008-10-27 16:07:20 +00:00
|
|
|
* Wed Sep 28 2005 dmueller@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- add norootforbuild
|
2008-10-27 16:07:20 +00:00
|
|
|
* Fri Jul 29 2005 cthiel@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- update to 3.08
|
|
|
|
- fixed %%files
|
2008-10-27 16:07:20 +00:00
|
|
|
* Mon Feb 21 2005 cwh@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- updated to v3.05
|
2008-10-27 16:07:20 +00:00
|
|
|
* Tue May 25 2004 cwh@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- fixed %%files
|
|
|
|
- fixed Requires
|
2008-10-27 16:07:20 +00:00
|
|
|
* Tue May 25 2004 cwh@suse.de
|
2007-01-15 23:29:39 +00:00
|
|
|
- initial release
|