Bug 168710 - [PATCH] www/mod_auth_cas: update to 1.0.9.1
Summary: [PATCH] www/mod_auth_cas: update to 1.0.9.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Olli Hauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 13:10 UTC by geoffroy desvernay
Modified: 2012-08-25 17:50 UTC (History)
1 user (show)

See Also:


Attachments
ap22-mod_auth_cas-1.0.9.1.patch (1.79 KB, patch)
2012-06-05 13:10 UTC, geoffroy desvernay
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description geoffroy desvernay 2012-06-05 13:10:10 UTC
- Update to 1.0.9.1
Upstream update, adding SAML validation + bug fixes
https://source.jasig.org/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.9.1/README

- Change MASTER_SITE url (changed upstream)

upstream now use autotools, but it seems to work without so I simply added libcurl dependency 
and linking

Port maintainer (apache@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: suffix)
Comment 1 Edwin Groothuis freebsd_committer 2012-06-05 13:38:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Olli Hauer freebsd_committer 2012-08-25 16:16:35 UTC
Responsible Changed
From-To: apache->ohauer

I'll take it
Comment 3 dfilter service freebsd_committer 2012-08-25 17:49:11 UTC
Author: ohauer
Date: Sat Aug 25 16:48:55 2012
New Revision: 303150
URL: http://svn.freebsd.org/changeset/ports/303150

Log:
  - update to version 1.0.9.1
  - add pkg-message
  
  PR:		ports/168710
  Submitted by:	Geoffroy Desvernay <dgeo@centrale-marseille.fr>

Added:
  head/www/mod_auth_cas/pkg-message   (contents, props changed)
Modified:
  head/www/mod_auth_cas/Makefile   (contents, props changed)
  head/www/mod_auth_cas/distinfo   (contents, props changed)

Modified: head/www/mod_auth_cas/Makefile
==============================================================================
--- head/www/mod_auth_cas/Makefile	Sat Aug 25 16:46:35 2012	(r303149)
+++ head/www/mod_auth_cas/Makefile	Sat Aug 25 16:48:55 2012	(r303150)
@@ -6,28 +6,35 @@
 #
 
 PORTNAME=	mod_auth_cas
-PORTVERSION=	1.0.8
-PORTREVISION=	1
+PORTVERSION=	1.0.9.1
 CATEGORIES=	www
-#MASTER_SITES=	https://www.ja-sig.org/svn/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.8/src/
+MASTER_SITES=	https://source.jasig.org/cas-clients/mod_auth_cas/tags/mod_auth_cas-${PORTVERSION}/src/
 # SVN tags only, *sigh*
 DISTFILES=	mod_auth_cas.c mod_auth_cas.h
-DIST_SUBDIR=	mod_auth_cas
+DIST_SUBDIR=	apache2/mod_auth_cas/${PORTVERSION}
 EXTRACT_ONLY=
 
 MAINTAINER=	apache@FreeBSD.org
 COMMENT=	Apache 2.x module that supports the CASv1 and CASv2 protocols
 
-MAKE_JOBS_SAFE=	yes
+LICENSE=	AL2
+
+LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl
 
+MAKE_JOBS_SAFE=	yes
 NO_WRKSUBDIR=	yes
 
 USE_APACHE=	22+
 AP_FAST_BUILD=	yes
 AP_GENPLIST=	yes
+AP_LIB=		${LOCALBASE}/lib
+AP_EXTRAS=	-l ssl -l curl
 
 post-extract:
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/mod_auth_cas.c ${WRKSRC}/mod_auth_cas.c
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/mod_auth_cas.h ${WRKSRC}/mod_auth_cas.h
 
+post-install:
+	@${CAT} ${PKGMESSAGE}
+
 .include <bsd.port.mk>

Modified: head/www/mod_auth_cas/distinfo
==============================================================================
--- head/www/mod_auth_cas/distinfo	Sat Aug 25 16:46:35 2012	(r303149)
+++ head/www/mod_auth_cas/distinfo	Sat Aug 25 16:48:55 2012	(r303150)
@@ -1,4 +1,4 @@
-SHA256 (mod_auth_cas/mod_auth_cas.c) = 0603d66013bac281067d67067a0400c00e036f63a1075ee8257afe049a70a683
-SIZE (mod_auth_cas/mod_auth_cas.c) = 67710
-SHA256 (mod_auth_cas/mod_auth_cas.h) = e0359ac88a290f9c8f9686b9d60ea61ec230f28146abf4ac6a3239feeadaad28
-SIZE (mod_auth_cas/mod_auth_cas.h) = 7409
+SHA256 (apache2/mod_auth_cas/1.0.9.1/mod_auth_cas.c) = ddff1d54d2824842b6abacc882c6105a9d006964b7e3b367c1e77c8e5b0a92c1
+SIZE (apache2/mod_auth_cas/1.0.9.1/mod_auth_cas.c) = 81903
+SHA256 (apache2/mod_auth_cas/1.0.9.1/mod_auth_cas.h) = 99518b262b1bc28c1d7d51e9e2cc8510b9c733b29b6d7af99fed145dcdc1af96
+SIZE (apache2/mod_auth_cas/1.0.9.1/mod_auth_cas.h) = 7630

Added: head/www/mod_auth_cas/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mod_auth_cas/pkg-message	Sat Aug 25 16:48:55 2012	(r303150)
@@ -0,0 +1,32 @@
+======================================================================
+ Set a few required parameters in your Apache configuration:
+
+ CASCookiePath   /var/cache/apache2/mod_auth_cas/
+ CASLoginURL     https://login.example.org/cas/login
+ CASValidateURL  https://login.example.org/cas/serviceValidate
+
+ Protect a "Location" or "Directory" block in your Apache configuration:
+
+ <Location /secured>
+   Authtype CAS
+   require valid-user
+ </Location>
+
+ If SAML-delivered attribute authorization is also desired, use the
+ samlValidate URL, enable SAML validation, and specify cas-attribute
+ in your require rule (please note: both attribute name and value are
+ case-sensitive):
+
+ CASCookiePath /var/cache/apache2/mod_auth_cas/
+ CASLoginURL https://login.example.org/cas/login
+ CASValidateURL https://login.example.org/cas/samlValidate
+ CASValidateSAML On
+
+ <Location /secured>
+   Authtype CAS
+   require cas-attribute edupersonaffiliation:staff
+ </Location>
+
+ For more informations see:
+ https://wiki.jasig.org/display/CASC/mod_auth_cas
+======================================================================
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Olli Hauer freebsd_committer 2012-08-25 17:50:08 UTC
State Changed
From-To: open->closed

Committed with minor changes. 
Thanks!