Convert the USE_LDAP=yes to USES=ldap and adds the following features: - Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as RUN_DEPENDS - Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER - Adds OPENLDAP versions in bsd.default-versions.mk - Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk - Changes consumers to use the features Reviewed by: delphij Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D38233
46 lines
1 KiB
Makefile
46 lines
1 KiB
Makefile
PORTNAME= pam_yubico
|
|
PORTVERSION= 2.27
|
|
CATEGORIES= security
|
|
MASTER_SITES= https://developers.yubico.com/yubico-pam/Releases/
|
|
|
|
MAINTAINER= matt@mjslabs.com
|
|
COMMENT= PAM module for authenticating with a Yubico YubiKey
|
|
WWW= https://developers.yubico.com/yubico-pam/
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libykclient.so:security/ykclient \
|
|
libyubikey.so:security/libyubikey
|
|
|
|
USES= libtool localbase pkgconfig
|
|
|
|
GNU_CONFIGURE= yes
|
|
TEST_TARGET= check
|
|
|
|
SUB_FILES= pkg-message
|
|
PLIST_FILES= lib/security/pam_yubico.so \
|
|
man/man8/pam_yubico.8.gz
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= CR LDAP DOCS STATIC
|
|
OPTIONS_DEFAULT= CR
|
|
|
|
CR_DESC= Include Challenge/response support
|
|
|
|
CR_LIB_DEPENDS= libykpers-1.so:security/ykpers
|
|
CR_CONFIGURE_WITH= cr
|
|
CR_PLIST_FILES= bin/ykpamcfg \
|
|
man/man1/ykpamcfg.1.gz
|
|
|
|
LDAP_USES= ldap
|
|
LDAP_CONFIGURE_WITH= ldap
|
|
|
|
STATIC_CONFIGURE_ENABLE= static
|
|
STATIC_PLIST_FILES= lib/security/pam_yubico.a
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|