From nobody@FreeBSD.org  Mon Mar 28 16:21:55 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7C8B91065674
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 16:21:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 631698FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 16:21:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2SGLt7M098690
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 16:21:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2SGLtXP098689;
	Mon, 28 Mar 2011 16:21:55 GMT
	(envelope-from nobody)
Message-Id: <201103281621.p2SGLtXP098689@red.freebsd.org>
Date: Mon, 28 Mar 2011 16:21:55 GMT
From: Gleb Kurtsou <gleb.kurtsou@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: sysutils/pefs-kmod kernel level stacked cryptographic filesystem
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156002
>Category:       ports
>Synopsis:       New port: sysutils/pefs-kmod kernel level stacked cryptographic filesystem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sbz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 16:30:12 UTC 2011
>Closed-Date:    Thu Sep 01 14:22:26 UTC 2011
>Last-Modified:  Thu Sep  1 14:30:10 UTC 2011
>Originator:     Gleb Kurtsou
>Release:        
>Organization:
>Environment:
>Description:
FreeBSD > 8.0 supported

http://github.com/glk/pefs
http://wiki.freebsd.org/PEFS
http://lists.freebsd.org/pipermail/freebsd-current/2010-September/019691.html
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pefs-kmod
#	pefs-kmod/pkg-plist
#	pefs-kmod/files
#	pefs-kmod/files/patch-Makefile
#	pefs-kmod/files/patch-pefs_aesni.h
#	pefs-kmod/distinfo
#	pefs-kmod/Makefile
#	pefs-kmod/pkg-descr
#
echo c - pefs-kmod
mkdir -p pefs-kmod > /dev/null 2>&1
echo x - pefs-kmod/pkg-plist
sed 's/^X//' >pefs-kmod/pkg-plist << '4be45292eb782e8f747f3b21c16d2f1f'
Xsbin/pefs
X@cwd %%KMODDIR%%
Xpefs.ko
X@exec kldxref %%KMODDIR%%
X@unexec kldxref %%KMODDIR%%
4be45292eb782e8f747f3b21c16d2f1f
echo c - pefs-kmod/files
mkdir -p pefs-kmod/files > /dev/null 2>&1
echo x - pefs-kmod/files/patch-Makefile
sed 's/^X//' >pefs-kmod/files/patch-Makefile << '7ffac2a1cc1a1f7799b68f51157d90ea'
X--- sys/modules/pefs/Makefile.orig
X+++ sys/modules/pefs/Makefile
X@@ -8,12 +8,12 @@
X 	pefs_dircache.c \
X 	pefs_xts.c vmac.c
X 
X-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
X+.if defined(PEFS_AESNI)
X SRCS+=	pefs_aesni.c
X CFLAGS+= -DPEFS_AESNI
X .endif
X 
X-DEBUG_FLAGS+= -g
X+#DEBUG_FLAGS+= -g
X #DEBUG_FLAGS+= -DPEFS_DEBUG
X #DEBUG_FLAGS+= -DPEFS_DEBUG_EXTRA
X 
7ffac2a1cc1a1f7799b68f51157d90ea
echo x - pefs-kmod/files/patch-pefs_aesni.h
sed 's/^X//' >pefs-kmod/files/patch-pefs_aesni.h << 'af52e2322794c713d19af3de7843808a'
X--- sys/fs/pefs/pefs_aesni.h.orig
X+++ sys/fs/pefs/pefs_aesni.h
X@@ -26,6 +26,8 @@
X  * $FreeBSD$
X  */
X 
X+#ifdef PEFS_AESNI
X+
X #include <crypto/aesni/aesni.h>
X 
X struct pefs_aesni_ctx {
X@@ -41,3 +43,5 @@ struct pefs_aesni_ses {
X };
X 
X algop_init_t	pefs_aesni_init;
X+
X+#endif
af52e2322794c713d19af3de7843808a
echo x - pefs-kmod/distinfo
sed 's/^X//' >pefs-kmod/distinfo << '2b55b17d92cf5425f3364ca3afd3307d'
XSHA256 (pefs-2011-01-21.tar.gz) = 57e36f668ff5552de0c4c0ed393e3c540cbc432b9dd75ecf48842a8d8662fe23
XSIZE (pefs-2011-01-21.tar.gz) = 87085
2b55b17d92cf5425f3364ca3afd3307d
echo x - pefs-kmod/Makefile
sed 's/^X//' >pefs-kmod/Makefile << '2f1117b77e2aef46ec7a80c1c2199314'
X# New ports collection makefile for:	pefs-kmod
X# Date created:				26 January 2011
X# Whom:					Gleb Kurtsou <gk@freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pefs
XDISTVERSION=	2011-01-21
XCATEGORIES=	sysutils kld
XMASTER_SITES=	https://github.com/downloads/glk/pefs/
XPKGNAMESUFFIX=	-kmod
X
XMAINTAINER=	gk@freebsd.org
XCOMMENT=	PEFS kernel level stacked cryptographic filesystem
X
XLICENSE=	BSD
X
XFETCH_ARGS=	-Fpr		# work around 302 redirect at guthub
X
XKMODDIR?=	/boot/modules
XPLIST_SUB=	KMODDIR=${KMODDIR}
XMAKE_ENV=	BINDIR="${PREFIX}/sbin" MANDIR="${MANPREFIX}/man/man" \
X		NO_MANCOMPRESS= \
X		KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" \
X
XMAN8=		pefs.8
X
XONLY_FOR_ARCHS=	i386 amd64	# not tested on other archs
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 800000
XBROKEN=		requires fairly recent FreeBSD-STABLE, or FreeBSD-CURRENT
X.endif
X
X.include <bsd.port.post.mk>
2f1117b77e2aef46ec7a80c1c2199314
echo x - pefs-kmod/pkg-descr
sed 's/^X//' >pefs-kmod/pkg-descr << '6b6f90dc12fb3f8310b003a49f27e346'
XPEFS is a kernel level stacked cryptographic filesystem for FreeBSD.
X
XKey features:
X* Transparently runs on top of existing file systems
X* Random per file tweak value for encryption
X* Stores metadata only in encrypted file name
X* Arbitrary number of keys per file system, mixing keys in same
X  directory and key chains
X* Modern cryptographic algorithms: AES and Camellia in XTS mode,
X  PKCS#5v2 and HKDF for key generation.
X
XWWW: http://github.com/glk/pefs
XWWW: http://wiki.freebsd.org/PEFS
6b6f90dc12fb3f8310b003a49f27e346
exit



>Release-Note:
>Audit-Trail:
Class-Changed-From-To: sw-bug->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Mon Mar 28 16:30:23 UTC 2011 
Class-Changed-Why:  
Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156002 

From: Gleb Kurtsou <gleb.kurtsou@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156002: New port: sysutils/pefs-kmod kernel level stacked
 cryptographic filesystem
Date: Thu, 14 Apr 2011 14:46:47 +0300

 --ReaqsoxgOBHFXBhH
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 
 Please ignore previous patch. During review flow in implementation was
 found and decision was made not to preserve backward compatibility.
 There was no port so number of people affected should be low.
 Original distfiles were deleted.
 
 Commit log: https://github.com/glk/pefs/commits/master
 
 New port attached.
 
 Thanks,
 Gleb.
 
 --ReaqsoxgOBHFXBhH
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: attachment; filename="pefs-kmod.shar.txt"
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	pefs-kmod
 #	pefs-kmod/pkg-descr
 #	pefs-kmod/pkg-plist
 #	pefs-kmod/distinfo
 #	pefs-kmod/files
 #	pefs-kmod/files/patch-Makefile
 #	pefs-kmod/files/patch-pefs_aesni.h
 #	pefs-kmod/Makefile
 #
 echo c - pefs-kmod
 mkdir -p pefs-kmod > /dev/null 2>&1
 echo x - pefs-kmod/pkg-descr
 sed 's/^X//' >pefs-kmod/pkg-descr << '6b6f90dc12fb3f8310b003a49f27e346'
 XPEFS is a kernel level stacked cryptographic filesystem for FreeBSD.
 X
 XKey features:
 X* Transparently runs on top of existing file systems
 X* Random per file tweak value for encryption
 X* Stores metadata only in encrypted file name
 X* Arbitrary number of keys per file system, mixing keys in same
 X  directory and key chains
 X* Modern cryptographic algorithms: AES and Camellia in XTS mode,
 X  PKCS#5v2 and HKDF for key generation.
 X
 XWWW: http://github.com/glk/pefs
 XWWW: http://wiki.freebsd.org/PEFS
 6b6f90dc12fb3f8310b003a49f27e346
 echo x - pefs-kmod/pkg-plist
 sed 's/^X//' >pefs-kmod/pkg-plist << '4be45292eb782e8f747f3b21c16d2f1f'
 Xsbin/pefs
 X@cwd %%KMODDIR%%
 Xpefs.ko
 X@exec kldxref %%KMODDIR%%
 X@unexec kldxref %%KMODDIR%%
 4be45292eb782e8f747f3b21c16d2f1f
 echo x - pefs-kmod/distinfo
 sed 's/^X//' >pefs-kmod/distinfo << '2b55b17d92cf5425f3364ca3afd3307d'
 XSHA256 (pefs-2011-04-14.tar.gz) = b0ce87a39a7adf54e8c8bc803ac0e2d799f5d8e3f873d10143da5aab4a4d87ae
 XSIZE (pefs-2011-04-14.tar.gz) = 87193
 2b55b17d92cf5425f3364ca3afd3307d
 echo c - pefs-kmod/files
 mkdir -p pefs-kmod/files > /dev/null 2>&1
 echo x - pefs-kmod/files/patch-Makefile
 sed 's/^X//' >pefs-kmod/files/patch-Makefile << '7ffac2a1cc1a1f7799b68f51157d90ea'
 X--- sys/modules/pefs/Makefile.orig
 X+++ sys/modules/pefs/Makefile
 X@@ -8,12 +8,12 @@
 X 	pefs_dircache.c \
 X 	pefs_xts.c vmac.c
 X 
 X-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
 X+.if defined(PEFS_AESNI)
 X SRCS+=	pefs_aesni.c
 X CFLAGS+= -DPEFS_AESNI
 X .endif
 X 
 X-DEBUG_FLAGS+= -g
 X+#DEBUG_FLAGS+= -g
 X #DEBUG_FLAGS+= -DPEFS_DEBUG
 X #DEBUG_FLAGS+= -DPEFS_DEBUG_EXTRA
 X 
 7ffac2a1cc1a1f7799b68f51157d90ea
 echo x - pefs-kmod/files/patch-pefs_aesni.h
 sed 's/^X//' >pefs-kmod/files/patch-pefs_aesni.h << 'af52e2322794c713d19af3de7843808a'
 X--- sys/fs/pefs/pefs_aesni.h.orig
 X+++ sys/fs/pefs/pefs_aesni.h
 X@@ -26,6 +26,8 @@
 X  * $FreeBSD$
 X  */
 X 
 X+#ifdef PEFS_AESNI
 X+
 X #include <crypto/aesni/aesni.h>
 X 
 X struct pefs_aesni_ctx {
 X@@ -41,3 +43,5 @@ struct pefs_aesni_ses {
 X };
 X 
 X algop_init_t	pefs_aesni_init;
 X+
 X+#endif
 af52e2322794c713d19af3de7843808a
 echo x - pefs-kmod/Makefile
 sed 's/^X//' >pefs-kmod/Makefile << '2f1117b77e2aef46ec7a80c1c2199314'
 X# New ports collection makefile for:	pefs-kmod
 X# Date created:				26 January 2011
 X# Whom:					Gleb Kurtsou <gk@freebsd.org>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	pefs
 XDISTVERSION=	2011-04-14
 XCATEGORIES=	sysutils kld
 XMASTER_SITES=	https://github.com/downloads/glk/pefs/
 XPKGNAMESUFFIX=	-kmod
 X
 XMAINTAINER=	gk@freebsd.org
 XCOMMENT=	PEFS kernel level stacked cryptographic filesystem
 X
 XLICENSE=	BSD
 X
 XFETCH_ARGS=	-Fpr		# work around 302 redirect at guthub
 X
 XKMODDIR?=	/boot/modules
 XPLIST_SUB=	KMODDIR=${KMODDIR}
 XMAKE_ENV=	BINDIR="${PREFIX}/sbin" MANDIR="${MANPREFIX}/man/man" \
 X		NO_MANCOMPRESS= \
 X		KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" \
 X
 XMAN8=		pefs.8
 X
 XONLY_FOR_ARCHS=	i386 amd64	# not tested on other archs
 X
 X.include <bsd.port.pre.mk>
 X
 X.if ${OSVERSION} < 800000
 XBROKEN=		requires fairly recent FreeBSD-STABLE, or FreeBSD-CURRENT
 X.endif
 X
 X.include <bsd.port.post.mk>
 2f1117b77e2aef46ec7a80c1c2199314
 exit
 
 
 --ReaqsoxgOBHFXBhH--
Responsible-Changed-From-To: freebsd-ports-bugs->sbz 
Responsible-Changed-By: sbz 
Responsible-Changed-When: Fri Aug 19 06:16:23 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156002 
State-Changed-From-To: open->closed 
State-Changed-By: sbz 
State-Changed-When: Thu Sep 1 14:22:25 UTC 2011 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156002 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156002: commit references a PR
Date: Thu,  1 Sep 2011 14:21:24 +0000 (UTC)

 sbz         2011-09-01 14:21:11 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils             Makefile 
   Added files:
     sysutils/pefs-kmod   Makefile distinfo pkg-descr pkg-plist 
     sysutils/pefs-kmod/files patch-Makefile patch-pefs_aesni.h 
   Log:
   PEFS is a kernel level stacked cryptographic filesystem for FreeBSD.
   
   Key features:
   * Transparently runs on top of existing file systems
   * Random per file tweak value for encryption
   * Stores metadata only in encrypted file name
   * Arbitrary number of keys per file system, mixing keys in same
     directory and key chains
   * Modern cryptographic algorithms: AES and Camellia in XTS mode,
     PKCS#5v2 and HKDF for key generation.
   
   WWW: http://github.com/glk/pefs
   WWW: http://wiki.freebsd.org/PEFS
   
   PR:             ports/156002
   Submitted by:   Gleb Kurtsou <gk@freebsd.org>
   Approved by:    jadawin@ (mentor)
   
   Revision  Changes    Path
   1.1319    +1 -0      ports/sysutils/Makefile
   1.1       +37 -0     ports/sysutils/pefs-kmod/Makefile (new)
   1.1       +2 -0      ports/sysutils/pefs-kmod/distinfo (new)
   1.1       +17 -0     ports/sysutils/pefs-kmod/files/patch-Makefile (new)
   1.1       +17 -0     ports/sysutils/pefs-kmod/files/patch-pefs_aesni.h (new)
   1.1       +13 -0     ports/sysutils/pefs-kmod/pkg-descr (new)
   1.1       +5 -0      ports/sysutils/pefs-kmod/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
