1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/security/duo/Makefile

58 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= duo
2013-09-02 22:06:57 +00:00
PORTVERSION= 1.9.4
CATEGORIES= security
MASTER_SITES= https://dl.duosecurity.com/ \
http://mirrors.rit.edu/zi/
DISTNAME= ${PORTNAME}_unix-${PORTVERSION}
MAINTAINER= zi@FreeBSD.org
COMMENT= Duo unix integration package
LICENSE= GPLv2
CONFIGURE_ARGS= --with-pam=${PREFIX}/lib/security --sysconfdir=${PREFIX}/etc \
2013-09-02 22:06:57 +00:00
--docdir=${DOCSDIR} --includedir=${PREFIX}/include/${PORTNAME}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
SUB_FILES= pkg-message
MAN3= duo.3
MAN8= login_duo.8 pam_duo.8
OPTIONS= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 1000000
USE_GCC= yes
.endif
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 !${PORT_OPTIONS:MDOCS}
2012-07-16 11:40:11 +00:00
@${REINPLACE_CMD} -e 's|README AUTHORS CHANGES LICENSE||g' ${WRKSRC}/Makefile.in
.endif
post-install:
@${INSTALL} -o sshd -g wheel -m 700 ${WRKSRC}/login_duo/login_duo.conf \
${PREFIX}/etc/login_duo.conf.sample
@${INSTALL_DATA} -m 700 ${WRKSRC}/pam_duo/pam_duo.conf \
${PREFIX}/etc/pam_duo.conf.sample
@if [ ! -f ${PREFIX}/etc/login_duo.conf ]; then \
${CP} -p ${PREFIX}/etc/login_duo.conf.sample \
${PREFIX}/etc/login_duo.conf ; \
fi
@if [ ! -f ${PREFIX}/etc/pam_duo.conf ]; then \
${CP} -p ${PREFIX}/etc/pam_duo.conf.sample \
${PREFIX}/etc/pam_duo.conf ; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>