]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
acpid: Drop package
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Sep 2023 13:29:22 +0000 (13:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Sep 2023 13:29:22 +0000 (13:29 +0000)
We should not need this as systemd-logind is handling any power button
presses.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
acpid/acpid.nm [deleted file]
acpid/power [deleted file]
acpid/power.sh [deleted file]
acpid/systemd/acpid.service [deleted file]

diff --git a/acpid/acpid.nm b/acpid/acpid.nm
deleted file mode 100644 (file)
index 43d508f..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-###############################################################################
-# IPFire.org    - An Open Source Firewall Solution                            #
-# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
-###############################################################################
-
-name       = acpid
-version    = 2.0.34
-release    = 1
-
-groups     = System/Daemons
-url        = https://sourceforge.net/projects/acpid2/
-license    = GPLv2+
-summary    = ACPI Event Daemon
-
-description
-       acpid is a daemon that dispatches ACPI events to user-space programs.
-end
-
-source_dl  = https://sourceforge.net/projects/acpid2/files/
-sources    = %{thisapp}.tar.xz
-
-build
-       install_cmds
-               mkdir -pv %{BUILDROOT}/etc/acpi/{actions,events}
-               cp -vf %{DIR_SOURCE}/power %{BUILDROOT}/etc/acpi/events/
-               cp -vf %{DIR_SOURCE}/power.sh %{BUILDROOT}/etc/acpi/actions/
-       end
-end
-
-packages
-       package %{name}
-               script postin
-                       /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-
-                       # ACPI is enabled by default.
-                       /usr/bin/systemctl --no-reload enable acpid.service >/dev/null 2>&1 || :
-               end
-
-               script preun
-                       /usr/bin/systemctl --no-reload disable acpid.service >/dev/null 2>&1 || :
-                       /usr/bin/systemctl stop acpid.service >/dev/null 2>&1 || :
-               end
-
-               script postun
-                       /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-               end
-
-               script postup
-                       /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-                       /usr/bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
-               end
-       end
-
-       package %{name}-debuginfo
-               template DEBUGINFO
-       end
-end
diff --git a/acpid/power b/acpid/power
deleted file mode 100644 (file)
index 7406317..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# ACPID config to power down machine if powerbutton is pressed
-
-event=button/power.*
-action=/etc/acpi/actions/power.sh
diff --git a/acpid/power.sh b/acpid/power.sh
deleted file mode 100755 (executable)
index 839a318..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# Shutdown the system immediately
-shutdown -h now
diff --git a/acpid/systemd/acpid.service b/acpid/systemd/acpid.service
deleted file mode 100644 (file)
index 0826d86..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=ACPI Event Daemon
-After=syslog.target
-
-[Service]
-Type=forking
-ExecStart=/usr/sbin/acpid
-
-[Install]
-WantedBy=multi-user.target