2013-06-24 13:55:42 +02:00
|
|
|
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
|
2011-08-19 19:14:07 +02:00
|
|
|
|
|
|
|
PORTNAME= duo
|
2020-09-12 15:23:03 +02:00
|
|
|
PORTVERSION= 1.11.4
|
2011-08-19 19:14:07 +02:00
|
|
|
CATEGORIES= security
|
2013-06-24 13:55:42 +02:00
|
|
|
MASTER_SITES= https://dl.duosecurity.com/ \
|
2017-08-01 19:07:58 +02:00
|
|
|
ZI
|
2011-08-19 19:14:07 +02:00
|
|
|
DISTNAME= ${PORTNAME}_unix-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= zi@FreeBSD.org
|
|
|
|
COMMENT= Duo unix integration package
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-06-24 13:55:42 +02:00
|
|
|
CONFIGURE_ARGS= --with-pam=${PREFIX}/lib/security --sysconfdir=${PREFIX}/etc \
|
2013-09-03 00:06:57 +02:00
|
|
|
--docdir=${DOCSDIR} --includedir=${PREFIX}/include/${PORTNAME}
|
2011-08-19 19:14:07 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2016-08-19 01:27:12 +02:00
|
|
|
USES= libtool pathfix ssl
|
2011-08-19 19:14:07 +02:00
|
|
|
USE_LDCONFIG= yes
|
2015-01-15 10:05:37 +01:00
|
|
|
|
2011-08-19 19:14:07 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2019-10-29 23:15:11 +01:00
|
|
|
SUID_DESC= Install login_duo with suid bit set
|
|
|
|
OPTIONS_DEFINE= DOCS SUID
|
|
|
|
OPTIONS_SUB= yes
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2011-08-19 19:14:07 +02:00
|
|
|
post-patch:
|
2017-05-04 01:05:56 +02:00
|
|
|
${REINPLACE_CMD} -e 's| /etc| ${PREFIX}/etc|g' \
|
|
|
|
${WRKSRC}/pam_duo/pam_duo.8 \
|
|
|
|
${WRKSRC}/login_duo/login_duo.8
|
2011-08-19 19:14:07 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-04-28 13:45:45 +02:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/security/pam_duo.so
|
2014-07-03 18:16:49 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/login_duo/login_duo.conf \
|
2017-05-04 01:05:56 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/login_duo.conf.sample
|
2014-07-03 18:16:49 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pam_duo/pam_duo.conf \
|
2017-05-04 01:05:56 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/pam_duo.conf.sample
|
2011-08-19 19:14:07 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|