From 2824a675034964be64716cc65595d6fe9ecbde95 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Jun 2012 18:43:31 +0200 Subject: reorg repo --- Makefile | 4 ++ auth_cas.conf | 6 +++ mod_auth_cas-1.0.8.1-fixbuild.patch | 12 +++++ mod_auth_cas.spec | 93 +++++++++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 Makefile create mode 100644 auth_cas.conf create mode 100644 mod_auth_cas-1.0.8.1-fixbuild.patch create mode 100644 mod_auth_cas.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/auth_cas.conf b/auth_cas.conf new file mode 100644 index 0000000..c8980b8 --- /dev/null +++ b/auth_cas.conf @@ -0,0 +1,6 @@ +# +# mod_auth_cas is an Apache 2.0/2.2 compliant module that supports the +# CASv1 and CASv2 protocols +# + +LoadModule auth_cas_module modules/mod_auth_cas.so diff --git a/mod_auth_cas-1.0.8.1-fixbuild.patch b/mod_auth_cas-1.0.8.1-fixbuild.patch new file mode 100644 index 0000000..6fa5544 --- /dev/null +++ b/mod_auth_cas-1.0.8.1-fixbuild.patch @@ -0,0 +1,12 @@ +--- mod_auth_cas-1.0.8.1/Makefile.in.fixbuild ++++ mod_auth_cas-1.0.8.1/Makefile.in +@@ -1,7 +1,7 @@ +-APXS_LIBEXECDIR:=$(shell /usr/bin/apxs2 -q LIBEXECDIR) ++APXS_LIBEXECDIR:=$(shell @APXS@ -q LIBEXECDIR) + + all: +- @APXS@ -c src/mod_auth_cas.c ++ @APXS@ -c src/mod_auth_cas.c -lssl -lcrypto + + install: + if test ! -d ${DESTDIR}${APXS_LIBEXECDIR}; then mkdir -p ${DESTDIR}${APXS_LIBEXECDIR}; fi diff --git a/mod_auth_cas.spec b/mod_auth_cas.spec new file mode 100644 index 0000000..5502bd5 --- /dev/null +++ b/mod_auth_cas.spec @@ -0,0 +1,93 @@ +%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}} +%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} +%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} + + +Name: mod_auth_cas +Version: 1.0.8.1 +Release: 5%{?dist} +Summary: Apache 2.0/2.2 compliant module that supports the CASv1 and CASv2 protocols + +Group: System Environment/Daemons +License: GPLv3+ with exceptions +URL: http://www.ja-sig.org/wiki/display/CASC/mod_auth_cas +# The source for this package was pulled from the upstream's vcs. Their +# releases are stored in SVN instead of exported to a tar.gz, I used the +# following commands to do so: +# svn export https://source.jasig.org/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.8.1 mod_auth_cas-1.0.8.1 + +# tar -czvf mod_auth_cas-1.0.8.1.tar.gz mod_auth_cas-1.0.8.1/ +Source0: mod_auth_cas-1.0.8.1.tar.gz +Source1: auth_cas.conf + +Patch0: mod_auth_cas-1.0.8.1-fixbuild.patch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: openssl-devel +BuildRequires: httpd-devel + +Requires: httpd + +%description +mod_auth_cas is an Apache 2.0/2.2 compliant module that supports the CASv1 +and CASv2 protocols + +%prep +%setup -q + +%patch0 -p1 -b .fixbuild + +%build +%configure --with-apxs=%{_httpd_apxs} +make %{?_smp_mflags} + + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} LIBEXECDIR=%{_httpd_moddir} +%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}" +# httpd <= 2.2.x +install -Dp -m 644 %{SOURCE1} %{buildroot}%{_httpd_modconfdir}/auth_cas.conf +%else +# httpd >= 2.4.x +install -Dp -m 644 %{SOURCE1} %{buildroot}%{_httpd_modconfdir}/10-auth_cas.conf +%endif + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc README +%{_libdir}/httpd/modules/*.so +%config(noreplace) %{_httpd_modconfdir}/*.conf + +%changelog +* Wed May 2 2012 Remi Collet - 1.0.8.1-5 +- sync with rawhide, rebuild for remi repo + +* Wed May 2 2012 Joe Orton - 1.0.8.1-5 +- update packaging (#803065) + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.8.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.0.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jun 29 2010 Adam Miller - 1.0.8.1-2 +- Fixed svn export link, upstream changed canonical URL names. + +* Wed Apr 28 2010 Adam Miller - 1.0.8.1-1 +- added requires of httpd +- fixed mixed use of macros +- updated to latest version + +* Fri Aug 07 2009 Adam Miller - 1.0.8-1 +- First attempt to package mod_auth_cas for Fedora + -- cgit