From nobody Tue Jun 06 06:04:26 2023 X-Original-To: dev-commits-ports-all@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 4Qb0L31T2kz4ZVBM; Tue, 6 Jun 2023 06:04:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qb0L30xl9z3qLm; Tue, 6 Jun 2023 06:04:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686031467; 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=LWtROGLuUxEBOYQ4PmgooR9vlIoe7RDpqLqFZNwPM8Y=; b=FQ+lGJgQdHWFaouv9Lt0q1x/XqrHn3z2MbUFLZFsWX29Y3BYuKNBmCFyeV0ItuoDLhm5dR ujxql44ZZJIsUxcfGWVTfteCfPnwXvYtQNpWpaXXwDLR2O0VcCUNO3I1OI+3C5mmOCMs/N K4nC16W6pC8w8Ul2Ssgu3k0NM524CBscvH7T6ps8Ff+qqceMjaHD+qNmC0kjdvITtVW6qh a8wlok1+8bTk0jH1xId7+AQUCl5RKVU54CR5l12QgjiUKSRCReQ6zYDIidDM4Ibf+hKLyn XNn9Mwvt0HnZT+pK80IjlyFqTAc+tai72Y4EUqdLLYPq6/UgrQCC2nTx9uLvQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686031467; 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=LWtROGLuUxEBOYQ4PmgooR9vlIoe7RDpqLqFZNwPM8Y=; b=C9I9pHZVkkHu/WetWp624vA+RPCUaNgF+kle7cypI2Vt3IFrUHQN8/khxBf4KrJclN9cnY JiKx6vrYn7WlLsk6T1EQYV/mNkzmzgH+6PcHvOPFnFhZ7KAi14UDyIGiIxkCv7vefiXCvn ey8/pNwTv3vsr2XmtfF554qWHFgdhKk9fyHfFsz7oPNh+oqQyLee8WnBgsImtz6IzNU9sJ Rbuk2MS3iQbagMzjijvN+ifu1rFP9MdupvaQ9NS+jgfzCUE4VWwfWgjtZPgOUlICCeaJmt ndGpkm7d7jd5UFF5UC3eRnNvRcnB4a7mbC5SNJS/r418K689IqDBISYwX3dr8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686031467; a=rsa-sha256; cv=none; b=HvDZos+/HIJNfAus20wO43EW5hPizcDhlSJo3znJCfJCgQZSQeQYkgEEeYZD7I65F3vWjg mpl6FTypwNNepA3m9QeR00vv7lWX2ihJ36IKpN3RcY5x+XnuoiYpBVH48AOROa9ff6Rn13 lzoELDri5KzGDkZAEkSbXilUGLp1Y6/e2ZYelHUzGXRFvFYcDzQajrHAo9KrJ4C9+AcgOF LN0FtP8+Rlm2IvYJoGQ2lht7naRjNiE+/QW6zsPCfd5xrWvPPwsQQL1s0sVYeDBvSTBFBs mcQ0c/yt/j6iY1srI5t3LYc9LHZpfrv0E3Cdaig6PgMM0Cc9YPcqjePkrGOoQA== 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 4Qb0L3016JzJVT; Tue, 6 Jun 2023 06:04:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35664QnV074628; Tue, 6 Jun 2023 06:04:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35664Qpv074627; Tue, 6 Jun 2023 06:04:26 GMT (envelope-from git) Date: Tue, 6 Jun 2023 06:04:26 GMT Message-Id: <202306060604.35664Qpv074627@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Oleksii Samorukov Subject: git: 86bb83ce8acd - main - dns/inadyn: fix for pidfile creation on transient /var/run configuration List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: samm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by samm: URL: https://cgit.FreeBSD.org/ports/commit/?id=86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000 commit 86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000 Author: Oleksii Samorukov AuthorDate: 2023-06-06 06:03:07 +0000 Commit: Oleksii Samorukov CommitDate: 2023-06-06 06:04:10 +0000 dns/inadyn: fix for pidfile creation on transient /var/run configuration PR: 266106 --- dns/inadyn/Makefile | 1 + dns/inadyn/files/inadyn.in | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/dns/inadyn/Makefile b/dns/inadyn/Makefile index a23046619979..abc44df60198 100644 --- a/dns/inadyn/Makefile +++ b/dns/inadyn/Makefile @@ -1,5 +1,6 @@ PORTNAME= inadyn PORTVERSION= 2.11.0 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= https://github.com/troglobit/${PORTNAME}/releases/download/v${PORTVERSION}/ diff --git a/dns/inadyn/files/inadyn.in b/dns/inadyn/files/inadyn.in index 2c1a77815724..a5bf457e9ce4 100644 --- a/dns/inadyn/files/inadyn.in +++ b/dns/inadyn/files/inadyn.in @@ -40,6 +40,11 @@ inadyn_checkconfig() { echo "Performing sanity check on ${name} configuration:" eval ${command} ${command_args} --check-config + piddir="$(dirname ${pidfile})" + if [ ! -d "${piddir}" ] && id inadyn >/dev/null 2>&1 ; then + mkdir -p "${piddir}" + chown inadyn:inadyn "${piddir}" + fi } run_rc_command "$1"