# Created by: Hye-Shik Chang <perky@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_1_0/sysutils/cpu/Makefile 362835 2014-07-24 18:34:16Z tijl $

PORTNAME=	cpu
PORTVERSION=	1.4.3
PORTREVISION=	5
CATEGORIES=	sysutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Change Password Utility for LDAP

GNU_CONFIGURE=	yes
USES=		tar:bzip2 libtool
USE_OPENLDAP=	yes
USE_LDCONFIG=	yes
CONFIGURE_ARGS=	--datadir=${PREFIX}/share/cpu --with-ldap=${LOCALBASE}
CPPFLAGS+=	-DLDAP_DEPRECATED

post-patch:
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

.include <bsd.port.mk>
