Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2021 14:57:22 GMT
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 8fce920a0e29 - 2021Q3 - sysutils/pefs-kmod: Fix build for 13+ and take maintainership
Message-ID:  <202107191457.16JEvM8N024952@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2021Q3 has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8fce920a0e2965e363cb978fa6ba627572d69fcc

commit 8fce920a0e2965e363cb978fa6ba627572d69fcc
Author:     Daniel O'Connor <darius@dons.net.au>
AuthorDate: 2021-07-19 14:46:25 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-07-19 14:57:02 +0000

    sysutils/pefs-kmod: Fix build for 13+ and take maintainership
    
    PR:             256956
    Approved by:    gleb (original maintainer)
    
    (cherry picked from commit 6274872969d612ea579e578b9074b12f9d3bfd95)
---
 sysutils/pefs-kmod/Makefile                      | 32 ++++++++----------------
 sysutils/pefs-kmod/distinfo                      |  6 ++---
 sysutils/pefs-kmod/files/patch-libpam-Makefile   | 10 --------
 sysutils/pefs-kmod/files/patch-module-Makefile   | 11 --------
 sysutils/pefs-kmod/files/patch-pam_pefs-Makefile |  9 -------
 sysutils/pefs-kmod/files/patch-pefs_aesni.h      | 17 -------------
 sysutils/pefs-kmod/pkg-descr                     |  2 +-
 7 files changed, 14 insertions(+), 73 deletions(-)

diff --git a/sysutils/pefs-kmod/Makefile b/sysutils/pefs-kmod/Makefile
index 2e5439fa0be2..5999a1afca9d 100644
--- a/sysutils/pefs-kmod/Makefile
+++ b/sysutils/pefs-kmod/Makefile
@@ -1,46 +1,34 @@
 # Created by: Gleb Kurtsou <gleb@FreeBSD.org>
 
 PORTNAME=	pefs
-DISTVERSION=	2018-11-26
+DISTVERSION=	g20210628
+PORTEPOCH=	1
 CATEGORIES=	sysutils
-MASTER_SITES=	LOCAL/gleb
 PKGNAMESUFFIX=	-kmod
 
-MAINTAINER=	gleb@FreeBSD.org
+MAINTAINER=	darius@dons.net.au
 COMMENT=	PEFS kernel level stacked cryptographic filesystem
 
 LICENSE=	BSD2CLAUSE
 
-BROKEN_armv6=		fails to compile: implicit declaration of function 'cp15_pmccntr_get' is invalid in C99
-BROKEN_DragonFly=	fails to build: don't know how to make vnode_if.h
-ONLY_FOR_ARCHS=		amd64 armv6 i386
+ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386
 ONLY_FOR_ARCHS_REASON=	untested on any other arch
-BROKEN_FreeBSD_13=	fails to compile: too many arguments to function call, expected single argument 'vp', have 2 arguments
-BROKEN_FreeBSD_14=	fails to compile: too many arguments to function call, expected single argument 'vp', have 2 arguments
+# PEFS works on -current but out of tree KLDs get incorrectly compiled without INVARIANTS
+BROKEN_FreeBSD_14=	crashes on mount due to INVARIANTS
 
 USES=		kmod uidfix
+USE_GITHUB=	yes
+GH_ACCOUNT=	freebsd-pefs
+GH_TAGNAME=	4e03778
 
 MAKE_JOBS_UNSAFE=yes
 MAKE_ENV=	BINDIR="${PREFIX}/sbin" MANDIR="${MANPREFIX}/man/man"
 
-OPTIONS_DEFINE=	AESNI
-OPTIONS_DEFAULT=
-AESNI_DESC=	Enable AES-NI hardware acceleration
-
 PLIST_FILES=	sbin/pefs \
 		lib/pam_pefs.so \
+		lib/pam_pefs.so.6 \
 		man/man8/pam_pefs.8.gz \
 		man/man8/pefs.8.gz \
 		${KMODDIR}/pefs.ko
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MAESNI}
-MAKE_ENV+=	PEFS_AESNI=yes
-.endif
-
-.if ${OPSYS} == FreeBSD
-PLIST_FILES+=	lib/pam_pefs.so.6
-.endif
-
 .include <bsd.port.mk>
diff --git a/sysutils/pefs-kmod/distinfo b/sysutils/pefs-kmod/distinfo
index c0d9acb829e5..aec73ee4d55e 100644
--- a/sysutils/pefs-kmod/distinfo
+++ b/sysutils/pefs-kmod/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1543813366
-SHA256 (pefs-2018-11-26.tar.gz) = b1d185982fdc7533ef99deeeb740157f0ea215a238a967ac5bfe56279e810bdb
-SIZE (pefs-2018-11-26.tar.gz) = 90259
+TIMESTAMP = 1626164725
+SHA256 (freebsd-pefs-pefs-g20210628-4e03778_GH0.tar.gz) = 37ef7274f8d48000c16ef892c33fad1df929e37507e7c6c48bbfd9e2e8616690
+SIZE (freebsd-pefs-pefs-g20210628-4e03778_GH0.tar.gz) = 91903
diff --git a/sysutils/pefs-kmod/files/patch-libpam-Makefile b/sysutils/pefs-kmod/files/patch-libpam-Makefile
deleted file mode 100644
index a9d74771f4cb..000000000000
--- a/sysutils/pefs-kmod/files/patch-libpam-Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
---- lib/libpam/modules/Makefile.inc.orig	2011-12-25 08:01:28.000000000 +0200
-+++ lib/libpam/modules/Makefile.inc	2011-12-25 08:02:17.000000000 +0200
-@@ -1,4 +1,6 @@
- # Include Makefiles from $SRCDIR
- 
--.include </usr/src/lib/libpam/modules/Makefile.inc>
-+LIBDIR=${PREFIX}/lib
-+
-+.include <${SYSDIR}/../lib/libpam/modules/Makefile.inc>
- 
diff --git a/sysutils/pefs-kmod/files/patch-module-Makefile b/sysutils/pefs-kmod/files/patch-module-Makefile
deleted file mode 100644
index 4d0baf14d421..000000000000
--- a/sysutils/pefs-kmod/files/patch-module-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- sys/modules/pefs/Makefile.orig
-+++ sys/modules/pefs/Makefile
-@@ -8,7 +8,7 @@
- 	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
diff --git a/sysutils/pefs-kmod/files/patch-pam_pefs-Makefile b/sysutils/pefs-kmod/files/patch-pam_pefs-Makefile
deleted file mode 100644
index 4683b0ff5962..000000000000
--- a/sysutils/pefs-kmod/files/patch-pam_pefs-Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
---- lib/libpam/modules/pam_pefs/Makefile.orig	2013-10-13 11:08:05.000000000 -0700
-+++ lib/libpam/modules/pam_pefs/Makefile	2013-10-13 11:08:33.000000000 -0700
-@@ -26,3 +26,6 @@
- .PATH: ${SYS}/fs/pefs
- .PATH: ${SYS}/crypto/rijndael
- .PATH: ${SYS}/crypto/sha2
-+
-+# Fix build without OBJDIR for shared components
-+.NOPATH: ${OBJS}
diff --git a/sysutils/pefs-kmod/files/patch-pefs_aesni.h b/sysutils/pefs-kmod/files/patch-pefs_aesni.h
deleted file mode 100644
index b4cf4f42ab3a..000000000000
--- a/sysutils/pefs-kmod/files/patch-pefs_aesni.h
+++ /dev/null
@@ -1,17 +0,0 @@
---- 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 @@
- 	u_int			fpu_cpuid;
- 	int			fpu_saved;
- };
-+
-+#endif
diff --git a/sysutils/pefs-kmod/pkg-descr b/sysutils/pefs-kmod/pkg-descr
index bb0e653d98a6..746361c43ddb 100644
--- a/sysutils/pefs-kmod/pkg-descr
+++ b/sysutils/pefs-kmod/pkg-descr
@@ -9,5 +9,5 @@ Key features:
 * Modern cryptographic algorithms: AES and Camellia in XTS mode,
   PKCS#5v2 and HKDF for key generation.
 
-WWW: https://github.com/glk/pefs
+WWW: https://github.com/freebsd-pefs/pefs
 WWW: http://wiki.freebsd.org/PEFS



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