guix-commits
[Top][All Lists]
Advanced

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

11/23: services: ssh: Deprecate 'dropbear-service' procedure.


From: guix-commits
Subject: 11/23: services: ssh: Deprecate 'dropbear-service' procedure.
Date: Fri, 3 Mar 2023 12:07:25 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 3b2e88011a485293bd11b25466ffbaa8791ec64a
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Sat Feb 25 18:57:59 2023 +0000

    services: ssh: Deprecate 'dropbear-service' procedure.
    
    * doc/guix.texi (Networking Services): Replace 'dropbear-service' with
    'dropbear-service-type'.
    * gnu/services/ssh.scm (dropbear-service): Deprecate procedure.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 doc/guix.texi        | 17 ++++++++---------
 gnu/services/ssh.scm |  6 ++++--
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 9c30e97466..61359183f1 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -20983,19 +20983,18 @@ Match Address 192.168.0.1
 @end table
 @end deftp
 
-@deffn {Scheme Procedure} dropbear-service [@var{config}]
-Run the @uref{https://matt.ucc.asn.au/dropbear/dropbear.html,Dropbear SSH
-daemon} with the given @var{config}, a @code{<dropbear-configuration>}
-object.
+@defvar dropbear-service-type
+Type of the service that runs the
+@url{https://matt.ucc.asn.au/dropbear/dropbear.html, Dropbear SSH daemon},
+whose value is a @code{<dropbear-configuration>} object.
 
-For example, to specify a Dropbear service listening on port 1234, add
-this call to the operating system's @code{services} field:
+For example, to specify a Dropbear service listening on port 1234:
 
 @lisp
-(dropbear-service (dropbear-configuration
-                    (port-number 1234)))
+(service dropbear-service-type (dropbear-configuration
+                                 (port-number 1234)))
 @end lisp
-@end deffn
+@end defvar
 
 @deftp {Data Type} dropbear-configuration
 This data type represents the configuration of a Dropbear SSH daemon.
diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm
index 3baa55731d..b76544c1a8 100644
--- a/gnu/services/ssh.scm
+++ b/gnu/services/ssh.scm
@@ -52,7 +52,7 @@
             dropbear-configuration
             dropbear-configuration?
             dropbear-service-type
-            dropbear-service
+            dropbear-service  ; deprecated
 
             autossh-configuration
             autossh-configuration?
@@ -717,7 +717,9 @@ of user-name/file-like tuples."
                                           dropbear-activation)))
                 (default-value (dropbear-configuration))))
 
-(define* (dropbear-service #:optional (config (dropbear-configuration)))
+(define-deprecated (dropbear-service #:optional
+                                     (config (dropbear-configuration)))
+  dropbear-service-type
   "Run the @uref{https://matt.ucc.asn.au/dropbear/dropbear.html,Dropbear SSH
 daemon} with the given @var{config}, a @code{<dropbear-configuration>}
 object."



reply via email to

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