guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: shishi: Make shishi keys and database administrator-modifiab


From: guix-commits
Subject: 01/01: gnu: shishi: Make shishi keys and database administrator-modifiable.
Date: Sat, 20 Apr 2019 11:18:20 -0400 (EDT)

dannym pushed a commit to branch core-updates
in repository guix.

commit 2ca3fdc2db1aef96fbf702a2f26f5e18ce832038
Author: Danny Milosavljevic <address@hidden>
Date:   Mon Mar 4 12:45:59 2019 +0100

    gnu: shishi: Make shishi keys and database administrator-modifiable.
    
    Fixes <https://bugs.gnu.org/30109>.
    
    * gnu/packages/kerberos.scm (shishi)[arguments]<#:configure-flags>:
    Add --with-key-dir, --with-db-dir.
    <#:phases>[disable-automatic-key-generation]: New phase.
---
 gnu/packages/kerberos.scm | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/kerberos.scm b/gnu/packages/kerberos.scm
index 7cf61c8..1253a58 100644
--- a/gnu/packages/kerberos.scm
+++ b/gnu/packages/kerberos.scm
@@ -116,9 +116,19 @@ cryptography.")
     (build-system gnu-build-system)
     (arguments
      '(;; This is required since we patch some of the build scripts.
-       ;; Remove for the next Shishi release after 1.0.2 or when
-       ;; removing 'shishi-fix-libgcrypt-detection.patch'.
-       #:configure-flags '("ac_cv_libgcrypt=yes" "--disable-static")))
+       ;; Remove first two items for the next Shishi release after 1.0.2 or
+       ;; when removing 'shishi-fix-libgcrypt-detection.patch'.
+       #:configure-flags
+       '("ac_cv_libgcrypt=yes" "--disable-static"
+         "--with-key-dir=/etc/shishi" "--with-db-dir=/var/shishi")
+       #:phases
+       (modify-phases %standard-phases
+        (add-after 'configure 'disable-automatic-key-generation
+          (lambda* (#:key outputs #:allow-other-keys)
+            (substitute* "Makefile"
+             (("^install-data-hook:")
+              "install-data-hook:\nx:\n"))
+            #t)))))
     (native-inputs `(("pkg-config" ,pkg-config)))
     (inputs
      `(("gnutls" ,gnutls)
@@ -132,7 +142,10 @@ cryptography.")
     (description
      "GNU Shishi is a free implementation of the Kerberos 5 network security
 system.  It is used to allow non-secure network nodes to communicate in a
-secure manner through client-server mutual authentication via tickets.")
+secure manner through client-server mutual authentication via tickets.
+
+After installation, the system administrator should generate keys using
address@hidden -a /etc/shishi/shishi.keys}.")
     (license license:gpl3+)))
 
 (define-public heimdal



reply via email to

[Prev in Thread] Current Thread [Next in Thread]