Skip to content

Commit

Permalink
Add RPM spec file and sample config
Browse files Browse the repository at this point in the history
(contributed by Omachonu Ogali <oogali@gmail.com>).
  • Loading branch information
manuelkasper committed Sep 20, 2009
1 parent 71d3c9f commit 612d288
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mod_auth_pubtkt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
LoadModule auth_pubtkt_module modules/mod_auth_pubtkt.so

#TKTAuthPublicKey conf.d/auth/pubkey-rsa.pem
#
#<Directory /path/protected/by/sso>
# Order allow,deny
# Allow from all
#
# AuthType mod_auth_pubtkt
# TKTAuthLoginURL http://sso.company.com/sso/login
# TKTAuthTimeoutURL http://sso.company.com/sso/login?timeout=1
# TKTAuthUnauthURL http://sso.company.com/sso/login?unauth=1
#
# TKTAuthCookieName "auth_pubtkt"
# TKTAuthRequireSSL off
#
# require valid-user
#</Directory>
49 changes: 49 additions & 0 deletions mod_auth_pubtkt.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Summary: Ticket-based authorization module for the Apache HTTP Server
Name: mod_auth_pubtkt
Version: 0.6
Release: 0
License: Apache
Group: Applications/System
Source0: https://neon1.net/mod_auth_pubtkt/mod_auth_pubtkt-0.6.tar.gz
Source1: mod_auth_pubtkt.conf
URL: https://neon1.net/mod_auth_pubtkt/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: httpd-devel, openssl-devel
Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo httpd-devel missing)
Requires: openssl

%description
Single sign-on module for Apache, based on mod_auth_tkt.

%prep
%setup -q

%build
./configure --apxs=%{_sbindir}/apxs
%{_sbindir}/apxs -c -Wc,"-Wall -ansi" -Wl,-lcrypto src/mod_auth_pubtkt.c

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/%{_libdir}/httpd/modules
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d

install -m 755 src/.libs/mod_auth_pubtkt.so %{buildroot}/%{_libdir}/httpd/modules
install -m 644 %{_sourcedir}/auth_pubtkt.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/

rm -f %{buildroot}/%{_libdir}/httpd/modules/{*.la,*.so.*}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_libdir}/httpd/modules/*.so
%{_sysconfdir}/httpd/conf.d/auth_pubtkt.conf

%changelog
* Sat Sep 19 2009 Omachonu Ogali <oogali@currenex.com> 0.6-0
- Updated to latest version of mod_auth_pubtkt [0.6]

* Tue Sep 08 2009 Omachonu Ogali <oogali@currenex.com> 0.5-0
- Initial package creation

0 comments on commit 612d288

Please sign in to comment.