mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
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)
This commit is contained in:
parent
0c12c6c52a
commit
48135da34d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280980
@ -634,6 +634,7 @@
|
||||
SUBDIR += pecl-fileinfo
|
||||
SUBDIR += pecl-mogilefs
|
||||
SUBDIR += pecl-proctitle
|
||||
SUBDIR += pefs-kmod
|
||||
SUBDIR += penv
|
||||
SUBDIR += personality
|
||||
SUBDIR += pessulus
|
||||
|
37
sysutils/pefs-kmod/Makefile
Normal file
37
sysutils/pefs-kmod/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# New ports collection makefile for: pefs-kmod
|
||||
# Date created: 26 January 2011
|
||||
# Whom: Gleb Kurtsou <gk@freebsd.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pefs
|
||||
DISTVERSION= 2011-04-14
|
||||
CATEGORIES= sysutils kld
|
||||
MASTER_SITES= http://cloud.github.com/downloads/glk/${PORTNAME}/
|
||||
PKGNAMESUFFIX= -kmod
|
||||
|
||||
MAINTAINER= gk@freebsd.org
|
||||
COMMENT= PEFS kernel level stacked cryptographic filesystem
|
||||
|
||||
LICENSE= BSD
|
||||
|
||||
FETCH_ARGS= -Fpr # work around 302 redirect at guthub
|
||||
|
||||
KMODDIR?= /boot/modules
|
||||
PLIST_SUB= KMODDIR=${KMODDIR}
|
||||
MAKE_ENV= BINDIR="${PREFIX}/sbin" MANDIR="${MANPREFIX}/man/man" \
|
||||
NO_MANCOMPRESS= \
|
||||
KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" \
|
||||
|
||||
MAN8= pefs.8
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64 # not tested on other archs
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 800000
|
||||
BROKEN= requires fairly recent FreeBSD-STABLE, or FreeBSD-CURRENT
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
sysutils/pefs-kmod/distinfo
Normal file
2
sysutils/pefs-kmod/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pefs-2011-04-14.tar.gz) = b0ce87a39a7adf54e8c8bc803ac0e2d799f5d8e3f873d10143da5aab4a4d87ae
|
||||
SIZE (pefs-2011-04-14.tar.gz) = 87193
|
17
sysutils/pefs-kmod/files/patch-Makefile
Normal file
17
sysutils/pefs-kmod/files/patch-Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
--- sys/modules/pefs/Makefile.orig
|
||||
+++ sys/modules/pefs/Makefile
|
||||
@@ -8,12 +8,12 @@
|
||||
pefs_dircache.c \
|
||||
pefs_xts.c vmac.c
|
||||
|
||||
-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
||||
+.if defined(PEFS_AESNI)
|
||||
SRCS+= pefs_aesni.c
|
||||
CFLAGS+= -DPEFS_AESNI
|
||||
.endif
|
||||
|
||||
-DEBUG_FLAGS+= -g
|
||||
+#DEBUG_FLAGS+= -g
|
||||
#DEBUG_FLAGS+= -DPEFS_DEBUG
|
||||
#DEBUG_FLAGS+= -DPEFS_DEBUG_EXTRA
|
||||
|
17
sysutils/pefs-kmod/files/patch-pefs_aesni.h
Normal file
17
sysutils/pefs-kmod/files/patch-pefs_aesni.h
Normal file
@ -0,0 +1,17 @@
|
||||
--- sys/fs/pefs/pefs_aesni.h.orig
|
||||
+++ sys/fs/pefs/pefs_aesni.h
|
||||
@@ -26,6 +26,8 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
+#ifdef PEFS_AESNI
|
||||
+
|
||||
#include <crypto/aesni/aesni.h>
|
||||
|
||||
struct pefs_aesni_ctx {
|
||||
@@ -41,3 +43,5 @@ struct pefs_aesni_ses {
|
||||
};
|
||||
|
||||
algop_init_t pefs_aesni_init;
|
||||
+
|
||||
+#endif
|
13
sysutils/pefs-kmod/pkg-descr
Normal file
13
sysutils/pefs-kmod/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
5
sysutils/pefs-kmod/pkg-plist
Normal file
5
sysutils/pefs-kmod/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
sbin/pefs
|
||||
@cwd %%KMODDIR%%
|
||||
pefs.ko
|
||||
@exec kldxref %%KMODDIR%%
|
||||
@unexec kldxref %%KMODDIR%%
|
Loading…
Reference in New Issue
Block a user