!1 delete useless configuration file

Merge pull request !1 from 吴旭/master
This commit is contained in:
openeuler-ci-bot 2020-01-11 09:56:30 +08:00 committed by Gitee
commit 0495c76198
3 changed files with 13 additions and 135 deletions

View File

@ -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

View File

@ -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 <wuxu.wu@huawei.com> - 2.0.32
- delete useless configuration file
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.31
- Package init

View File

@ -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