From nobody Sun Dec 8 14:28:45 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 4Y5nRd2jk8z5gkXT; Sun, 08 Dec 2024 14:28:45 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y5nRd2CrYz4w9y; Sun, 8 Dec 2024 14:28:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733668125; 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=ziNcREWytlWIQR1J/NQM9Cpii1BspzJZQD5Cw0rS1hA=; b=VyqfDy4h8FuVLKBGmtfeA+lyuCVCx+iqbCKSJbAz71RtRG1KFWUnxNBMslc6ufKyQdLZdb 60ElM9RwhasAAQXurBg+okhgmRHG9CYM6bOdl6j5R8OVuddUkbnVQOLVqgiEQUzYHatBqp pFN6yFgqHBuiScAuNVErWFjQWp/6o5kYGzMQHpjUXJ3SZSJVEFeVbTXvq/WkU572QdBGTh 0hGFf7oV8ByO9zVZnee7kEewQio+iFx63MaS7cpS33cznPxnhvznyFKOuJwplQZDqTlL/W rYbfgMEjniw0uvGcz9gN5eNuqp9U2VJEixAJMH86vi8emX9s+z0vpSG1gaasuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733668125; 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=ziNcREWytlWIQR1J/NQM9Cpii1BspzJZQD5Cw0rS1hA=; b=VlwnCfqGJ4hVWwifWtDkYJ+cqmtrUW4pQWNoMC6Rh/1FztVTzznBrcgDHyCqgMmNVdc8aX JCeznie73depSvTlWD9O5/NV77uLpJhmNoOXCCJRwquTRYy98y05zACgo2xdtk8ZeH4dxg C6duXvdtnVC6bPOPzj0oYHGzKaDTFWSPG/++vhCffIrJzEGZ+pNSeBo4xoqwsKNSWUWP97 dhSQ2Mm7wlkjRiq2bgZXgx9Qb27keFYPF8w9sZcT8JBjK+x0K+NhAVJjyuYBCdYLznaRxQ YduPT1Cff8nN1U5PdhaajaybY4ChsY+mn+157mcVx2d/wMK0Pi9borFIBY35CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733668125; a=rsa-sha256; cv=none; b=TlmFIz6xFNbGuQlWAn7greqpIW1WLEp6660DIBggOuv3osDFqlkBYyq5ilx76nIt2U8YiT 9MDbtHuZr7BHSPvsG9zgjGWgBJBioarGhW572EPjJonwDNCOG3mnRwSly/Y4FsJx8+gujx EW5G5Z5jcqK5PWtk37knKbQOLJlVQfXwvRd9T5ptmNawsQtnv2uP+yS9VniZ03XDjy57eJ 2fDvwd+XMC8XP0yISXTfJab3XQ0965qVj1V8rhBbAHGVJx3i5o7rXEjAtWhunUvmfR2pF0 TLTb1vJ7y4LIJ+8DoFWRvrAzMyXyR4ld7sjRTRva7/mpCorF0Jn682ZR+omynQ== 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 4Y5nRd1q1nzwFd; Sun, 8 Dec 2024 14:28:45 +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 4B8ESjq3032138; Sun, 8 Dec 2024 14:28:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B8ESj8o032135; Sun, 8 Dec 2024 14:28:45 GMT (envelope-from git) Date: Sun, 8 Dec 2024 14:28:45 GMT Message-Id: <202412081428.4B8ESj8o032135@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 45f03c6eb18b - main - sysutils/bsdfan: the port had been improved (+) 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: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 45f03c6eb18bcd3224a6f66b0095d488bf350046 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=45f03c6eb18bcd3224a6f66b0095d488bf350046 commit 45f03c6eb18bcd3224a6f66b0095d488bf350046 Author: Alexey Dokuchaev AuthorDate: 2024-12-08 14:27:22 +0000 Commit: Alexey Dokuchaev CommitDate: 2024-12-08 14:27:22 +0000 sysutils/bsdfan: the port had been improved (+) - Install rc-script with resume command support - Respect installation ${PREFIX} while I'm here PR: 276991 Submitted by: Viacheslav Chimishuk --- sysutils/bsdfan/Makefile | 4 +++- sysutils/bsdfan/files/bsdfan.in | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/sysutils/bsdfan/Makefile b/sysutils/bsdfan/Makefile index caa9dfd6ebde..2fed28db54b9 100644 --- a/sysutils/bsdfan/Makefile +++ b/sysutils/bsdfan/Makefile @@ -1,5 +1,6 @@ PORTNAME= bsdfan PORTVERSION= g20180112 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= danfe@FreeBSD.org @@ -16,7 +17,8 @@ USES= uidfix USE_GITHUB= yes GH_ACCOUNT= claudiozz GH_TAGNAME= d8428a7 -MAKE_ARGS= MANDIR=${PREFIX}/share/man/man +MAKE_ARGS= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/share/man/man +USE_RC_SUBR= ${PORTNAME} PLIST_FILES= bin/bsdfan share/man/man1/bsdfan.1.gz \ @sample\ etc/bsdfan.conf.sample diff --git a/sysutils/bsdfan/files/bsdfan.in b/sysutils/bsdfan/files/bsdfan.in new file mode 100644 index 000000000000..ab6c18fecec4 --- /dev/null +++ b/sysutils/bsdfan/files/bsdfan.in @@ -0,0 +1,27 @@ +#!/bin/sh +# +# PROVIDE: bsdfan +# REQUIRE: DAEMON +# KEYWORD: resume shutdown +# + +. /etc/rc.subr + +name="bsdfan" +desc="Control fan speed using temperature sensor" +rcvar="bsdfan_enable" + +: ${bsdfan_enable="NO"} +: ${bsdfan_flags="-d"} + +command="%%PREFIX%%/bin/${name}" +extra_commands="resume" +resume_cmd="bsdfan_resume" + +bsdfan_resume() +{ + run_rc_command restart +} + +load_rc_config ${name} +run_rc_command "$1"