Lines 1-54
Link Here
|
1 |
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu> |
1 |
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
|
|
4 |
PORTNAME= shibboleth-sp |
3 |
PORTNAME= shibboleth-sp |
5 |
PORTVERSION= 2.4.3 |
4 |
PORTVERSION= 2.5.1 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= security www |
5 |
CATEGORIES= security www |
8 |
MASTER_SITES= http://www.shibboleth.net/downloads/service-provider/${PORTVERSION}/ |
6 |
MASTER_SITES= http://shibboleth.net/downloads/service-provider/${PORTVERSION}/ |
9 |
|
7 |
|
10 |
MAINTAINER= swills@FreeBSD.org |
8 |
MAINTAINER= swills@FreeBSD.org |
11 |
COMMENT= C++ Shibboleth Service Provider (Internet2) for Apache |
9 |
COMMENT= C++ Shibboleth Service Provider (Internet2) for Apache |
12 |
|
10 |
|
13 |
LIB_DEPENDS= saml.7:${PORTSDIR}/security/opensaml2 |
11 |
LIB_DEPENDS= saml.8:${PORTSDIR}/security/opensaml2 |
14 |
|
12 |
|
15 |
OPTIONS_DEFINE= APACHE22 |
|
|
16 |
APACHE22_DESC= Use Apache version 2.2 instead of version 2.0 |
17 |
|
18 |
MAKE_JOBS_SAFE= yes |
13 |
MAKE_JOBS_SAFE= yes |
19 |
USE_GMAKE= yes |
14 |
USE_GMAKE= yes |
20 |
GNU_CONFIGURE= yes |
15 |
GNU_CONFIGURE= yes |
21 |
USE_LDCONFIG= yes |
16 |
USE_LDCONFIG= yes |
22 |
USE_RC_SUBR= shibboleth-sp |
17 |
USE_RC_SUBR= shibboleth-sp |
23 |
USE_AUTOTOOLS= autoconf automake:env libtool:env |
|
|
24 |
WRKSRC= ${WRKDIR}/shibboleth-${PORTVERSION} |
25 |
|
18 |
|
26 |
LATEST_LINK= shibboleth2-sp |
19 |
LATEST_LINK= shibboleth2-sp |
27 |
|
20 |
|
|
|
21 |
USERS= shibd |
22 |
GROUPS= shibd |
23 |
|
24 |
USE_APACHE= 22-24 |
25 |
|
28 |
.include <bsd.port.pre.mk> |
26 |
.include <bsd.port.pre.mk> |
29 |
|
27 |
|
30 |
.if ${PORT_OPTIONS:MAPACHE22} |
28 |
.if ${APACHE_VERSION} == 22 |
31 |
USE_APACHE= 22 |
|
|
32 |
CONFIGURE_ARGS= --enable-apache-22 --with-apxs22=${APXS} |
29 |
CONFIGURE_ARGS= --enable-apache-22 --with-apxs22=${APXS} |
33 |
PLIST_SUB+= WITH_APACHE_22="" |
30 |
PLIST_SUB+= WITH_APACHE_22="" |
34 |
PLIST_SUB+= WITH_APACHE_20="@comment " |
31 |
PLIST_SUB+= WITH_APACHE_24="@comment " |
35 |
.else |
32 |
.else |
36 |
IGNORE= apache20 is no longer available |
33 |
CONFIGURE_ARGS= --enable-apache-24 --with-apxs24=${APXS} |
37 |
#USE_APACHE= 20 |
|
|
38 |
#CONFIGURE_ARGS= --enable-apache-20 --with-apxs2=${APXS} --with-apr=${PREFIX}/lib/apache2/apr-config --with-apu=${PREFIX}/lib/apache2/apu-config |
39 |
PLIST_SUB+= WITH_APACHE_22="@comment " |
34 |
PLIST_SUB+= WITH_APACHE_22="@comment " |
40 |
PLIST_SUB+= WITH_APACHE_20="" |
35 |
PLIST_SUB+= WITH_APACHE_24="" |
41 |
.endif |
36 |
.endif |
|
|
37 |
|
38 |
SUB_LIST+= SHIBD_USER=${USERS} |
39 |
SUB_LIST+= SHIBD_GROUP=${GROUPS} |
42 |
CONFIGURE_ARGS+= --localstatedir=/var --with-log4shib=${LOCALBASE} |
40 |
CONFIGURE_ARGS+= --localstatedir=/var --with-log4shib=${LOCALBASE} |
43 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} --with-xmltooling=${LOCALBASE} |
41 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} --with-xmltooling=${LOCALBASE} |
44 |
CONFIGURE_ARGS+= --disable-doxygen-doc |
42 |
CONFIGURE_ARGS+= --disable-doxygen-doc |
45 |
|
43 |
|
46 |
pre-configure: |
44 |
post-install: |
47 |
@${REINPLACE_CMD} -e 's|/run|/run/shibboleth|' ${WRKSRC}/configs/Makefile.in |
45 |
${CHOWN} ${USERS} ${PREFIX}/etc/shibboleth/sp-key.pem ${PREFIX}/etc/shibboleth/sp-cert.pem ;\ |
48 |
@${REINPLACE_CMD} -e 's|/doc/@PACKAGE@-@PACKAGE_VERSION@|/doc/@PACKAGE@|' \ |
46 |
${CHOWN} -R ${USERS} /var/log/shibboleth ;\ |
49 |
${WRKSRC}/configs/Makefile.am ${WRKSRC}/configs/Makefile.in \ |
47 |
${CHOWN} -R ${USERS}:www /var/run/shibboleth ; ${CHMOD} -R u=rwx,g=rx,o= /var/run/shibboleth |
50 |
${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/Makefile.in |
|
|
51 |
${RM} ${WRKSRC}/aclocal.m4 |
52 |
@cd ${WRKSRC} && ${AUTORECONF} -fvi |
53 |
|
48 |
|
54 |
.include <bsd.port.post.mk> |
49 |
.include <bsd.port.post.mk> |