From owner-freebsd-ports@freebsd.org Thu Jul 2 18:13:30 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE9BE35CE49 for ; Thu, 2 Jul 2020 18:13:30 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49yR6f0f1nz48bn for ; Thu, 2 Jul 2020 18:13:29 +0000 (UTC) (envelope-from timp87@gmail.com) Received: by mail-ej1-x629.google.com with SMTP id l12so30809092ejn.10 for ; Thu, 02 Jul 2020 11:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7KyxB3uodJJCf7J7aLjBnFFir7pQBgE1OCvyBMw/0hs=; b=b7ER3sU5vFoAru8srmsm9g6x+DRaI/zo1fQOVIQczN+uYHSWPsuOyLuPewzkWHkiYh oD6V0m7iW8Js74mmeyb3u9esKZ0yrqz1+T+5RA/1gqpAJXwYsP/mQSDO9T3A7wyZN8ow bLoeF5aTIwcUSTEsmPGS1Do2DBgktuaQgUZ6WdPD45UhXrCJ+9WVFKAB+cYwy4Z6/yRZ ncTKPKTzfDARKBHzQ5VMagZ+Wp+pPrcaRGuXTGa3d3Wq7CWZg6CfITKXAo9iSUUGDJLQ xlC/gIYzxc05rGS146CiWkuWVu+NejQDY1TRoRjzPFKnCiFACqSyn2YlYDcCvUJJrqUE zG3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7KyxB3uodJJCf7J7aLjBnFFir7pQBgE1OCvyBMw/0hs=; b=Qaj7PLe9TxRrDcHndZKPyumOrsruLO/U9yXUOIzquxGkzw6yakeuMEgVf+u4PNCXt9 EM4QKFspB4xq4O8ds6dKcunGvYDG5gRdBfLZtFlhvTou4JvDoU6d6pgnb8EauEvGLI3y f9RnhvQGkX/8nlG1NBV8C654ytRbHYPhXdkMxDQs9VMn49QNCqEGq2r3r45HgC5EsuId hq/6Q259Ar04/Zp4ly5m8XmOVMLfiaTQcfh34nHQjs+Wf72teqjLNj72SdTMhEWPZy7o uaOlHCUyspt4/XgmboOqe8t4RaWH2kcUV3AGCnytL41s2mJn42iUan5Ksk3Fey5OYbVM hRmQ== X-Gm-Message-State: AOAM532fapqg92WBt/yU7oVHdFi/+uIDarQuvHS4Di1F3ZNlAoBzf2a9 sdlzBd1hm0XobDN0c7D2iuxNRX6TnvGgNHkj2t2RDRN/ X-Google-Smtp-Source: ABdhPJyqH8gQGITLfkuE1xO9cAupoO1UgLCTbA0UKI3vVL4aEdjt7BVAg3qECEe+3pxiU2Nz1rf02SsuFzYgrfP7S5E= X-Received: by 2002:a17:906:410c:: with SMTP id j12mr3760499ejk.284.1593713608162; Thu, 02 Jul 2020 11:13:28 -0700 (PDT) MIME-Version: 1.0 From: Pavel Timofeev Date: Thu, 2 Jul 2020 21:13:03 +0300 Message-ID: Subject: set_rcvar() function use? To: ports-list freebsd X-Rspamd-Queue-Id: 49yR6f0f1nz48bn X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=b7ER3sU5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of timp87@gmail.com designates 2a00:1450:4864:20::629 as permitted sender) smtp.mailfrom=timp87@gmail.com X-Spamd-Result: default: False [-2.38 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.89)[-0.887]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; NEURAL_HAM_LONG(-0.95)[-0.948]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::629:from]; NEURAL_HAM_SHORT(-0.55)[-0.550]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2020 18:13:30 -0000 Hello, dear community. I'm confused, please, help me. There is a rc.subr function which was buried[1] and resurrected[2] after a couple of years in almost the same form. I don't know what happened behind the scenes, but I have a question. Is it a preferable way to define a rc.conf variable these days in rc scripts (again/over and over)? If it is then I'd like to propose changes to FreeBSD porters handbook page where basic rc script is described[3] Also rc.subr(8) man page is missing set_rcvar() function description. BTW it's missing a lot more functions description from rc.subr (are missing functions for internal use only?) If it's not then tell me please what it was resurrected for. Just curious and for the record. I maintain several ports and want to know what is considered the right/preferable way to write rc scripts. [1] https://lists.freebsd.org/pipermail/freebsd-current/2012-January/031246.html https://svnweb.freebsd.org/base?view=revision&revision=230099 https://svnweb.freebsd.org/base?view=revision&revision=230103 https://svnweb.freebsd.org/base?view=revision&revision=230105 [2] https://svnweb.freebsd.org/base?view=revision&revision=272393 [3] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html