svn commit: r475519 - in head: . security security/kc security/kc24
Kurt Jaeger
pi at FreeBSD.org
Sat Jul 28 10:41:58 UTC 2018
Author: pi
Date: Sat Jul 28 10:41:55 2018
New Revision: 475519
URL: https://svnweb.freebsd.org/changeset/ports/475519
Log:
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 at karlsen.tech>, Daniel <leva at ecentrum.hu> (maintainer and upstream-author)
Relnotes: https://github.com/levaidaniel/kc/blob/35656e47a36e96440eb5cc9e4f8a856856831e9a/Changelog
Added:
head/security/kc24/
head/security/kc24/Makefile (contents, props changed)
head/security/kc24/distinfo (contents, props changed)
head/security/kc24/pkg-descr (contents, props changed)
head/security/kc24/pkg-message (contents, props changed)
Modified:
head/UPDATING
head/security/Makefile
head/security/kc/Makefile
Modified: head/UPDATING
==============================================================================
--- head/UPDATING Sat Jul 28 10:18:33 2018 (r475518)
+++ head/UPDATING Sat Jul 28 10:41:55 2018 (r475519)
@@ -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 at 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 at FreeBSD.org
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Sat Jul 28 10:18:33 2018 (r475518)
+++ head/security/Makefile Sat Jul 28 10:41:55 2018 (r475519)
@@ -293,6 +293,7 @@
SUBDIR += john
SUBDIR += kbfs
SUBDIR += kc
+ SUBDIR += kc24
SUBDIR += kdbx-viewer
SUBDIR += kedpm
SUBDIR += keepass
Modified: head/security/kc/Makefile
==============================================================================
--- head/security/kc/Makefile Sat Jul 28 10:18:33 2018 (r475518)
+++ head/security/kc/Makefile Sat Jul 28 10:41:55 2018 (r475519)
@@ -3,7 +3,7 @@
PORTNAME= kc
PORTVERSION= 2.3.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MAINTAINER= leva at ecentrum.hu
@@ -12,8 +12,13 @@ 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
Added: head/security/kc24/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/kc24/Makefile Sat Jul 28 10:41:55 2018 (r475519)
@@ -0,0 +1,46 @@
+# Created by: LEVAI Daniel <leva at ecentrum.hu>
+# $FreeBSD$
+
+PORTNAME= kc
+PORTVERSION= 2.4.2
+CATEGORIES= security
+PKGNAMESUFFIX= 24
+
+MAINTAINER= leva at 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>
Added: head/security/kc24/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/kc24/distinfo Sat Jul 28 10:41:55 2018 (r475519)
@@ -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
Added: head/security/kc24/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/kc24/pkg-descr Sat Jul 28 10:41:55 2018 (r475519)
@@ -0,0 +1,4 @@
+Console based password storing application using an encrypted XML
+document as its database.
+
+WWW: https://github.com/levaidaniel/kc
Added: head/security/kc24/pkg-message
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/kc24/pkg-message Sat Jul 28 10:41:55 2018 (r475519)
@@ -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
More information about the svn-ports-all
mailing list