From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cM96LIZa+mOUfwAAbAwnHQ (envelope-from ) for ; Sat, 25 Feb 2023 19:59:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EJeGLIZa+mMxnwAA9RJhRA (envelope-from ) for ; Sat, 25 Feb 2023 19:59:18 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 62F091EEB for ; Sat, 25 Feb 2023 19:59:18 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677351558; a=rsa-sha256; cv=none; b=N02b/Wa0CJ8D9NHqZaSsUY2F1t6F4uUjP6PQkeXZwkheCh7ptQ4SjesEyIN1luJlAhgViZ 1J9glO3lTTUM8+tyIBh5nM0U6Iee/rh/gTdgu27fB9jkSM3YLEPqChR53i7jBvFIkcq/rY bmgloxEvwUoj0/EZ7D9UHrZhJQ9EHjuswd8vBA52CEZhlHqgctFoFQRosGfG6D+d3IaERF v5/jZftnlxm340HK2xABnqDfZJJIGCJZA6xx0GKdSMnkZKkeLtdoaWYx4htn48UZKr1c8k cZlL3nDEONtYCJA28JnWelRaBvGighF3F92B3DBDR99Rz6HjbduBhO3uYVGqzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677351558; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=oiJhWj8UuhS/ukG3piKtvF0HkaYZcJT5prZ48xfjPHs=; b=fYBsr++KLyLDM/7KxGtosd4sjwddym1y4zAeGjYvMpNmEc+2T2x5JuMoGyjvb00swgJkkg S8dghDgeaFpG2q11yPI2YN5JRmyZzTQ3pXyjmv09zHEkWibfEs/uTYHneqNQZ7L2rfzvX3 s3XR4b9b9URlAsXyqGYvtIF5WX2WJTcDR/y76ljzSJ7B4eKSXipGcxnqU/uoFR9XSJiyQ+ Hf+HGEbbTpED+QRK0JlGRIfzg3VKRACthkHn6oG1uctG/Jus4Fxo8TS7NmKOBWkMsAKiFX Hcu6KngpRb3P4+L7SpiSaDPoQfivB1B2dCAJCjuo3XS7fBtLctFF2L+MqvTIqA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVzlG-0001tU-9L; Sat, 25 Feb 2023 13:59:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVzlE-0001rw-Kl for guix-patches@gnu.org; Sat, 25 Feb 2023 13:59:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVzlE-0000cv-CE for guix-patches@gnu.org; Sat, 25 Feb 2023 13:59:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVzlE-0007xq-6e for guix-patches@gnu.org; Sat, 25 Feb 2023 13:59:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61789] [PATCH 23/27] services: vpn: Deprecate 'openvpn-client-service' & 'openvpn-server-service' procedures. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Feb 2023 18:59:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61789@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61789-submit@debbugs.gnu.org id=B61789.167735154630590 (code B ref 61789); Sat, 25 Feb 2023 18:59:08 +0000 Received: (at 61789) by debbugs.gnu.org; 25 Feb 2023 18:59:06 +0000 Received: from localhost ([127.0.0.1]:41477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVzlC-0007x7-65 for submit@debbugs.gnu.org; Sat, 25 Feb 2023 13:59:06 -0500 Received: from smtpm7.myservices.hosting ([185.26.105.208]:59332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVzkg-0007tb-29 for 61789@debbugs.gnu.org; Sat, 25 Feb 2023 13:58:34 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm7.myservices.hosting (Postfix) with ESMTP id 4A1EF20D32 for <61789@debbugs.gnu.org>; Sat, 25 Feb 2023 19:58:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id ECBAF80079; Sat, 25 Feb 2023 19:58:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ho_3TATtXXGW; Sat, 25 Feb 2023 19:58:25 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id C1F4E800A5; Sat, 25 Feb 2023 19:58:24 +0100 (CET) From: Bruno Victal Date: Sat, 25 Feb 2023 18:58:09 +0000 Message-Id: <7ae425083b38612fb7bf17ab532b5774dbc70fc0.1677350250.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 62F091EEB X-Spam-Score: -3.18 X-Migadu-Spam-Score: -3.18 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: tYRAriV0B9pW * doc/guix.texi (VPN Services): Replace 'openvpn-client-service' & 'openvpn-server-service' procedures with their service-type counterparts. * gnu/services/vpn.scm (openvpn-client-service, openvpn-server-service): Deprecate procedure. (openvpn-server-service-type, openvpn-client-service-type): Set default value. --- doc/guix.texi | 22 ++++++++++++---------- gnu/services/vpn.scm | 19 +++++++++++++------ 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 282c6ce276..880972d112 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -31851,20 +31851,22 @@ VPN Services It provides a @emph{client} service for your machine to connect to a VPN, and a @emph{server} service for your machine to host a VPN@. +Both @code{openvpn-client-service-type} and +@code{openvpn-server-service-type} can be run simultaneously. -@deffn {Scheme Procedure} openvpn-client-service @ - [#:config (openvpn-client-configuration)] +@defvar openvpn-client-service-type +Type of the service that runs @command{openvpn}, a VPN daemon, as a client. -Return a service that runs @command{openvpn}, a VPN daemon, as a client. -@end deffn - -@deffn {Scheme Procedure} openvpn-server-service @ - [#:config (openvpn-server-configuration)] +The value for this service is a @code{} +object. +@end defvar -Return a service that runs @command{openvpn}, a VPN daemon, as a server. +@defvar openvpn-server-service-type +Type of the service that runs @command{openvpn}, a VPN daemon, as a server. -Both can be run simultaneously. -@end deffn +The value for this service is a @code{} +object. +@end defvar @c %automatically generated documentation diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm index 4103f89ecf..a884d71eb2 100644 --- a/gnu/services/vpn.scm +++ b/gnu/services/vpn.scm @@ -39,11 +39,12 @@ (define-module (gnu services vpn) #:use-module (guix records) #:use-module (guix gexp) #:use-module (guix i18n) + #:use-module (guix deprecation) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (ice-9 regex) - #:export (openvpn-client-service - openvpn-server-service + #:export (openvpn-client-service ; deprecated + openvpn-server-service ; deprecated openvpn-client-service-type openvpn-server-service-type openvpn-client-configuration @@ -531,7 +532,8 @@ (define openvpn-server-service-type (service-extension activation-service-type (const %openvpn-activation)))) (description "Run the OpenVPN server, which allows you to -@emph{host} a @acronym{VPN, virtual private network}."))) +@emph{host} a @acronym{VPN, virtual private network}.") + (default-value (openvpn-server-configuration)))) (define openvpn-client-service-type (service-type (name 'openvpn-client) @@ -544,12 +546,17 @@ (define openvpn-client-service-type (const %openvpn-activation)))) (description "Run the OpenVPN client service, which allows you to connect -to an existing @acronym{VPN, virtual private network}."))) +to an existing @acronym{VPN, virtual private network}.") + (default-value (openvpn-client-configuration)))) -(define* (openvpn-client-service #:key (config (openvpn-client-configuration))) +(define-deprecated + (openvpn-client-service #:key (config (openvpn-client-configuration))) + openvpn-client-service-type (service openvpn-client-service-type config)) -(define* (openvpn-server-service #:key (config (openvpn-server-configuration))) +(define-deprecated + (openvpn-server-service #:key (config (openvpn-server-configuration))) + openvpn-server-service-type (service openvpn-server-service-type config)) (define (generate-openvpn-server-documentation) -- 2.39.1