From 93ec01de880bfa88d043662c6ff788d23aec8a8d Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 13 Feb 2017 12:52:13 +0000 Subject: [PATCH] forgotten: scrape SIGNING_PARAMETERS --- infrastructure/bin/proot | 18 ++---------------- infrastructure/man/man1/proot.1 | 17 ++--------------- 2 files changed, 4 insertions(+), 31 deletions(-) diff --git a/infrastructure/bin/proot b/infrastructure/bin/proot index a6232b6d0a4..92c79854c4d 100755 --- a/infrastructure/bin/proot +++ b/infrastructure/bin/proot @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: proot,v 1.54 2016/06/26 22:10:03 espie Exp $ +# $OpenBSD: proot,v 1.55 2017/02/13 12:52:13 espie Exp $ # # Copyright (c) 2016 Marc Espie # @@ -196,10 +196,6 @@ sub do_parm } else { $state->{sets}{$v} = 1; } - }, key => sub { - $state->{key} = $v; - $state->{SIGNING_PARAMETERS} = - "-s signify -s /etc/signify/$v-pkg.sec"; }, extra => sub { $state->{known}{$v} = 1; }, mkconf_tail => sub { @@ -328,7 +324,7 @@ sub handle_options if ($< != 0) { $state->fatal("Must be root"); } - for my $i (qw(PORTSDIR DISTDIR WRKOBJDIR PACKAGE_REPOSITORY PLIST_REPOSITORY LOCKDIR LOGDIR SIGNING_PARAMETERS)) { + for my $i (qw(PORTSDIR DISTDIR WRKOBJDIR PACKAGE_REPOSITORY PLIST_REPOSITORY LOCKDIR LOGDIR)) { if (defined $state->{$i}) { $state->{write}{$i} = 1; } @@ -495,13 +491,6 @@ sub special_data $state->{known}{'/etc/hosts'} = 1; } -sub key_data -{ - my $state = shift; - $state->{known}{"/etc/signify/$state->{key}-pkg.pub"} = 1; - $state->{known}{"/etc/signify/$state->{key}-pkg.sec"} = 1; -} - sub read_locates { my $state = shift; @@ -1079,9 +1068,6 @@ if ($state->{actions}{snapshot}) { if ($state->{actions}{resolv}) { $state->special_data; } -if ($state->{key}) { - $state->key_data; -} if (defined $state->{known}) { $state->copy_sync; } diff --git a/infrastructure/man/man1/proot.1 b/infrastructure/man/man1/proot.1 index 5eab6d3a0ad..23f22d97b1f 100644 --- a/infrastructure/man/man1/proot.1 +++ b/infrastructure/man/man1/proot.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: proot.1,v 1.15 2016/08/09 13:45:01 schwarze Exp $ +.\" $OpenBSD: proot.1,v 1.16 2017/02/13 12:52:13 espie Exp $ .\" .\" Copyright (c) 2016 Marc Espie .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 9 2016 $ +.Dd $Mdocdate: February 13 2017 $ .Dt PROOT 1 .Os .Sh NAME @@ -185,19 +185,6 @@ change owners of every content. .It Cm extra extra file to copy into the .Ar chroot . -.It Cm key -Name of a -.Xr signify 1 -signing key. -Just give the stem, as in -.Cm key Ns = Ns Ar stem . -This will copy -.Pa /etc/signify/stem-pkg.{pub,sec} -and set -.Va SIGNING_PARAMETERS -in the generated -.Pa /etc/mk.conf -file accordingly. .It Cm mkconf_lines Add lines to the generated .Pa /etc/mk.conf .