freebsd-ports/security/duo/Makefile
2012-07-16 11:40:11 +00:00

42 lines
1,014 B
Makefile

# New ports collection makefile for: duo
# Date created: 17 Jul 2011
# Whom: Ryan Steinmetz <zi@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= duo
PORTVERSION= 1.9
CATEGORIES= security
MASTER_SITES= http://cloud.github.com/downloads/${PORTNAME}security/${PORTNAME}_unix/ \
http://mirrors.rit.edu/zi/
DISTNAME= ${PORTNAME}_unix-${PORTVERSION}
MAINTAINER= zi@FreeBSD.org
COMMENT= Duo unix integration package
LICENSE= GPLv2
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS= --with-pam=${PREFIX}/lib/security --sysconfdir=${ETCDIR} \
--docdir=${DOCSDIR}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
SUB_FILES= pkg-message
MAN3= duo.3
MAN8= login_duo.8 pam_duo.8
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/login_duo/login_duo.8
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/pam_duo/pam_duo.8
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|README AUTHORS CHANGES LICENSE||g' ${WRKSRC}/Makefile.in
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>