# New ports collection makefile for:   cpu
# Date created:        15 November 2003
# Whom:                Hye-Shik Chang <perky@FreeBSD.org>
#
# $FreeBSD: ports/sysutils/cpu/Makefile,v 1.9 2010/05/23 21:16:15 linimon Exp $
#

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

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

GNU_CONFIGURE=	yes
USE_BZIP2=	yes
USE_OPENLDAP=	yes
USE_LDCONFIG=	yes
CONFIGURE_ARGS=	--datadir=${PREFIX}/share/cpu --with-ldap=${LOCALBASE}
CONFIGURE_ENV=	CPPFLAGS="-DLDAP_DEPRECATED"

MAN5=		cpu.conf.5
MAN8=		cpu.8 cpu-ldap.8

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

.include <bsd.port.mk>
