2001-10-19 19:40:18 +02:00
|
|
|
# New ports collection makefile for: mod_auth_kerb
|
|
|
|
# Date created: 19 October 2001
|
|
|
|
# Whom: wollman
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Shamelessly stolen from will's mod_auth_any port.
|
|
|
|
|
|
|
|
PORTNAME= mod_auth_kerb
|
2009-01-12 03:05:31 +01:00
|
|
|
PORTVERSION= 5.3
|
|
|
|
PORTEPOCH= 1
|
2001-10-19 19:40:18 +02:00
|
|
|
CATEGORIES= www
|
2008-12-26 09:09:08 +01:00
|
|
|
MASTER_SITES= SF
|
2002-07-18 19:20:16 +02:00
|
|
|
MASTER_SITE_SUBDIR=modauthkerb
|
2005-10-15 00:55:59 +02:00
|
|
|
|
2004-08-18 18:21:55 +02:00
|
|
|
MAINTAINER= apache@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An Apache module for authenticating users with Kerberos v5
|
2001-10-19 19:40:18 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# This module allows users to send their Kerberos password in
|
|
|
|
# plain text; it should only be used over an encrypted connection
|
|
|
|
# (i.e., HTTP over SSL/TLS). Thus, we require as a dependency
|
|
|
|
# a version of Apache which can do this.
|
|
|
|
#
|
2009-01-12 03:05:31 +01:00
|
|
|
USE_APACHE= 1.3
|
2007-03-14 20:29:20 +01:00
|
|
|
USE_GMAKE= yes
|
2005-08-01 11:28:29 +02:00
|
|
|
# Don't fsck with CFLAGS
|
|
|
|
CFLAGS:=
|
|
|
|
GNU_CONFIGURE= yes
|
2005-10-15 00:55:59 +02:00
|
|
|
|
2009-01-12 03:07:52 +01:00
|
|
|
PORTSCOUT= limit:^5.3
|
|
|
|
|
2005-10-15 00:55:59 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${PREFIX}/sbin/apxs)
|
|
|
|
APACHE_MODULE_DIR!=${PREFIX}/sbin/apxs -q LIBEXECDIR
|
|
|
|
.else
|
|
|
|
APACHE_MODULE_DIR=libexec/apache
|
|
|
|
.endif
|
|
|
|
PLIST_SUB+= APMODDIR=${APACHE_MODULE_DIR:S/^${PREFIX}\///}
|
2007-07-23 16:45:19 +02:00
|
|
|
|
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a)
|
|
|
|
CONFIGURE_ARGS+= --with-krb5=${KRB5_HOME} --without-krb4
|
|
|
|
.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
|
|
|
|
CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME} --without-krb4
|
|
|
|
.elif exists(${DESTDIR}/usr/lib/libkrb5.a) && exists(${DESTDIR}/usr/bin/krb5-config)
|
|
|
|
CONFIGURE_ARGS+= --with-krb5=${DESTDIR}/usr --without-krb4
|
2005-10-15 00:55:59 +02:00
|
|
|
.else
|
2007-07-23 16:45:19 +02:00
|
|
|
LIB_DEPENDS+= krb5:${PORTSDIR}/security/krb5
|
|
|
|
CONFIGURE_ARGS+= --with-krb5=${LOCALBASE} --without-krb4
|
2005-10-15 00:55:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|