aboutsummaryrefslogtreecommitdiff
path: root/packages/apm
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2026-04-24 14:10:01 +0000
committerLexi Winter <ivy@FreeBSD.org>2026-04-24 14:10:01 +0000
commitbb75b0d581f74e22a68d7868ad1f5da1146a8de0 (patch)
tree64488910bce6ab92c29a78b54010f773e3ab994b /packages/apm
parent75c66218401c00f4728d5312e2b933b8d3aefde1 (diff)
Diffstat (limited to 'packages/apm')
-rw-r--r--packages/apm/Makefile12
-rw-r--r--packages/apm/apm.ucl29
2 files changed, 41 insertions, 0 deletions
diff --git a/packages/apm/Makefile b/packages/apm/Makefile
new file mode 100644
index 000000000000..ddf8d1ed12ae
--- /dev/null
+++ b/packages/apm/Makefile
@@ -0,0 +1,12 @@
+WORLDPACKAGE= apm
+
+# On non-amd64 platforms, this package only contain an rc script.
+# (This should be fixed.)
+.if ${MACHINE_CPUARCH} != "amd64"
+SUBPACKAGES=
+.endif
+
+# APM isn't applicable to jails.
+PKG_SETS= optional
+
+.include <bsd.pkg.mk>
diff --git a/packages/apm/apm.ucl b/packages/apm/apm.ucl
new file mode 100644
index 000000000000..1318befc4273
--- /dev/null
+++ b/packages/apm/apm.ucl
@@ -0,0 +1,29 @@
+/*
+ * SPDX-License-Identifier: ISC
+ *
+ * Copyright (c) 2025 Lexi Winter <ivy@FreeBSD.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+comment = "Intel / Microsoft APM BIOS utility"
+
+desc = <<EOD
+APM (Advanced Power Management) is a hardware interface used to monitor and
+respond to system power state changes on x86 hardware. APM has been largely
+replaced by ACPI on modern systems.
+
+This package provides apm(8), a utility which can be used to monitor the APM
+state and change the system power mode, and the /etc/rc.d/apm service which
+can enable and disable APM at system startup and shutdown.
+EOD