From owner-dev-commits-ports-all@freebsd.org Mon Jul 19 14:57:23 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 22560658B19; Mon, 19 Jul 2021 14:57:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GT4h30VYFz3QCd; Mon, 19 Jul 2021 14:57:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EEE3A1926E; Mon, 19 Jul 2021 14:57:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 16JEvMs6024953; Mon, 19 Jul 2021 14:57:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16JEvM8N024952; Mon, 19 Jul 2021 14:57:22 GMT (envelope-from git) Date: Mon, 19 Jul 2021 14:57:22 GMT Message-Id: <202107191457.16JEvM8N024952@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Li-Wen Hsu Subject: git: 8fce920a0e29 - 2021Q3 - sysutils/pefs-kmod: Fix build for 13+ and take maintainership MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q3 X-Git-Reftype: branch X-Git-Commit: 8fce920a0e2965e363cb978fa6ba627572d69fcc Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 14:57:23 -0000 The branch 2021Q3 has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=8fce920a0e2965e363cb978fa6ba627572d69fcc commit 8fce920a0e2965e363cb978fa6ba627572d69fcc Author: Daniel O'Connor AuthorDate: 2021-07-19 14:46:25 +0000 Commit: Li-Wen Hsu 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 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 - -.if ${PORT_OPTIONS:MAESNI} -MAKE_ENV+= PEFS_AESNI=yes -.endif - -.if ${OPSYS} == FreeBSD -PLIST_FILES+= lib/pam_pefs.so.6 -.endif - .include 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 -+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 - - 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