Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2016 23:42:36 +0000 (UTC)
From:      Nicola Vitale <nivit@FreeBSD.org>
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
Message-ID:  <201610302342.u9UNgaPG089812@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <nivit@FreeBSD.org>
+# $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 <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+SYSTEM_PROCESSOR=	x86_64
+.endif
+
+.include <bsd.port.post.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610302342.u9UNgaPG089812>