pkgsrc/www/ap2-auth-mellon/Makefile
manu ba4b5997d5 Do not redirect unauthenticated AJAX request to the IdP
When MellonEnable is "auth" and we get an unauthenticated AJAX
request (identified by the X-Request-With: XMLHttpRequest HTTP
header), fail with HTTP code 403 Forbidden instead of redirecting
to the IdP. This saves resources, as the client has no opportunity
to interract with the user to complete authentification.
2016-10-18 15:13:41 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2016/10/18 15:13:41 manu Exp $
#
DISTNAME= mod_auth_mellon-0.12.0
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//:S/_/-/g}
PKGREVISION= 3
CATEGORIES= www security
MASTER_SITES= https://github.com/UNINETT/mod_auth_mellon/releases/download/v${DISTNAME:C/.*-//}/
MAINTAINER= manu@NetBSD.org
HOMEPAGE= https://github.com/UNINETT/mod_auth_mellon
COMMENT= SAML 2.0 authentication for Apache
LICENSE= gnu-gpl-v2 # or later
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
USE_TOOLS+= pkg-config
APACHE_MODULE= YES
PKG_APACHE_ACCEPTED= apache22 apache24
.include "../../mk/apache.mk"
BUILDLINK_API_DEPENDS.apache+= apache>=2.0.47
SUBST_CLASSES+= pthflags
SUBST_STAGE.pthflags= post-configure
SUBST_FILES.pthflags= Makefile
SUBST_SED.pthflags= -e 's| -pthread | |g'
INSTALLATION_DIRS+= lib/httpd
do-install:
cd ${WRKSRC} && \
libexecdir=`${APXS} -q LIBEXECDIR` && \
${APXS} -i -S LIBEXECDIR=${DESTDIR}"$${libexecdir}" \
-n auth_mellon mod_auth_mellon.la
BUILDLINK_ABI_DEPENDS.lasso+= lasso>=2.1.0
.include "../../security/lasso/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"