# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD: branches/RELENG_9_2_0/sysutils/msktutil/Makefile 322429 2013-07-07 12:01:34Z zi $

PORTNAME=	msktutil
PORTVERSION=	0.5
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE} \
    		http://mirrors.rit.edu/zi/

MAINTAINER=	zi@FreeBSD.org
COMMENT=	A utility to manage Active Directory interoperability

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_OPENLDAP=	yes
GNU_CONFIGURE=	yes
WANT_OPENLDAP_SASL=	yes

CONFIGURE_ARGS+=--with-sasldir=${PREFIX}

MAN1=		msktutil.1
PLIST_FILES=	sbin/msktutil

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 900035
LDFLAGS+=	-lgssapi_krb5
.endif

.if ${OSVERSION} < 800000
BROKEN=		does not build on FreeBSD 7.x
.endif

.include <bsd.port.post.mk>
