mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
216f0758fa
This plugin adds the option to use a YubiKey as second-factor authentication. The YubiKey is a USB key emulating a generic keyboard and make use of One-time Passwords to provide two factor authentication. Activate the plugin by adding the following to Roundcube's config/config.inc.php: $config['plugins'] = array('roundcube_yubikey_authentication'); WWW: https://github.com/northox/roundcube-yubikey-plugin PR: 222318 Submitted by: Vidar Karlsen <vidar@karlsen.tech>
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: Vidar Karlsen <vidar@karlsen.tech>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yubikey_auth
|
|
PORTVERSION= g20180404
|
|
CATEGORIES= mail
|
|
PKGNAMEPREFIX= roundcube-
|
|
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
|
|
|
|
MAINTAINER= vidar@karlsen.tech
|
|
COMMENT= Roundcube yubikey auth plugin
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= roundcube${PHP_PKGNAMESUFFIX}>=1.0:mail/roundcube@${PHP_FLAVOR}
|
|
RUN_DEPENDS= roundcube${PHP_PKGNAMESUFFIX}>=1.0:mail/roundcube@${PHP_FLAVOR}
|
|
|
|
USES= php:flavors
|
|
|
|
USE_PHP= curl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= northox
|
|
GH_PROJECT= roundcube-yubikey-plugin
|
|
GH_TAGNAME= 383bbb3
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
WWWDIR= ${PREFIX}/www/roundcube/plugins/roundcube_yubikey_authentication
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's/roundcube_yubikey_plugin/YubiKey OTP/g' \
|
|
${WRKSRC}/yubikey.js
|
|
${REINPLACE_CMD} \
|
|
-e "s/array('yubikey_authentication')/array('roundcube_yubikey_authentication')/g" \
|
|
-e 's,plugins/yubikey_authentication,plugins/roundcube_yubikey_authentication,g' \
|
|
${WRKSRC}/README.md
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
cd ${WRKSRC} && ${PAX} -r -w . ${STAGEDIR}${WWWDIR}
|
|
cd ${STAGEDIR}${WWWDIR} && \
|
|
${MV} config.inc.php config.inc.php.sample
|
|
|
|
.include <bsd.port.mk>
|