Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 16:21:55 GMT
From:      Gleb Kurtsou <gleb.kurtsou@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156002: New port: sysutils/pefs-kmod kernel level stacked cryptographic filesystem
Message-ID:  <201103281621.p2SGLtXP098689@red.freebsd.org>
Resent-Message-ID: <201103281630.p2SGUCP2021649@freefall.freebsd.org>

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

>Number:         156002
>Category:       ports
>Synopsis:       New port: sysutils/pefs-kmod kernel level stacked cryptographic filesystem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 16:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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