From owner-svn-ports-head@FreeBSD.ORG Mon Jun 8 12:20:06 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6752BBA; Mon, 8 Jun 2015 12:20:05 +0000 (UTC) (envelope-from kmoore@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D3E721D0D; Mon, 8 Jun 2015 12:20:05 +0000 (UTC) (envelope-from kmoore@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t58CK5rX080174; Mon, 8 Jun 2015 12:20:05 GMT (envelope-from kmoore@FreeBSD.org) Received: (from kmoore@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t58CK42o080163; Mon, 8 Jun 2015 12:20:04 GMT (envelope-from kmoore@FreeBSD.org) Message-Id: <201506081220.t58CK42o080163@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: kmoore set sender to kmoore@FreeBSD.org using -f From: Kris Moore Date: Mon, 8 Jun 2015 12:20:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r388838 - in head/sysutils: grub2-efi grub2-efi/files grub2-pcbsd grub2-pcbsd/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2015 12:20:06 -0000 Author: kmoore Date: Mon Jun 8 12:20:04 2015 New Revision: 388838 URL: https://svnweb.freebsd.org/changeset/ports/388838 Log: - Add back patches to handle GELI key passthrough - Bump PORTREV Added: head/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c (contents, props changed) head/sysutils/grub2-efi/files/patch-grub-core_lib_libgcrypt_src_types.h (contents, props changed) head/sysutils/grub2-pcbsd/files/patch-grub-core_disk_geli.c (contents, props changed) Modified: head/sysutils/grub2-efi/Makefile head/sysutils/grub2-pcbsd/Makefile Modified: head/sysutils/grub2-efi/Makefile ============================================================================== --- head/sysutils/grub2-efi/Makefile Mon Jun 8 12:15:45 2015 (r388837) +++ head/sysutils/grub2-efi/Makefile Mon Jun 8 12:20:04 2015 (r388838) @@ -3,7 +3,7 @@ PORTNAME= grub2-efi PORTVERSION= 2.02 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= sysutils MASTER_SITES= http://www.pcbsd.org/~kris/software/ \ ftp://ftp.pcbsd.org/pub/software/ Added: head/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c Mon Jun 8 12:20:04 2015 (r388838) @@ -0,0 +1,12 @@ +--- grub-core/disk/geli.c.orig 2015-01-30 16:34:55 UTC ++++ grub-core/disk/geli.c +@@ -445,6 +445,9 @@ recover_key (grub_disk_t source, grub_cr + if (!grub_password_get (passphrase, MAX_PASSPHRASE)) + return grub_error (GRUB_ERR_BAD_ARGUMENT, "Passphrase not supplied"); + ++ /* Set the GELI passphrase to GRUB env, for passing to FreeBSD kernel */ ++ grub_env_set ("gelipassphrase", passphrase); ++ + /* Calculate the PBKDF2 of the user supplied passphrase. */ + if (grub_le_to_cpu32 (header.niter) != 0) + { Added: head/sysutils/grub2-efi/files/patch-grub-core_lib_libgcrypt_src_types.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/grub2-efi/files/patch-grub-core_lib_libgcrypt_src_types.h Mon Jun 8 12:20:04 2015 (r388838) @@ -0,0 +1,11 @@ +--- grub-core/lib/libgcrypt/src/types.h.orig 2014-03-03 16:00:26 UTC ++++ grub-core/lib/libgcrypt/src/types.h +@@ -113,6 +113,8 @@ + #endif + #endif + ++typedef uint64_t u64; ++ + typedef union { + int a; + short b; Modified: head/sysutils/grub2-pcbsd/Makefile ============================================================================== --- head/sysutils/grub2-pcbsd/Makefile Mon Jun 8 12:15:45 2015 (r388837) +++ head/sysutils/grub2-pcbsd/Makefile Mon Jun 8 12:20:04 2015 (r388838) @@ -3,6 +3,7 @@ PORTNAME= grub2-pcbsd PORTVERSION= 2.02q +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.pcbsd.org/~kris/software/ \ ftp://ftp.pcbsd.org/pub/software/ Added: head/sysutils/grub2-pcbsd/files/patch-grub-core_disk_geli.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/grub2-pcbsd/files/patch-grub-core_disk_geli.c Mon Jun 8 12:20:04 2015 (r388838) @@ -0,0 +1,12 @@ +--- grub-core/disk/geli.c.orig 2015-01-30 16:34:55 UTC ++++ grub-core/disk/geli.c +@@ -445,6 +445,9 @@ recover_key (grub_disk_t source, grub_cr + if (!grub_password_get (passphrase, MAX_PASSPHRASE)) + return grub_error (GRUB_ERR_BAD_ARGUMENT, "Passphrase not supplied"); + ++ /* Set the GELI passphrase to GRUB env, for passing to FreeBSD kernel */ ++ grub_env_set ("gelipassphrase", passphrase); ++ + /* Calculate the PBKDF2 of the user supplied passphrase. */ + if (grub_le_to_cpu32 (header.niter) != 0) + {