all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 1/1] services: openssh: Parameterize the OpenSSH package used by the service.
@ 2017-03-05 18:29 Leo Famulari
  2017-03-05 18:51 ` Leo Famulari
  2017-03-06 10:21 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Leo Famulari @ 2017-03-05 18:29 UTC (permalink / raw)
  To: guix-devel

* gnu/services/ssh.scm (<openssh-configuration>)[openssh]: New field.
(openssh-activation), (openssh-shepherd-service): Use it.
---
 gnu/services/ssh.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm
index 7b2d4a8f0..c1d42e70c 100644
--- a/gnu/services/ssh.scm
+++ b/gnu/services/ssh.scm
@@ -260,6 +260,8 @@ The other options should be self-descriptive."
 (define-record-type* <openssh-configuration>
   openssh-configuration make-openssh-configuration
   openssh-configuration?
+  (openssh               openssh-configuration-openssh ;package
+                         (default openssh))
   (pid-file              openssh-configuration-pid-file
                          (default "/var/run/sshd.pid"))
   (port-number           openssh-configuration-port-number ;integer
@@ -297,7 +299,8 @@ The other options should be self-descriptive."
       (mkdir-p (dirname #$(openssh-configuration-pid-file config)))
 
       ;; Generate missing host keys.
-      (system* (string-append #$openssh "/bin/ssh-keygen") "-A")))
+      (system* (string-append #$(openssh-configuration-openssh config)
+                              "/bin/ssh-keygen") "-A")))
 
 (define (openssh-config-file config)
   "Return the sshd configuration file corresponding to CONFIG."
@@ -342,7 +345,7 @@ The other options should be self-descriptive."
     (openssh-configuration-pid-file config))
 
   (define openssh-command
-    #~(list (string-append #$openssh "/sbin/sshd")
+    #~(list (string-append #$(openssh-configuration-openssh config) "/sbin/sshd")
             "-D" "-f" #$(openssh-config-file config)))
 
   (list (shepherd-service
-- 
2.12.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] services: openssh: Parameterize the OpenSSH package used by the service.
  2017-03-05 18:29 [PATCH 1/1] services: openssh: Parameterize the OpenSSH package used by the service Leo Famulari
@ 2017-03-05 18:51 ` Leo Famulari
  2017-03-06 10:21 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2017-03-05 18:51 UTC (permalink / raw)
  To: guix-devel

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

On Sun, Mar 05, 2017 at 01:29:23PM -0500, Leo Famulari wrote:
> * gnu/services/ssh.scm (<openssh-configuration>)[openssh]: New field.
> (openssh-activation), (openssh-shepherd-service): Use it.

With this patch, I'm using a custom OpenSSH package in the
openssh-service on my GuixSD system.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] services: openssh: Parameterize the OpenSSH package used by the service.
  2017-03-05 18:29 [PATCH 1/1] services: openssh: Parameterize the OpenSSH package used by the service Leo Famulari
  2017-03-05 18:51 ` Leo Famulari
@ 2017-03-06 10:21 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2017-03-06 10:21 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/services/ssh.scm (<openssh-configuration>)[openssh]: New field.
> (openssh-activation), (openssh-shepherd-service): Use it.
                     ^  ^
(Nitpick: no need to close/open parens here.)

It’s a good idea, please push!

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-06 10:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-05 18:29 [PATCH 1/1] services: openssh: Parameterize the OpenSSH package used by the service Leo Famulari
2017-03-05 18:51 ` Leo Famulari
2017-03-06 10:21 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.