public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. d6d058a56b0ccb6cb96e06aedf66d19648ad58ec
Date: Tue, 03 Apr 2018 19:14:14 +0100	[thread overview]
Message-ID: <20180403181415.391321081DF2@git01.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3715 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, master has been updated
       via  d6d058a56b0ccb6cb96e06aedf66d19648ad58ec (commit)
       via  6ae5439e5c58d87f20130dfc4b90928ee5f72e89 (commit)
       via  9a507db2cba20474fa8a93bc25cfbcf02ca941c6 (commit)
      from  4d888e6854ebe9617cf305ab38ed33b9c23d8056 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d6d058a56b0ccb6cb96e06aedf66d19648ad58ec
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Apr 3 17:34:24 2018 +0100

    core120: Update pakfire keystore
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 6ae5439e5c58d87f20130dfc4b90928ee5f72e89
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Apr 3 17:33:04 2018 +0100

    core120: Ship changed pakfire files
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 9a507db2cba20474fa8a93bc25cfbcf02ca941c6
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Apr 3 17:31:50 2018 +0100

    pakfire: Store key material in own directory
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/core/120/filelists/files | 1 +
 config/rootfiles/core/120/update.sh       | 6 ++++++
 src/initscripts/system/pakfire            | 2 ++
 src/pakfire/pakfire                       | 3 +++
 4 files changed, 12 insertions(+)

Difference in files:
diff --git a/config/rootfiles/core/120/filelists/files b/config/rootfiles/core/120/filelists/files
index d98e3a918..c029cd430 100644
--- a/config/rootfiles/core/120/filelists/files
+++ b/config/rootfiles/core/120/filelists/files
@@ -7,6 +7,7 @@ etc/rc.d/init.d/pakfire
 etc/rc.d/init.d/unbound
 etc/rc.d/rcsysinit.d/S81pakfire
 opt/pakfire/lib/functions.pl
+opt/pakfire/pakfire
 opt/pakfire/pakfire-2007.key
 opt/pakfire/pakfire-2018.key
 srv/web/ipfire/cgi-bin/ovpnmain.cgi
diff --git a/config/rootfiles/core/120/update.sh b/config/rootfiles/core/120/update.sh
index 459262c86..0744f3a7f 100644
--- a/config/rootfiles/core/120/update.sh
+++ b/config/rootfiles/core/120/update.sh
@@ -74,6 +74,12 @@ fi
 # Remove deprecated SSH configuration option
 sed -e "/UsePrivilegeSeparation/d" -i /etc/ssh/sshd_config
 
+# Remove any pakfire keys stored in /
+rm -rfv /.gnupg
+
+# Move old pakfire keystore into new place
+mv -v /root/.gnupg /opt/pakfire/etc/.gnupg
+
 # Import new Pakfire key
 /etc/init.d/pakfire start
 
diff --git a/src/initscripts/system/pakfire b/src/initscripts/system/pakfire
index 43befc796..d59daabce 100644
--- a/src/initscripts/system/pakfire
+++ b/src/initscripts/system/pakfire
@@ -9,6 +9,8 @@
 . /etc/sysconfig/rc
 . ${rc_functions}
 
+export GNUPGHOME="/opt/pakfire/etc/.gnupg"
+
 case "${1}" in
 	start)
 		boot_mesg "Setting up Pakfire Package Manager..."
diff --git a/src/pakfire/pakfire b/src/pakfire/pakfire
index 202c1e5a1..dfba91556 100644
--- a/src/pakfire/pakfire
+++ b/src/pakfire/pakfire
@@ -24,6 +24,9 @@
 	delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)};
 	$< = $>;
 
+	# Store keys here
+	$ENV{"GNUPGHOME"} = "/opt/pakfire/etc/.gnupg";
+
 	require "/opt/pakfire/lib/functions.pl";
 	
 	my $interactive = 1;


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2018-04-03 18:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180403181415.391321081DF2@git01.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox