From nobody Thu Jul 25 18:01:55 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVJcM2ykmz5QywP; Thu, 25 Jul 2024 18:01:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVJcM2WZ9z52Lv; Thu, 25 Jul 2024 18:01:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721930515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=buqCKkr4MfLYl2pqc80sUWwyktLdK+5SclGWhGKU6Ik=; b=bWCn6/qZqtWlW1mn+jZ7ANYtbYDnoO8m/3jyNYt1665v18Uyj+ViACkAqIbdmSpPBC6Qf0 uhuAofGG1TKyd9jPoOQX0tdrr1LU+qVOYPkyONoWnMEX/ggFwka9aksV1DlASID7SmqEQo t25ds98WESxNulewkynbdsrWFEOHOQYDS+stplBZQLxPvLEE2tKEVqyvPh/xHLum0z+jzQ WEv0BumrckgXA/1PN6c97irUXpP2buEeIDaDFNxcr/7+eRkbh29pJumr8BRP1rQ/62twb0 7f5ujX6VgoVnU5zJieWMscfg2RJHYu55h7tUHXL1+3J8y70xFdF+KYA+orivyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721930515; a=rsa-sha256; cv=none; b=ul7fUtoacI0SQSpD/bh3lL2adcneEKuPq9tSSIftSSCOBJMMwPzdS9/n3D7x3/cMOqQFph 7lWWEG5B3jK3XgXORIwzoGHBMWh2qAH4v2fxINRXsAxeF2R57QdKrh7+HSY5YrdNEwWevh rixhJR+juNFDqsHvpgQ6fyI9w1FlhD5DDy6KLXrfHp9KD/xaU2c0DBz1MXebF5EX9Ft7fQ uL9UCuRaFP+JZ9Q8vY2MSH4+iTa3+4XS5xtDvavUImpKzQy71hWYSveabPN6HBzJATXJwv 5U3ou84G0dGVsrBbXPxRxGfWXrsitcXX7j1stDZ3B5HlztffhBZoPsM4ytiKzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721930515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=buqCKkr4MfLYl2pqc80sUWwyktLdK+5SclGWhGKU6Ik=; b=H1BOb+JioRIIZeMCw19PbJEaUpzMJ5qiJ5hN2zEOr8C4yJmFafDyM8KJFhbbm4GRP+KuRz VSe9OUlJ28pEIswSIl0GOeY2giibPBqTo8jkg6/zpcmK9ycPUTnBT8IYd+E7EcQ8uBgCO5 ZuQUsqUGTTJXTzrH+6WtKfm7QAJgEL2QK9rfYORqk17HJLSIWc/cnSy+fSxu7roMXxK6lr 1UOBSmit0tK7aqU4i7q1dfot87IfCPR4s+fMtpSQbCiIJnXMjRf5rborYmB61tloWkNDIP ml1ZZgeVbt7qCatBRvkh/peO2JAVOUG0ySe/C1Lxz6Ij+OK04epmJt9Rbm1EyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WVJcM27N4z1585; Thu, 25 Jul 2024 18:01:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46PI1tMS088385; Thu, 25 Jul 2024 18:01:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46PI1tWR088382; Thu, 25 Jul 2024 18:01:55 GMT (envelope-from git) Date: Thu, 25 Jul 2024 18:01:55 GMT Message-Id: <202407251801.46PI1tWR088382@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dave Cottlehuber Subject: git: 97061b758bd4 - main - lang/erlang: ensure epmd receives user-configurable flags List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dch X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 97061b758bd431671e3a5c4b0776158da958b3dc Auto-Submitted: auto-generated The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=97061b758bd431671e3a5c4b0776158da958b3dc commit 97061b758bd431671e3a5c4b0776158da958b3dc Author: Dave Cottlehuber AuthorDate: 2024-07-09 17:50:40 +0000 Commit: Dave Cottlehuber CommitDate: 2024-07-25 18:01:32 +0000 lang/erlang: ensure epmd receives user-configurable flags Differential Revision: https://reviews.freebsd.org/D45938 Sponsored by: SkunkWerks, GmbH --- lang/erlang/files/epmd.in | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lang/erlang/files/epmd.in b/lang/erlang/files/epmd.in index 4bfd35b7d740..15bf2c1bf1ae 100644 --- a/lang/erlang/files/epmd.in +++ b/lang/erlang/files/epmd.in @@ -1,23 +1,27 @@ #!/bin/sh # PROVIDE: epmd -# REQUIRE: LOGIN +# REQUIRE: DAEMON mountlate # # Add the following line to /etc/rc.conf to enable epmd: # # epmd_enable="YES" # - -epmd_enable=${epmd_enable:-"NO"} +# Configure optional flags with: +# epmd_flags="-address 127.0.0.1" . /etc/rc.subr name=epmd rcvar=epmd_enable +load_rc_config ${name} + +: ${epmd_enable="NO"} +: ${epmd_flags:-""} + procname=%%PREFIX%%/bin/epmd -start_cmd="%%PREFIX%%/bin/epmd -daemon" +start_cmd="%%PREFIX%%/bin/epmd -daemon ${epmd_flags}" stop_cmd="%%PREFIX%%/bin/epmd -kill >/dev/null" -load_rc_config ${name} run_rc_command "$1"