From: Michael Tremer Date: Sun, 17 Sep 2023 13:29:22 +0000 (+0000) Subject: acpid: Drop package X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf761851a000f8a5bb7df15d48cfdf9a515b34c4;p=ipfire-3.x.git acpid: Drop package We should not need this as systemd-logind is handling any power button presses. Signed-off-by: Michael Tremer --- diff --git a/acpid/acpid.nm b/acpid/acpid.nm deleted file mode 100644 index 43d508f18..000000000 --- a/acpid/acpid.nm +++ /dev/null @@ -1,57 +0,0 @@ -############################################################################### -# IPFire.org - An Open Source Firewall Solution # -# Copyright (C) - IPFire Development Team # -############################################################################### - -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 index 74063179a..000000000 --- a/acpid/power +++ /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 index 839a31818..000000000 --- a/acpid/power.sh +++ /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 index 0826d86e1..000000000 --- a/acpid/systemd/acpid.service +++ /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