Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2025 22:06:56 GMT
From:      Lexi Winter <ivy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5efd371bba15 - main - packages: Move powerd to its own package
Message-ID:  <202509232206.58NM6uhq043217@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ivy:

URL: https://cgit.FreeBSD.org/src/commit/?id=5efd371bba1508ed94faed2afbd11936f5fe4dac

commit 5efd371bba1508ed94faed2afbd11936f5fe4dac
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-09-23 21:05:05 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-09-23 22:06:32 +0000

    packages: Move powerd to its own package
    
    Nearly everyone wants powerd to manage CPU frequency scaling on real
    hardware, even if -utilities isn't installed.  Conversely, very small
    jails might want -utilities but don't need powerd.
    
    Move it to its own package and add it to the minimal set.
    
    MFC after:      1 day
    Reviewed by:    manu, imp
    Differential Revision:  https://reviews.freebsd.org/D52645
---
 UPDATING                            |  7 +++++++
 libexec/rc/rc.d/Makefile            |  5 ++++-
 release/packages/ucl/powerd-all.ucl | 11 +++++++++++
 usr.sbin/powerd/Makefile            |  1 +
 4 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/UPDATING b/UPDATING
index 82ae24814e02..23c2da62db63 100644
--- a/UPDATING
+++ b/UPDATING
@@ -27,6 +27,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW:
 	world, or to merely disable the most expensive debugging functionality
 	at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20250923:
+	powerd has been moved to a new FreeBSD-powerd package.  If you have
+	FreeBSD-set-minimal installed, the new package will be installed
+	automatically, otherwise you may want to install it by hand.
+
+	This only affects pkgbase users.
+
 20250918:
 	mandoc (including /usr/bin/man) has been moved to a new package,
 	FreeBSD-mandoc.  If you have the minimal set installed, this package
diff --git a/libexec/rc/rc.d/Makefile b/libexec/rc/rc.d/Makefile
index e5ee34e62185..d072039836d0 100644
--- a/libexec/rc/rc.d/Makefile
+++ b/libexec/rc/rc.d/Makefile
@@ -50,7 +50,6 @@ CONFS=	DAEMON \
 	${_nscd} \
 	${_opensm} \
 	os-release \
-	powerd \
 	pppoed \
 	pwcheck \
 	quota \
@@ -127,6 +126,10 @@ CONFGROUPS+=		NEWSYSLOG
 NEWSYSLOG=		newsyslog
 NEWSYSLOGPACKAGE=	newsyslog
 
+CONFGROUPS+=		POWERD
+POWERD=			powerd
+POWERDPACKAGE=		powerd
+
 CONFGROUPS+=		SYSLOGD
 SYSLOGD=		syslogd
 SYSLOGDPACKAGE=		syslogd
diff --git a/release/packages/ucl/powerd-all.ucl b/release/packages/ucl/powerd-all.ucl
new file mode 100644
index 000000000000..b6a2b3034f89
--- /dev/null
+++ b/release/packages/ucl/powerd-all.ucl
@@ -0,0 +1,11 @@
+comment = "System power control utility"
+
+desc = <<EOD
+The powerd utility monitors the system state and sets various power control
+options accordingly.  It offers power-saving modes that can be individually
+selected for operation on AC power or batteries.
+EOD
+
+annotations {
+	set = minimal
+}
diff --git a/usr.sbin/powerd/Makefile b/usr.sbin/powerd/Makefile
index 8a700b014e47..94378576774c 100644
--- a/usr.sbin/powerd/Makefile
+++ b/usr.sbin/powerd/Makefile
@@ -1,3 +1,4 @@
+PACKAGE=powerd
 PROG=	powerd
 MAN=	powerd.8
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509232206.58NM6uhq043217>