Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2013 19:28:20 GMT
From:      Veniamin Gvozdikov <g.veniamin@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177561: [update]: security/libkpass up to latest version
Message-ID:  <201304011928.r31JSKrV024127@red.freebsd.org>
Resent-Message-ID: <201304011930.r31JU0Hl051461@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177561
>Category:       ports
>Synopsis:       [update]: security/libkpass up to latest version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 01 19:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Veniamin Gvozdikov
>Release:        FreeBSD 9.1-RELEASE
>Organization:
>Environment:
FreeBSD ololo 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Update to version 5:

Version 5 - 20121107
** Packagers and users -- Changed ABI/SONAME/dependencies

Switched from OpenSSL to nettle due to licensing issues. Some functions changed
to void since they no longer can produce errors.
Changed libtool version to change SONAME due to interface changes.
Changed error message format, now using a function that goes through gettext
for localized text (translations welcome).
Change kpass_hash_pw and kpass_hash_pw_keyfile to not require a DB argument.

Version 4 - 20121013
Add support for keyfiles and pull in a bunch of autotools changes.

>How-To-Repeat:

>Fix:
diff -ruN libkpass.orig/Makefile libkpass/Makefile
--- libkpass.orig/Makefile	2013-04-01 23:25:08.947364448 +0400
+++ libkpass/Makefile	2013-04-01 22:41:51.007364174 +0400
@@ -1,12 +1,8 @@
-# New ports collection makefile for:	libkpass
-# Date created:		2011-09-12
-# Whom:			Gvozdikov Veniamin <g.veniamin@googlemail.com>
-#
-# $FreeBSD: ports/security/libkpass/Makefile,v 1.3 2012/11/17 06:01:07 svnexp Exp $
-#
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
+# $FreeBSD$
 
 PORTNAME=	libkpass
-PORTVERSION=	3
+PORTVERSION=	5
 CATEGORIES=	security
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
 
@@ -15,14 +11,18 @@
 
 LICENSE=	GPLv3
 
+LIB_DEPENDS=	nettle:${PORTSDIR}/security/nettle
+
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
-CFLAGS+=	-Dbswap_32=bswap32 -Dbswap_16=bswap16
+CFLAGS+=	-Dbswap_32=bswap32 -Dbswap_16=bswap16 \
+		-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
 
 PLIST_FILES=	include/kpass.h \
 		lib/libkpass.so \
-		lib/libkpass.so.0 \
+		lib/libkpass.so.1 \
 		lib/libkpass.la \
 		lib/libkpass.a
 
diff -ruN libkpass.orig/distinfo libkpass/distinfo
--- libkpass.orig/distinfo	2013-04-01 23:25:08.947364448 +0400
+++ libkpass/distinfo	2013-04-01 22:32:38.672363754 +0400
@@ -1,2 +1,2 @@
-SHA256 (libkpass-3.tar.gz) = 390ebca29040ae1a015f4c067de16fe585693d2b4f95caca24529917bdb2dfec
-SIZE (libkpass-3.tar.gz) = 313707
+SHA256 (libkpass-5.tar.gz) = 72bea97b2a2f5a68bdf52b3a67fc38028fcd295b016169e05c631fec9596faca
+SIZE (libkpass-5.tar.gz) = 402843
diff -ruN libkpass.orig/files/patch-src_kpass.c libkpass/files/patch-src_kpass.c
--- libkpass.orig/files/patch-src_kpass.c	2013-04-01 23:25:08.947364448 +0400
+++ libkpass/files/patch-src_kpass.c	2013-04-01 22:38:29.740364823 +0400
@@ -1,11 +1,14 @@
---- src/kpass.c.orig	2011-09-12 11:39:12.476116248 +0400
-+++ src/kpass.c	2011-09-12 11:39:37.962483090 +0400
-@@ -19,7 +19,7 @@
- 
- #include <string.h>
- #include <openssl/evp.h>
--#include <byteswap.h>
+--- src/kpass.c.orig	2013-04-01 18:36:50.878364960 +0000
++++ src/kpass.c	2013-04-01 18:37:43.162887560 +0000
+@@ -23,7 +23,11 @@
+ #include <nettle/aes.h>
+ #include <nettle/sha.h>
+ #include <nettle/cbc.h>
++#ifdef __FreeBSD__
 +#include <sys/endian.h>
++#else
+ #include <byteswap.h>
++#endif
  #include <time.h>
  
- #include "kpass.h"
+ #include <libintl.h>
diff -ruN libkpass.orig/pkg-descr libkpass/pkg-descr
--- libkpass.orig/pkg-descr	2013-04-01 23:25:08.947364448 +0400
+++ libkpass/pkg-descr	2013-04-01 23:23:13.286363854 +0400
@@ -1,4 +1,4 @@
 Libkpass is a from-scratch C implementation of reading and writing
 KeePass 1.x format password databases.
 
-WWW:	http://libkpass.sourceforge.net/
+WWW: http://libkpass.sourceforge.net/

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304011928.r31JSKrV024127>