forked from pool/acpid
This commit is contained in:
parent
d1ef30a566
commit
b571f26d0e
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 1 18:37:13 CEST 2008 - hmacht@suse.de
|
||||||
|
|
||||||
|
- different config files for different rules:
|
||||||
|
events.thinkpad and events.power_button
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 7 23:03:40 CEST 2008 - hmacht@suse.de
|
Thu Aug 7 23:03:40 CEST 2008 - hmacht@suse.de
|
||||||
|
|
||||||
|
16
acpid.spec
16
acpid.spec
@ -21,7 +21,7 @@
|
|||||||
Name: acpid
|
Name: acpid
|
||||||
Url: http://acpid.sourceforge.net/
|
Url: http://acpid.sourceforge.net/
|
||||||
Version: 1.0.6
|
Version: 1.0.6
|
||||||
Release: 76
|
Release: 81
|
||||||
%define acpi_version 0.09
|
%define acpi_version 0.09
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
@ -34,7 +34,8 @@ Source1: acpi-%{acpi_version}.tar.bz2
|
|||||||
Source2: rcacpid
|
Source2: rcacpid
|
||||||
Source3: README.SuSE
|
Source3: README.SuSE
|
||||||
Source4: thinkpad_acpi.modprobe
|
Source4: thinkpad_acpi.modprobe
|
||||||
Source5: events.default
|
Source5: events.power_button
|
||||||
|
Source9: events.thinkpad
|
||||||
Source6: thinkpad_handler
|
Source6: thinkpad_handler
|
||||||
Source7: power_button
|
Source7: power_button
|
||||||
Patch1: acpi_%{acpi_version}.dif
|
Patch1: acpi_%{acpi_version}.dif
|
||||||
@ -63,7 +64,7 @@ Authors:
|
|||||||
%patch1
|
%patch1
|
||||||
pushd acpi-%{acpi_version}
|
pushd acpi-%{acpi_version}
|
||||||
popd
|
popd
|
||||||
cp %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} .
|
cp %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} %{S:9} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make EXTRA_CFLAGS="$RPM_OPT_FLAGS -DUSE_SYSLOG"
|
make EXTRA_CFLAGS="$RPM_OPT_FLAGS -DUSE_SYSLOG"
|
||||||
@ -81,7 +82,8 @@ install -Dm 744 thinkpad_handler %{buildroot}/usr/lib/acpid/thinkpad_handler
|
|||||||
install -Dm 744 power_button %{buildroot}/usr/lib/acpid/power_button
|
install -Dm 744 power_button %{buildroot}/usr/lib/acpid/power_button
|
||||||
mkdir -p %{buildroot}/usr/sbin
|
mkdir -p %{buildroot}/usr/sbin
|
||||||
ln -sf ../../etc/init.d/acpid %{buildroot}/usr/sbin/rcacpid
|
ln -sf ../../etc/init.d/acpid %{buildroot}/usr/sbin/rcacpid
|
||||||
install -Dm 644 events.default %{buildroot}/etc/acpi/events/default
|
install -Dm 644 events.power_button %{buildroot}/etc/acpi/events/power_button
|
||||||
|
install -Dm 644 events.thinkpad %{buildroot}/etc/acpi/events/thinkpad
|
||||||
pushd acpi-%{acpi_version}
|
pushd acpi-%{acpi_version}
|
||||||
ln -sf /usr/share/automake*/mkinstalldirs mkinstalldirs
|
ln -sf /usr/share/automake*/mkinstalldirs mkinstalldirs
|
||||||
make prefix=%{buildroot}/usr install
|
make prefix=%{buildroot}/usr install
|
||||||
@ -111,7 +113,8 @@ rm -rf %{buildroot}
|
|||||||
%dir /etc/modprobe.d
|
%dir /etc/modprobe.d
|
||||||
%dir /etc/acpi
|
%dir /etc/acpi
|
||||||
%dir /etc/acpi/events
|
%dir /etc/acpi/events
|
||||||
/etc/acpi/events/default
|
/etc/acpi/events/thinkpad
|
||||||
|
/etc/acpi/events/power_button
|
||||||
/usr/lib/acpid
|
/usr/lib/acpid
|
||||||
/etc/init.d/acpid
|
/etc/init.d/acpid
|
||||||
/etc/modprobe.d/thinkpad_acpi
|
/etc/modprobe.d/thinkpad_acpi
|
||||||
@ -126,6 +129,9 @@ rm -rf %{buildroot}
|
|||||||
%ghost %config(noreplace,missingok) %_var/log/acpid
|
%ghost %config(noreplace,missingok) %_var/log/acpid
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 01 2008 hmacht@suse.de
|
||||||
|
- different config files for different rules:
|
||||||
|
events.thinkpad and events.power_button
|
||||||
* Fri Aug 08 2008 hmacht@suse.de
|
* Fri Aug 08 2008 hmacht@suse.de
|
||||||
- add power_button script to care about button presses if there
|
- add power_button script to care about button presses if there
|
||||||
is no active X session
|
is no active X session
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# forward acpi events to the appropriate scripts
|
|
||||||
|
|
||||||
event=ibm/.*
|
|
||||||
action=/usr/lib/acpid/thinkpad_handler "%e"
|
|
||||||
|
|
||||||
event=button/power.*
|
|
||||||
action=/usr/lib/acpid/power_button
|
|
4
events.power_button
Normal file
4
events.power_button
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# care about the power button
|
||||||
|
|
||||||
|
event=button/power.*
|
||||||
|
action=/usr/lib/acpid/power_button
|
5
events.thinkpad
Normal file
5
events.thinkpad
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# forward acpi events to the thinkpad handler (bluetooth etc.)
|
||||||
|
|
||||||
|
event=ibm/.*
|
||||||
|
action=/usr/lib/acpid/thinkpad_handler "%e"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user