Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -273,6 +273,7 @@ SUBDIR += keychain SUBDIR += keynote SUBDIR += keyprint + SUBDIR += kdbx-viewer SUBDIR += kgpg-kde4 SUBDIR += knock SUBDIR += knocker Index: head/security/kdbx-viewer/Makefile =================================================================== --- head/security/kdbx-viewer/Makefile +++ head/security/kdbx-viewer/Makefile @@ -0,0 +1,35 @@ +# Created by: Ben Woods +# $FreeBSD$ + +PORTNAME= kdbx-viewer +PORTVERSION= 0.0.1 +DISTVERSIONPREFIX=v +CATEGORIES= security + +MAINTAINER= woodsb02@FreeBSD.org +COMMENT= ncurses GUI and command-line tool for KeePass2 Database files + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libexpat.so:textproc/expat2 \ + libgcrypt.so:security/libgcrypt \ + libstfl.so:devel/stfl + +USE_GITHUB= yes +GH_ACCOUNT= max-weller + +USES= ncurses +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +PLIST_FILES= bin/kdbxviewer +ALL_TARGET= + +post-patch: + ${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS} ${LDFLAGS}|' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/kdbxviewer ${STAGEDIR}${PREFIX}/bin/ + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/kdbxviewer + +.include Index: head/security/kdbx-viewer/distinfo =================================================================== --- head/security/kdbx-viewer/distinfo +++ head/security/kdbx-viewer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1475588279 +SHA256 (max-weller-kdbx-viewer-v0.0.1_GH0.tar.gz) = 9898385de015dc24fbe7137683c42a171438354312d05aec5a6d9e50ab6ebb9b +SIZE (max-weller-kdbx-viewer-v0.0.1_GH0.tar.gz) = 142777 Index: head/security/kdbx-viewer/pkg-descr =================================================================== --- head/security/kdbx-viewer/pkg-descr +++ head/security/kdbx-viewer/pkg-descr @@ -0,0 +1,10 @@ +Command-line tool written in C for KeePass2 Database files (kdbx). +It works completely read-only at the moment. + +Features: +- ncurses GUI to browse and view password database +- Dump raw, decrypted XML content with obscured passwords +- Display tree structure with de-obscured (=readable) passwords +- Get tab-separated (TSV/CSV) password list + +WWW: https://max-weller.github.io/kdbx-viewer/