aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-GSSAPI/Makefile
blob: 2ff80d1542a65f6c615fa90cc58a7441f06667e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Anton Berezin <tobez@FreeBSD.org>
# $FreeBSD$

PORTNAME=   GSSAPI
PORTVERSION=    0.28
PORTREVISION=   1
CATEGORIES= security perl5
MASTER_SITES=   CPAN/LWP/AGROLMS
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl extension providing access to the GSSAPIv2 library

USES=       perl5
USE_PERL5=  configure

OPTIONS_DEFAULT=    GSSAPI_BASE
OPTIONS_SINGLE=     GSSAPI
OPTIONS_SINGLE_GSSAPI=  GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT

GSSAPI_BASE_USES=   gssapi
GSSAPI_HEIMDAL_USES=    gssapi:heimdal
GSSAPI_MIT_USES=    gssapi:mit

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGSSAPI_MIT}
KRB5CONF=   ${KRB5_HOME}/bin/krb5-config
.else
KRB5CONF=   ${HEIMDAL_HOME}/bin/krb5-config
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|%%KRB5CONF%%|${KRB5CONF}|g' \
        ${WRKSRC}/Makefile.PL

.include <bsd.port.mk>