diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-04-05 04:25:55 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-04-05 04:25:55 +0000 |
commit | 23e87ed339e21b70faedcbc753d0eb0cc79b1b67 (patch) | |
tree | 114780d4aebab0c9aa0fa351967d43e4a9b0b3de /security/keybase | |
parent | ae99283bbbe263c03148d3daa21cb83c829e7422 (diff) |
Notes
Diffstat (limited to 'security/keybase')
-rw-r--r-- | security/keybase/Makefile | 53 | ||||
-rw-r--r-- | security/keybase/distinfo | 6 |
2 files changed, 14 insertions, 45 deletions
diff --git a/security/keybase/Makefile b/security/keybase/Makefile index 05650567dd9e..ac381448c401 100644 --- a/security/keybase/Makefile +++ b/security/keybase/Makefile @@ -1,60 +1,29 @@ # $FreeBSD$ PORTNAME= keybase -DISTVERSION= v0.2.0 +PORTVERSION= 0.2.18 CATEGORIES= security -MASTER_SITES= GH \ +MASTER_SITES= https://dist.keybase.io/pkg/files/ \ LOCAL/bdrewery/${PORTNAME}/:DEFAULT,deps \ http://mirror.shatow.net/freebsd/${PORTNAME}/:DEFAULT,deps -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - ${DEP_DIST}:deps +EXTRACT_SUFX= .tgz MAINTAINER= bdrewery@freebsd.org COMMENT= Keybase.io client LICENSE= BSD3CLAUSE -BUILD_DEPENDS= npm>=0:${PORTSDIR}/www/npm RUN_DEPENDS= node>=0:${PORTSDIR}/www/node \ gpg:${PORTSDIR}/security/gnupg -# Must bundle deps. -# 1. They are not in ports and doing so creates a large complex task with little -# benefit requiring a lot of maintenance. Hopefully someday we will have -# an npm wrapper similar to BSDPAN. -# 2. npm has absolutely no way to fetch dependencies without installing at the -# same time so this would not build on poudriere due to network restrictions -# outside of 'fetch' phase. See https://github.com/npm/npm/issues/2817 -# 3. A date is used as dependencies can upgrade even without keybase changing -# anything due to dependency patterns not binding to specific versions in -# package.json. I.e., even if the problem of fetching dependencies is -# solved, we want this package to be reproducible. -DEP_DIST_DATE= 20140327 -DEP_DIST_DFMT= %Y%m%d -DEP_DIST_PRE= ${PORTNAME}-deps-${PORTVERSION}-${GH_COMMIT}- -DEP_DIST_POST= .txz -DEP_DIST= ${DEP_DIST_PRE}${DEP_DIST_DATE}${DEP_DIST_POST} - -USE_GITHUB= yes -GH_ACCOUNT= keybase -GH_PROJECT= node-client -GH_COMMIT= 9509986 +WRKSRC= ${WRKDIR}/package +NO_ARCH= yes +NO_BUILD= yes +# Install it a private place instead of polluting lib/node_modules +# which npm(1) owns and will upgrade beneath pkg(8) control. KEYBASE_PREFIX= ${PREFIX}/libexec/${PORTNAME} -# Generate dependency distfile. This is only used by maintainer. -makedeps: patch - cd ${WRKSRC} && \ - ${RM} -rf node_modules && \ - dep_fname="${DEP_DIST_PRE}`/bin/date '+${DEP_DIST_DFMT}'`${DEP_DIST_POST}" && \ - tar -cJf $${dep_fname} node_modules/ && \ - ${MV} -f $${dep_fname} ${_DISTDIR}/ && \ - cd ${.CURDIR} && \ - ${MAKE} makesum - -post-extract: - @${MV} ${WRKDIR}/node_modules ${WRKSRC}/node_modules - add-plist-post: npm-auto-plist npm-auto-plist: @@ -66,8 +35,10 @@ npm-auto-plist: do-install: @${MKDIR} ${WRKDIR}/tmp ${STAGEDIR}${KEYBASE_PREFIX}/lib - cd ${STAGEDIR}${KEYBASE_PREFIX}/lib && ${SETENV} HOME=${WRKDIR}/tmp \ - ${LOCALBASE}/bin/npm install ${WRKSRC} + (cd ${WRKSRC} && \ + ${COPYTREE_SHARE} \* \ + ${STAGEDIR}${KEYBASE_PREFIX}/lib/node_modules/${PORTNAME}) + ${CHMOD} +x ${STAGEDIR}${KEYBASE_PREFIX}/lib/node_modules/${PORTNAME}/bin/main.js ${LN} -s ${KEYBASE_PREFIX}/lib/node_modules/${PORTNAME}/bin/main.js \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} diff --git a/security/keybase/distinfo b/security/keybase/distinfo index 2a5b24134123..41a1264edfbe 100644 --- a/security/keybase/distinfo +++ b/security/keybase/distinfo @@ -1,4 +1,2 @@ -SHA256 (keybase-v0.2.0.tar.gz) = 4ca20da5e5f371e63521a838416da73ff54deeae7c71a1441670f9322ddbe723 -SIZE (keybase-v0.2.0.tar.gz) = 594085 -SHA256 (keybase-deps-v0.2.0-9509986-20140327.txz) = 886220149b109ac1face08976837259f7a021f08c02e663d637327b546adbb08 -SIZE (keybase-deps-v0.2.0-9509986-20140327.txz) = 1946868 +SHA256 (keybase-0.2.18.tgz) = fd89326a60274b64401247f2b13d5b17ca8432eb4b458a7cec997d59ccdf6ce0 +SIZE (keybase-0.2.18.tgz) = 3727320 |