# Created by: Hye-Shik Chang <perky@FreeBSD.org>

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

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

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

CFLAGS+=		-fcommon

DEPRECATED=	Unmaintained and dead upstream, does not build with -fno-common (llvm 11)
EXPIRATION_DATE=2021-04-01

.include <bsd.port.mk>
