2013-04-28 23:02:39 +02:00
|
|
|
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
2007-08-04 01:21:25 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= shibboleth-sp
|
2013-06-18 17:15:48 +02:00
|
|
|
PORTVERSION= 2.5.2
|
2007-08-04 01:21:25 +02:00
|
|
|
CATEGORIES= security www
|
2013-06-04 19:29:21 +02:00
|
|
|
MASTER_SITES= http://shibboleth.net/downloads/service-provider/${PORTVERSION}/
|
2007-08-04 01:21:25 +02:00
|
|
|
|
2013-06-04 19:29:21 +02:00
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
2007-08-04 01:21:25 +02:00
|
|
|
COMMENT= C++ Shibboleth Service Provider (Internet2) for Apache
|
|
|
|
|
2013-06-04 19:29:21 +02:00
|
|
|
LIB_DEPENDS= saml.8:${PORTSDIR}/security/opensaml2
|
2007-08-04 01:21:25 +02:00
|
|
|
|
2013-06-09 16:41:24 +02:00
|
|
|
BUILD_DEPENDS= boost-libs>=0:${PORTSDIR}/devel/boost-libs
|
|
|
|
|
2010-01-26 03:35:37 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2007-08-04 01:21:25 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2013-06-04 19:29:21 +02:00
|
|
|
MAKE_ENV= NOKEYGEN=YES
|
2007-08-04 01:21:25 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_RC_SUBR= shibboleth-sp
|
2010-01-26 03:35:37 +01:00
|
|
|
|
|
|
|
LATEST_LINK= shibboleth2-sp
|
2007-08-04 01:21:25 +02:00
|
|
|
|
2013-06-04 19:29:21 +02:00
|
|
|
USERS= shibd
|
|
|
|
GROUPS= shibd
|
|
|
|
|
|
|
|
USE_APACHE= 22-24
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2007-08-04 01:21:25 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-06-04 19:29:21 +02:00
|
|
|
.if ${APACHE_VERSION} == 22
|
2007-08-04 01:21:25 +02:00
|
|
|
CONFIGURE_ARGS= --enable-apache-22 --with-apxs22=${APXS}
|
2010-01-26 03:35:37 +01:00
|
|
|
PLIST_SUB+= WITH_APACHE_22=""
|
2013-06-04 19:29:21 +02:00
|
|
|
PLIST_SUB+= WITH_APACHE_24="@comment "
|
2007-08-04 01:21:25 +02:00
|
|
|
.else
|
2013-06-04 19:29:21 +02:00
|
|
|
CONFIGURE_ARGS= --enable-apache-24 --with-apxs24=${APXS}
|
2010-01-26 03:35:37 +01:00
|
|
|
PLIST_SUB+= WITH_APACHE_22="@comment "
|
2013-06-04 19:29:21 +02:00
|
|
|
PLIST_SUB+= WITH_APACHE_24=""
|
2007-08-04 01:21:25 +02:00
|
|
|
.endif
|
2013-06-04 19:29:21 +02:00
|
|
|
|
|
|
|
SUB_LIST+= SH=${SH}
|
|
|
|
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
|
|
|
|
SUB_LIST+= SHIBD_USER=${USERS}
|
|
|
|
SUB_LIST+= SHIBD_GROUP=${GROUPS}
|
|
|
|
PLIST_SUB+= SHIBD_USER=${USERS}
|
|
|
|
PLIST_SUB+= SHIBD_GROUP=${GROUPS}
|
|
|
|
|
2010-01-26 03:35:37 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=/var --with-log4shib=${LOCALBASE}
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} --with-xmltooling=${LOCALBASE}
|
|
|
|
CONFIGURE_ARGS+= --disable-doxygen-doc
|
2007-08-04 01:21:25 +02:00
|
|
|
|
2013-06-04 19:29:21 +02:00
|
|
|
post-install:
|
|
|
|
${CHOWN} -R ${USERS}:${GROUPS} /var/cache/shibboleth ;\
|
|
|
|
${CHOWN} -R ${USERS}:${GROUPS} /var/log/shibboleth ;\
|
|
|
|
${CHOWN} -R ${USERS}:${WWWGRP} /var/run/shibboleth ;\
|
|
|
|
${CHMOD} -R u=rwx,g=rx,o= /var/run/shibboleth
|
2007-09-30 12:33:03 +02:00
|
|
|
|
2007-08-04 01:21:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|