From owner-svn-ports-head@freebsd.org Sun Oct 30 23:42:38 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25910C27AEF; Sun, 30 Oct 2016 23:42:38 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D68B815E9; Sun, 30 Oct 2016 23:42:37 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9UNgbwd089818; Sun, 30 Oct 2016 23:42:37 GMT (envelope-from nivit@FreeBSD.org) Received: (from nivit@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9UNgaPG089812; Sun, 30 Oct 2016 23:42:36 GMT (envelope-from nivit@FreeBSD.org) Message-Id: <201610302342.u9UNgaPG089812@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nivit set sender to nivit@FreeBSD.org using -f From: Nicola Vitale Date: Sun, 30 Oct 2016 23:42:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424967 - in head/www: . xpi-u2f4moz xpi-u2f4moz/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 23:42:38 -0000 Author: nivit Date: Sun Oct 30 23:42:36 2016 New Revision: 424967 URL: https://svnweb.freebsd.org/changeset/ports/424967 Log: This extension adds support for the U2F specification with Yubico devices to Firefox. It can be used by accessing window.u2f object from content pages. WWW: https://github.com/prefiks/u2f4moz Added: head/www/xpi-u2f4moz/ head/www/xpi-u2f4moz/Makefile (contents, props changed) head/www/xpi-u2f4moz/distinfo (contents, props changed) head/www/xpi-u2f4moz/files/ head/www/xpi-u2f4moz/files/patch-c__src_CMakeLists.txt (contents, props changed) head/www/xpi-u2f4moz/pkg-descr (contents, props changed) head/www/xpi-u2f4moz/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sun Oct 30 23:23:23 2016 (r424966) +++ head/www/Makefile Sun Oct 30 23:42:36 2016 (r424967) @@ -2409,6 +2409,7 @@ SUBDIR += xpi-togglewordwrap SUBDIR += xpi-torbutton SUBDIR += xpi-twitterfox + SUBDIR += xpi-u2f4moz SUBDIR += xpi-uBlock_origin SUBDIR += xpi-unplug SUBDIR += xpi-urllink Added: head/www/xpi-u2f4moz/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/xpi-u2f4moz/Makefile Sun Oct 30 23:42:36 2016 (r424967) @@ -0,0 +1,47 @@ +# Created by: Nicola Stanislao Vitale +# $FreeBSD$ + +PORTNAME= u2f4moz +DISTVERSION= v1.0 +CATEGORIES= www +PKGNAMEPREFIX= xpi- + +MAINTAINER= nivit@FreeBSD.org +COMMENT= U2F support extension for Firefox + +LICENSE= LGPL21 + +CMAKE_SOURCE_PATH= c_src + +FIREFOX_EXTENSIONS_DIR= lib/firefox/browser/extensions + +GH_ACCOUNT= prefiks + +PLIST_SUB= SYSTEM_PROCESSOR=${SYSTEM_PROCESSOR} + +SYSTEM_PROCESSOR= x86 + +USE_GITHUB= yes +USES= cmake + +XPI_DIR= lib/xpi +XPI_ID= u2f4moz@prefiks.org + +post-patch: + @${SED} -i.bak -e 's,%%XPI_DIR%%,${XPI_DIR},1' \ + -e 's,%%XPI_ID%%,${XPI_ID},1' ${WRKSRC}/c_src/CMakeLists.txt + +post-install: + (cd ${WRKSRC}/ext && \ + ${COPYTREE_SHARE} . ${STAGEDIR}/${PREFIX}/${XPI_DIR}/${XPI_ID} && \ + ${MKDIR} ${STAGEDIR}/${PREFIX}/${FIREFOX_EXTENSIONS_DIR}) + (cd ${STAGEDIR}/${PREFIX}/${FIREFOX_EXTENSIONS_DIR} && \ + ${LN} -s ../../../xpi/${XPI_ID} ${XPI_ID}) + +.include + +.if ${ARCH} == "amd64" +SYSTEM_PROCESSOR= x86_64 +.endif + +.include Added: head/www/xpi-u2f4moz/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/xpi-u2f4moz/distinfo Sun Oct 30 23:42:36 2016 (r424967) @@ -0,0 +1,3 @@ +TIMESTAMP = 1477842711 +SHA256 (prefiks-u2f4moz-v1.0_GH0.tar.gz) = 479996b410f127dfbe0f33fac670ac8c53fbefcd26ce05357d9206ae5cc5a2fd +SIZE (prefiks-u2f4moz-v1.0_GH0.tar.gz) = 116787 Added: head/www/xpi-u2f4moz/files/patch-c__src_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/xpi-u2f4moz/files/patch-c__src_CMakeLists.txt Sun Oct 30 23:42:36 2016 (r424967) @@ -0,0 +1,8 @@ +--- c_src/CMakeLists.txt.orig 2016-10-27 08:19:19 UTC ++++ c_src/CMakeLists.txt +@@ -144,4 +144,4 @@ ADD_EXECUTABLE(u2f + + TARGET_LINK_LIBRARIES(u2f ${extra_LIBS}) + +-INSTALL(TARGETS u2f DESTINATION ${PROJECT_SOURCE_DIR}/../ext/bin/${TARGET_LOCATION}) ++INSTALL(TARGETS u2f DESTINATION %%XPI_DIR%%/%%XPI_ID%%/bin/${TARGET_LOCATION}) Added: head/www/xpi-u2f4moz/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/xpi-u2f4moz/pkg-descr Sun Oct 30 23:42:36 2016 (r424967) @@ -0,0 +1,6 @@ +This extension adds support for the U2F specification with Yubico devices +to Firefox. + +It can be used by accessing window.u2f object from content pages. + +WWW: https://github.com/prefiks/u2f4moz Added: head/www/xpi-u2f4moz/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/xpi-u2f4moz/pkg-plist Sun Oct 30 23:42:36 2016 (r424967) @@ -0,0 +1,13 @@ +lib/firefox/browser/extensions/u2f4moz@prefiks.org +lib/xpi/u2f4moz@prefiks.org/appIdValidator.js +lib/xpi/u2f4moz@prefiks.org/bin/freebsd_%%SYSTEM_PROCESSOR%%-gcc3/u2f +lib/xpi/u2f4moz@prefiks.org/bootstrap.js +lib/xpi/u2f4moz@prefiks.org/data/content-script.js +lib/xpi/u2f4moz@prefiks.org/data/logs.html +lib/xpi/u2f4moz@prefiks.org/data/logs.js +lib/xpi/u2f4moz@prefiks.org/icon.png +lib/xpi/u2f4moz@prefiks.org/icon64.png +lib/xpi/u2f4moz@prefiks.org/index.js +lib/xpi/u2f4moz@prefiks.org/install.rdf +lib/xpi/u2f4moz@prefiks.org/options.xul +lib/xpi/u2f4moz@prefiks.org/package.json