Index: security/Makefile =================================================================== --- security/Makefile +++ security/Makefile @@ -273,6 +273,7 @@ SUBDIR += keychain SUBDIR += keynote SUBDIR += keyprint + SUBDIR += kdbx-viewer SUBDIR += kgpg-kde4 SUBDIR += knock SUBDIR += knocker Index: security/kdbx-viewer/Makefile =================================================================== --- /dev/null +++ security/kdbx-viewer/Makefile @@ -0,0 +1,35 @@ +# Created by: Ben Woods +# $FreeBSD$ + +PORTNAME= kdbx-viewer +PORTVERSION= 0.0.1 +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 +GH_TAGNAME= 458c02c + +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: security/kdbx-viewer/distinfo =================================================================== --- /dev/null +++ security/kdbx-viewer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1474635047 +SHA256 (max-weller-kdbx-viewer-0.0.1-458c02c_GH0.tar.gz) = 3f2438286a589ffd78b4fd32a8d55d946bffe6e795f812347504c78a2cbed4a0 +SIZE (max-weller-kdbx-viewer-0.0.1-458c02c_GH0.tar.gz) = 142778 Index: security/kdbx-viewer/pkg-descr =================================================================== --- /dev/null +++ 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/