From 9ea3dbf8213bd32aa2953a1e077efdcfeeaecfc3 Mon Sep 17 00:00:00 2001 From: wuxu_wu Date: Fri, 10 Jan 2020 20:39:47 +0800 Subject: [PATCH] acpid: delete useless configuration file delete useless configuration file Signed-off-by: wuxu_wu --- acpid.init | 115 ----------------------------------------------- acpid.spec | 27 ++++++----- acpid.video.conf | 6 --- 3 files changed, 13 insertions(+), 135 deletions(-) delete mode 100644 acpid.init delete mode 100644 acpid.video.conf diff --git a/acpid.init b/acpid.init deleted file mode 100644 index 0ddab7a..0000000 --- a/acpid.init +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -# -# /etc/rc.d/init.d/acpid -# -# Starts the acpi daemon -# -# chkconfig: 345 26 74 -# description: Listen and dispatch ACPI events from the kernel -# processname: acpid - -### BEGIN INIT INFO -# Provides: acpid -# Required-Start: $syslog $local_fs -# Required-Stop: $syslog $local_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: start and stop acpid -# Description: Listen and dispatch ACPI events from the kernel -### END INIT INFO - -# Source function library. -. /etc/rc.d/init.d/functions - -# Source networking configuration. -. /etc/sysconfig/acpid - -RETVAL=0 - -# -# See how we were called. -# - -check() { - # Check that we're a privileged user - [ `id -u` = 0 ] || exit 4 - - # Check if acpid is executable - test -x /usr/sbin/acpid || exit 5 -} - -start() { - - check - - # Check if it is already running - if [ ! -f /var/lock/subsys/acpid ]; then - echo -n $"Starting acpi daemon: " - daemon /usr/sbin/acpid $OPTIONS - RETVAL=$? - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid - echo - fi - return $RETVAL -} - -stop() { - - check - - echo -n $"Stopping acpi daemon: " - killproc /usr/sbin/acpid - RETVAL=$? - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid - echo - return $RETVAL -} - - -restart() { - stop - start -} - -reload() { - - check - - trap "" SIGHUP - action $"Reloading acpi daemon:" killall -HUP acpid - RETVAL=$? - return $RETVAL -} - -case "$1" in -start) - start - ;; -stop) - stop - ;; -reload) - reload - ;; -force-reload) - echo "$0: Unimplemented feature." - RETVAL=3 - ;; -restart) - restart - ;; -condrestart) - if [ -f /var/lock/subsys/acpid ]; then - restart - fi - ;; -status) - status acpid - RETVAL=$? - ;; -*) - echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}" - RETVAL=2 -esac - -exit $RETVAL diff --git a/acpid.spec b/acpid.spec index 42de957..d8dcf54 100644 --- a/acpid.spec +++ b/acpid.spec @@ -1,17 +1,15 @@ Name: acpid Version: 2.0.30 -Release: 2 +Release: 3 Summary: Advanced Configuration and Power Interface event daemon License: GPLv2+ URL: http://sourceforge.net/projects/acpid2/ Source0: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz -Source1: acpid.init -Source2: acpid.video.conf -Source3: acpid.power.conf -Source4: acpid.power.sh -Source5: acpid.service -Source6: acpid.sysconfig -Source7: acpid.socket +Source1: acpid.power.conf +Source2: acpid.power.sh +Source3: acpid.service +Source4: acpid.sysconfig +Source5: acpid.socket Patch1: acpid-2.0.28-kacpimon-dynamic-connections.patch ExclusiveArch: aarch64 x86_64 %{ix86} @@ -44,11 +42,10 @@ mkdir -p -m 755 %{buildroot}%{_sysconfdir}/acpi/actions mkdir -p -m 755 %{buildroot}%{_unitdir} mkdir -p -m 755 %{buildroot}%{_sysconfdir}/sysconfig/acpid %make_install docdir=%{_docdir}/%{name} -install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/events/videoconf -install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/acpi/events/powerconf -install -p -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh -install -p -m 644 %{SOURCE5} %{SOURCE7} %{buildroot}%{_unitdir} -install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid +install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/acpi/events/powerconf +install -p -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh +install -p -m 644 %{SOURCE3} %{SOURCE5} %{buildroot}%{_unitdir} +install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/acpid %files %{_unitdir}/%{name}.service @@ -56,7 +53,6 @@ install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid %dir %{_sysconfdir}/acpi %dir %{_sysconfdir}/acpi/events %dir %{_sysconfdir}/acpi/actions -%config %attr(0644,root,root) %{_sysconfdir}/acpi/events/videoconf %config %attr(0644,root,root) %{_sysconfdir}/acpi/events/powerconf %config %attr(0755,root,root) %{_sysconfdir}/acpi/actions/power.sh %config %attr(0644,root,root) %{_sysconfdir}/sysconfig/acpid @@ -80,6 +76,9 @@ install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid %systemd_postun_with_restart %{name}.socket %{name}.service %changelog +* Fri Jan 10 2020 wuxu_wu - 2.0.32 +- delete useless configuration file + * Thu Aug 29 2019 openEuler Buildteam - 2.0.31 - Package init diff --git a/acpid.video.conf b/acpid.video.conf deleted file mode 100644 index 97507bf..0000000 --- a/acpid.video.conf +++ /dev/null @@ -1,6 +0,0 @@ -# Configuration to turn on DPMS again on video activity, needed for some -# laptops. Disabled by default, uncomment if your laptop display stays blank -# after you close and open the lid. - -#event=video.* -#action=/usr/sbin/vbetool dpms on