1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/security/keybase/Makefile
2014-06-27 03:15:08 +00:00

51 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= keybase
PORTVERSION= 0.4.11
CATEGORIES= security
MASTER_SITES= https://dist.keybase.io/pkg/files/ \
LOCAL/bdrewery/${PORTNAME}/ \
http://mirror.shatow.net/freebsd/${PORTNAME}/
EXTRACT_SUFX= .tgz
MAINTAINER= bdrewery@freebsd.org
COMMENT= Keybase.io client
LICENSE= BSD3CLAUSE
RUN_DEPENDS= node>=0:${PORTSDIR}/www/node \
gpg:${PORTSDIR}/security/gnupg
WRKSRC= ${WRKDIR}/package
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= pkg-message
# 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}
add-plist-post: npm-auto-plist
npm-auto-plist:
@{ \
${ECHO_CMD} "bin/${PORTNAME}"; \
${FIND} ${STAGEDIR}${KEYBASE_PREFIX} -type f -or -type l; \
${FIND} ${STAGEDIR}${KEYBASE_PREFIX} -type d -d | ${SED} -e 's,^,@dirrm ,'; \
} | ${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
do-install:
@${MKDIR} ${WRKDIR}/tmp ${STAGEDIR}${KEYBASE_PREFIX}/lib
(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}
# Quiet stage-qa
post-install:
@${RM} ${STAGEDIR}${KEYBASE_PREFIX}/lib/node_modules/keybase/node_modules/request/node_modules/node-uuid/benchmark/bench.sh
.include <bsd.port.mk>