daemon: Implement signed archive import/export.
authorLudovic Courtès <ludo@gnu.org>
Fri, 20 Dec 2013 16:17:42 +0000 (17:17 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 20 Dec 2013 16:17:42 +0000 (17:17 +0100)
commit526382ff92b20f6c651f03711c160c0c88264b88
tree6fc13ecae4c6bccf635511acd7d38e26b29644ef
parentce507041f79bd66f54ce406d20b9e33a328a3f3d
daemon: Implement signed archive import/export.

* guix/scripts/authenticate.scm, nix/scripts/guix-authenticate.in,
  tests/signing-key.pub, tests/signing-key.sec: New files.
* po/POTFILES.in: Add 'guix/scripts/authenticate.scm'.
* guix/store.scm (dump-port): New procedure.
  (process-stderr): Add 'user-port' optional parameter.  Handle
  the %STDERR-WRITE and %STDERR-READ cases as expected.
  (import-paths, export-path, export-paths): New procedures.
* tests/store.scm ("export/import several paths", "import corrupt
  path"): New tests.
* Makefile.am (MODULES): Add 'guix/scripts/authenticate.scm'.
  (EXTRA_DIST): Add 'tests/signing-key.{pub,sec}'.
* daemon.am (libstore_a_CPPFLAGS)[-DNIX_CONF_DIR]: Change 'NIX_CONF_DIR'
  to .../guix.  Change 'OPENSSL_PATH' to 'guix-authenticate'.
* config-daemon.ac: Instantiate 'nix/scripts/guix-authenticate'.
* nix/nix-daemon/guix-daemon.cc (main): Augment $PATH to include
  'settings.nixLibexecDir'.
* test-env.in: Export 'NIX_CONF_DIR' and 'NIX_LIBEXEC_DIR'.  Populate
  $NIX_CONF_DIR.
13 files changed:
.gitignore
Makefile.am
config-daemon.ac
daemon.am
guix/scripts/authenticate.scm [new file with mode: 0644]
guix/store.scm
nix/nix-daemon/guix-daemon.cc
nix/scripts/guix-authenticate.in [new file with mode: 0644]
po/POTFILES.in
test-env.in
tests/signing-key.pub [new file with mode: 0644]
tests/signing-key.sec [new file with mode: 0644]
tests/store.scm