2007-01-15 23:50:50 +01:00
|
|
|
#
|
2009-04-24 21:23:51 +02:00
|
|
|
# spec file for package acpid (Version 1.0.10)
|
2007-01-15 23:50:50 +01:00
|
|
|
#
|
2009-01-27 01:53:48 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:50 +01:00
|
|
|
#
|
2008-08-18 18:16:56 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:50:50 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-28 01:48:08 +01:00
|
|
|
|
2007-01-15 23:50:50 +01:00
|
|
|
Name: acpid
|
2008-02-28 01:48:08 +01:00
|
|
|
Url: http://acpid.sourceforge.net/
|
2009-04-24 21:23:51 +02:00
|
|
|
Version: 1.0.10
|
2009-09-22 21:50:40 +02:00
|
|
|
Release: 3
|
2007-01-15 23:50:50 +01:00
|
|
|
%define acpi_version 0.09
|
2007-07-05 00:32:31 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-15 23:50:50 +01:00
|
|
|
Group: System/Daemons
|
2008-02-28 01:48:08 +01:00
|
|
|
AutoReqProv: on
|
2007-01-15 23:50:50 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
Summary: Executes Actions at ACPI Events
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Source1: acpi-%{acpi_version}.tar.bz2
|
|
|
|
Source2: rcacpid
|
|
|
|
Source3: README.SuSE
|
2007-08-09 17:37:20 +02:00
|
|
|
Source4: thinkpad_acpi.modprobe
|
2008-09-01 18:57:51 +02:00
|
|
|
Source5: events.power_button
|
|
|
|
Source9: events.thinkpad
|
2008-06-23 02:06:29 +02:00
|
|
|
Source6: thinkpad_handler
|
2008-08-18 18:16:56 +02:00
|
|
|
Source7: power_button
|
2007-01-15 23:50:50 +01:00
|
|
|
Patch1: acpi_%{acpi_version}.dif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-02-28 01:48:08 +01:00
|
|
|
ExclusiveArch: %ix86 x86_64 ia64
|
2007-01-15 23:50:50 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
ACPID is a completely flexible, totally extensible daemon for
|
|
|
|
delivering ACPI events. It listens to a file (/proc/acpi/event) and,
|
|
|
|
when an event occurs, executes programs to handle the event. The start
|
|
|
|
script loads all needed modules.
|
|
|
|
|
|
|
|
Configure it in /etc/sysconfig/powermanagement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andrew Grover <andrew.grover@intel.com>
|
|
|
|
Tim Hockin <thockin@sun.com>
|
|
|
|
Cajus Pollmeier <pollmeier@gonicus.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -b 0 -a 1
|
|
|
|
%patch1
|
|
|
|
pushd acpi-%{acpi_version}
|
|
|
|
popd
|
2008-09-01 18:57:51 +02:00
|
|
|
cp %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} %{S:9} .
|
2007-01-15 23:50:50 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
pushd acpi-%{acpi_version}
|
|
|
|
ln -sf /usr/share/automake*/install-sh install-sh
|
|
|
|
./configure
|
2007-04-24 23:27:02 +02:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
2007-01-15 23:50:50 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install INSTPREFIX=%{buildroot} SBINDIR=%{buildroot}/sbin
|
|
|
|
install -Dm 744 rcacpid %{buildroot}/etc/init.d/acpid
|
2009-04-24 21:23:51 +02:00
|
|
|
install -Dm 644 thinkpad_acpi.modprobe %{buildroot}/etc/modprobe.d/50-thinkpad_acpi.conf
|
2008-06-23 02:06:29 +02:00
|
|
|
install -Dm 744 thinkpad_handler %{buildroot}/usr/lib/acpid/thinkpad_handler
|
2008-08-18 18:16:56 +02:00
|
|
|
install -Dm 744 power_button %{buildroot}/usr/lib/acpid/power_button
|
2007-01-15 23:50:50 +01:00
|
|
|
mkdir -p %{buildroot}/usr/sbin
|
|
|
|
ln -sf ../../etc/init.d/acpid %{buildroot}/usr/sbin/rcacpid
|
2008-09-01 18:57:51 +02:00
|
|
|
install -Dm 644 events.power_button %{buildroot}/etc/acpi/events/power_button
|
|
|
|
install -Dm 644 events.thinkpad %{buildroot}/etc/acpi/events/thinkpad
|
2007-01-15 23:50:50 +01:00
|
|
|
pushd acpi-%{acpi_version}
|
|
|
|
ln -sf /usr/share/automake*/mkinstalldirs mkinstalldirs
|
|
|
|
make prefix=%{buildroot}/usr install
|
|
|
|
install -Dm 644 acpi.1 %{buildroot}/%{_mandir}/man1/acpi.1
|
|
|
|
popd
|
2007-07-05 00:32:31 +02:00
|
|
|
# for the rpmlint fascists
|
|
|
|
mv samples examples
|
2007-06-05 00:44:31 +02:00
|
|
|
# keep the logfile
|
|
|
|
install -dm 755 %buildroot%_var/log
|
|
|
|
touch %buildroot%_var/log/acpid
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2007-01-15 23:50:50 +01:00
|
|
|
|
|
|
|
%post
|
2009-01-27 01:53:48 +01:00
|
|
|
%{fillup_and_insserv -y -f acpid}
|
2007-01-15 23:50:50 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update acpid
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal acpid
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-03-29 15:28:12 +02:00
|
|
|
%dir /etc/modprobe.d
|
2007-01-15 23:50:50 +01:00
|
|
|
%dir /etc/acpi
|
|
|
|
%dir /etc/acpi/events
|
2008-09-01 18:57:51 +02:00
|
|
|
/etc/acpi/events/thinkpad
|
|
|
|
/etc/acpi/events/power_button
|
2008-06-23 02:06:29 +02:00
|
|
|
/usr/lib/acpid
|
2007-01-15 23:50:50 +01:00
|
|
|
/etc/init.d/acpid
|
2009-04-24 21:23:51 +02:00
|
|
|
/etc/modprobe.d/50-thinkpad_acpi.conf
|
2007-01-15 23:50:50 +01:00
|
|
|
/usr/sbin/rcacpid
|
|
|
|
/sbin/acpid
|
|
|
|
/usr/bin/acpi_listen
|
2007-07-05 00:32:31 +02:00
|
|
|
%doc README.SuSE README Changelog examples
|
2007-01-15 23:50:50 +01:00
|
|
|
/usr/share/man/man8/acpid.8.gz
|
|
|
|
/usr/share/man/man8/acpi_listen.8.gz
|
|
|
|
/usr/bin/acpi
|
|
|
|
/usr/share/man/man1/acpi.1.gz
|
2007-06-05 00:44:31 +02:00
|
|
|
%ghost %config(noreplace,missingok) %_var/log/acpid
|
2007-01-15 23:50:50 +01:00
|
|
|
|
2007-03-29 15:28:12 +02:00
|
|
|
%changelog
|