New port: security/kc24

Console based password storing application using an encrypted XML
document as its database.

WWW: https://github.com/levaidaniel/kc

Please read the UPDATING note!

PR:		222376
Submitted by:	Vidar Karlsen <vidar@karlsen.tech>, Daniel <leva@ecentrum.hu> (maintainer and upstream-author)
Relnotes:	35656e47a3/Changelog
This commit is contained in:
Kurt Jaeger
2018-07-28 10:41:55 +00:00
parent d68e8bf85d
commit 41c545cf12
7 changed files with 109 additions and 1 deletions

View File

@@ -5,6 +5,15 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20180728:
AFFECTS: users who upgrade from security/kc to security/kc24
AUTHOR: pi@FreeBSD.org
The ondisk format changes from kc 2.3 to kc 2.4, so please
read the kc24 pkg-message file before the upgrade. It describes
how to create a backup, the xml dump and how to import the
xml dump afterwards.
20180725:
AFFECTS: users of textproc/ibus-typing-booster
AUTHOR: thierry@FreeBSD.org

View File

@@ -293,6 +293,7 @@
SUBDIR += john
SUBDIR += kbfs
SUBDIR += kc
SUBDIR += kc24
SUBDIR += kdbx-viewer
SUBDIR += kedpm
SUBDIR += keepass

View File

@@ -3,7 +3,7 @@
PORTNAME= kc
PORTVERSION= 2.3.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MAINTAINER= leva@ecentrum.hu
@@ -12,9 +12,14 @@ COMMENT= Console based password storing application
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
DEPRECATED= Versions 2.4.x use incompatible database format
EXPIRATION_DATE= 2019-03-01
LIB_DEPENDS= libxml2.so:textproc/libxml2 \
libpcre.so:devel/pcre
CONFLICTS= kc24
USES= libedit pkgconfig ssl uidfix
USE_GITHUB= yes
GH_ACCOUNT= levaidaniel

46
security/kc24/Makefile Normal file
View File

@@ -0,0 +1,46 @@
# Created by: LEVAI Daniel <leva@ecentrum.hu>
# $FreeBSD$
PORTNAME= kc
PORTVERSION= 2.4.2
CATEGORIES= security
PKGNAMESUFFIX= 24
MAINTAINER= leva@ecentrum.hu
COMMENT= Console based password storing application
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libxml2.so:textproc/libxml2
CONFLICTS= kc
OPTIONS_DEFINE= PCRE SCRYPT
OPTIONS_DEFAULT= PCRE SCRYPT LIBEDIT
OPTIONS_RADIO= CLI
OPTIONS_RADIO_CLI= LIBEDIT READLINE
SCRYPT_DESC= Scrypt KDF support (needs libscrypt)
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_MAKE_ENV+= HAVE_PCRE=yes
SCRYPT_LIB_DEPENDS= libscrypt.so:security/libscrypt
SCRYPT_MAKE_ENV+= HAVE_LIBSCRYPT=1
LIBEDIT_USES= libedit
LIBEDIT_MAKE_ENV+= EDITLINE=y
READLINE_USES= readline
READLINE_MAKE_ENV+= READLINE=y
USES+= pkgconfig ssl uidfix
USE_GITHUB= yes
GH_ACCOUNT= levaidaniel
PLIST_FILES= bin/kc man/man1/kc.1.gz
MAKE_ENV+= BUNDLED_BCRYPT=y
post-patch:
@${REINPLACE_CMD} -e 's|pkg-config|${LOCALBASE}/bin/pkgconf|' ${WRKSRC}/Makefile
.include <bsd.port.mk>

3
security/kc24/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1524229681
SHA256 (levaidaniel-kc-2.4.2_GH0.tar.gz) = ba769f9b7de4fa544bcd84fc9e94541aaa89cb8efb108579d96b68ee8015f43f
SIZE (levaidaniel-kc-2.4.2_GH0.tar.gz) = 75286

4
security/kc24/pkg-descr Normal file
View File

@@ -0,0 +1,4 @@
Console based password storing application using an encrypted XML
document as its database.
WWW: https://github.com/levaidaniel/kc

40
security/kc24/pkg-message Normal file
View File

@@ -0,0 +1,40 @@
IMPORTANT:
kc v2.4 has introduced a new database file format that is incompatible
with the older one (<2.4).
Dump all your data to files before upgrading to version 2.4 and re-import:
1) Dump the old database with the old version of kc:
$ kc -k ~/.kc/default.kcd
Password:
<example_chain% > dump kcdump
Dump OK
<example_chain% > quit
$ ls kcdump.xml
kcdump.xml
2) Make a backup, just in case
$ mv ~/.kc/default.kcd ~/.kc/default.kcd-backup
3) Upgrade kc to version 2.4
4) Create a new, empty database file and import the dump
$ kc
Creating '~/.kc/default.kcd'
Using '~/.kc/default.kcd' database.
New password (empty to cancel):
New password again (empty to cancel):
<default% > importxml -k kcdump.xml
Import OK
<example_chain% > write
Save OK
<example_chain% > quit
5) Test if the import is ok
6) Remove the dump
rm -P kcdump.xml