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
|
2002-07-18 19:20:16 +02:00
|
|
|
PORTVERSION= 4.11
|
2002-07-18 22:00:17 +02:00
|
|
|
PORTREVISION= 1
|
2001-10-19 19:40:18 +02:00
|
|
|
CATEGORIES= www
|
2002-07-18 19:20:16 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=modauthkerb
|
2001-10-19 19:40:18 +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.
|
|
|
|
#
|
|
|
|
LIB_DEPENDS= krb5.3:${PORTSDIR}/security/krb5
|
|
|
|
|
2003-11-07 10:12:58 +01:00
|
|
|
USE_APACHE= yes
|
2001-10-19 19:40:18 +02:00
|
|
|
WRKSRC= ${WRKDIR}/src/modules/kerberos
|
|
|
|
|
|
|
|
KRB5_HOME?= ${LOCALBASE}
|
2004-03-02 00:48:34 +01:00
|
|
|
USE_REINPLACE= yes
|
2001-10-19 19:40:18 +02:00
|
|
|
|
2004-03-02 00:48:34 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} '379N;s/\n/ /' ${WRKSRC}/mod_auth_kerb.c
|
2004-02-07 04:31:20 +01:00
|
|
|
|
2001-10-19 19:40:18 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2002-03-21 17:10:14 +01:00
|
|
|
${APXS} -I${KRB5_HOME}/include \
|
2001-10-19 19:40:18 +02:00
|
|
|
-DKRB5 -DKRB5_VERIFY_TICKET -DKRB5_SAVE_CREDENTIALS \
|
2002-07-18 22:00:17 +02:00
|
|
|
-DKRB5_DEFAULT_KEYTAB=\"\\\"FILE:${LOCALBASE}/etc/apache/keytab\\\"\" \
|
2002-07-18 21:00:28 +02:00
|
|
|
-Dkerb_auth_module=auth_kerb_module \
|
2002-03-21 17:10:14 +01:00
|
|
|
-c ${PORTNAME}.c \
|
|
|
|
-L${KRB5_HOME}/lib -Wl,-rpath -Wl,${KRB5_HOME}/lib \
|
|
|
|
-lkrb5 -lk5crypto -lcom_err
|
2001-10-19 19:40:18 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${APXS} -i -A -n ${PORTNAME:S/mod_//g} ${WRKSRC}/${PORTNAME}.so
|
|
|
|
|
2004-03-02 00:48:34 +01:00
|
|
|
.include <bsd.port.mk>
|