Date: Fri, 27 Jul 2018 05:14:51 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475412 - in head/mail: . roundcube-yubikey_auth Message-ID: <201807270514.w6R5Ep0s007803@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Fri Jul 27 05:14:51 2018 New Revision: 475412 URL: https://svnweb.freebsd.org/changeset/ports/475412 Log: New port: mail/roundcube-yubikey_auth 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> Added: head/mail/roundcube-yubikey_auth/ head/mail/roundcube-yubikey_auth/Makefile (contents, props changed) head/mail/roundcube-yubikey_auth/distinfo (contents, props changed) head/mail/roundcube-yubikey_auth/pkg-descr (contents, props changed) head/mail/roundcube-yubikey_auth/pkg-plist (contents, props changed) Modified: head/mail/Makefile Modified: head/mail/Makefile ============================================================================== --- head/mail/Makefile Fri Jul 27 05:07:35 2018 (r475411) +++ head/mail/Makefile Fri Jul 27 05:14:51 2018 (r475412) @@ -610,6 +610,7 @@ SUBDIR += roundcube-thunderbird_labels SUBDIR += roundcube-umich SUBDIR += roundcube-veximaccountadmin + SUBDIR += roundcube-yubikey_auth SUBDIR += rspamd SUBDIR += rspamd-devel SUBDIR += rss2email2 Added: head/mail/roundcube-yubikey_auth/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/roundcube-yubikey_auth/Makefile Fri Jul 27 05:14:51 2018 (r475412) @@ -0,0 +1,46 @@ +# 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> Added: head/mail/roundcube-yubikey_auth/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/roundcube-yubikey_auth/distinfo Fri Jul 27 05:14:51 2018 (r475412) @@ -0,0 +1,3 @@ +TIMESTAMP = 1532637571 +SHA256 (northox-roundcube-yubikey-plugin-g20180404-383bbb3_GH0.tar.gz) = 48cd088db1058ae3c416576f73e369e20c2384bc81c78b118cb5f13efe4adc2c +SIZE (northox-roundcube-yubikey-plugin-g20180404-383bbb3_GH0.tar.gz) = 14111 Added: head/mail/roundcube-yubikey_auth/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/roundcube-yubikey_auth/pkg-descr Fri Jul 27 05:14:51 2018 (r475412) @@ -0,0 +1,11 @@ +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 Added: head/mail/roundcube-yubikey_auth/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/roundcube-yubikey_auth/pkg-plist Fri Jul 27 05:14:51 2018 (r475412) @@ -0,0 +1,11 @@ +%%WWWDIR%%/LICENSE +%%WWWDIR%%/README.md +%%WWWDIR%%/composer.json +@sample %%WWWDIR%%/config.inc.php.sample +%%WWWDIR%%/lib/Yubico.php +%%WWWDIR%%/localization/cs_CZ.inc +%%WWWDIR%%/localization/de_DE.inc +%%WWWDIR%%/localization/en_US.inc +%%WWWDIR%%/localization/fr_FR.inc +%%WWWDIR%%/yubikey.js +%%WWWDIR%%/roundcube_yubikey_authentication.php
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807270514.w6R5Ep0s007803>