1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Add new port security/lastpass-cli

PR:		194594
Submitted by:	Thomas Hurst

lastpass-cli is an open-source command-line interface to the popular
LastPass password management service.
This commit is contained in:
John Marino 2014-11-04 17:11:05 +00:00
parent cea8b47d65
commit 79a5b4f696
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372155
5 changed files with 89 additions and 0 deletions

View File

@ -256,6 +256,7 @@
SUBDIR += l0phtcrack
SUBDIR += l5
SUBDIR += lasso
SUBDIR += lastpass-cli
SUBDIR += libassuan
SUBDIR += libbeid
SUBDIR += libbf

View File

@ -0,0 +1,49 @@
# Created by: Thomas Hurst <tom@hur.st>
# $FreeBSD$
PORTNAME= lastpass-cli
PORTVERSION= 0.3.0.20141031
CATEGORIES= security
MASTER_SITES= GH
MAINTAINER= tom@hur.st
COMMENT= LastPass command line interface tool
LICENSE= GPLv2
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
USES= gmake pkgconfig
USE_GNOME= libxml2
USE_OPENSSL= yes
USE_GITHUB= YES
GH_ACCOUNT= lastpass
GH_PROJECT= lastpass-cli
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 8993a4e
PLIST_FILES= bin/lpass
MAKE_ENV+= MANDIR=${MANPREFIX}/man
OPTIONS_DEFINE= MANPAGES PINENTRY XCLIP XSEL
OPTIONS_DEFAULT= MANPAGES
PINENTRY_DESC= Use pinentry for password entry
XCLIP_DESC= Use xclip for interacting with X11 clipboard
XSEL_DESC= Use xsel for interacting with X11 clipboard
MANPAGES_BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \
xmlto:${PORTSDIR}/textproc/xmlto
MANPAGES_ALL_TARGET= all doc-man
MANPAGES_INSTALL_TARGET=install install-doc
MANPAGES_PLIST_FILES= ${MANPREFIX}/man/man1/lpass.1.gz
PINENTRY_RUN_DEPENDS= pinentry:${PORTSDIR}/security/pinentry
XCLIP_RUN_DEPENDS= xclip:${PORTSDIR}/x11/xclip
XSEL_RUN_DEPENDS= xsel:${PORTSDIR}/x11/xsel
post-extract:
@${REINPLACE_CMD} -e 's/-Wno-language-extension-token//g' \
${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (lastpass-cli-0.3.0.20141031.tar.gz) = b7297875991857a36b7fbce46822c62836e91a4cb6f044ba6f123e576eb39e38
SIZE (lastpass-cli-0.3.0.20141031.tar.gz) = 57243

View File

@ -0,0 +1,4 @@
lastpass-cli is an open-source command-line interface to the popular
LastPass password management service.
WWW: https://lastpass.com/

View File

@ -0,0 +1,33 @@
===============================================================================
Important security considerations
===============================================================================
Before using the 'edit' subcommand interactively, it's recommended to set the
SECURE_TMPDIR environment variable to a location that isn't written to disk,
such as a tmpfs mount, ideally using encrypted swap:
https://www.freebsd.org/doc/handbook/swap-encrypting.html
Also keep in mind your editor may create temporary files and backups in other
locations - consider disabling these features for files matching the pattern
lpass.* or within your $SECURE_TMPDIR. For example, with vim:
autocmd BufRead lpass.* setlocal noundofile nowritebackup noswapfile
===============================================================================
Using OpenSSL from ports
===============================================================================
If you're using security/openssl, ensure ftp/curl is configured with the
HEIMDAL_PORT option to avoid linking to two different OpenSSL libraries.
===============================================================================
Other steps
===============================================================================
lpass requires /proc to be mounted for correct operation. To enable it add
the following to /etc/fstab and run 'mount /proc':
proc /proc procfs rw 0 0