cvsdist 362041
Summary: ACPI Event Daemon
cvsdist 362041
Name: acpid
cvsdist b5f579
Version: 1.0.2
cvsdist b5f579
Release: 5
cvsdist 362041
Copyright: GPL
cvsdist 362041
Group: System Environment/Daemons
cvsdist b5f579
Source: http://prdownloads.sourceforge.net/acpid/acpid-%{version}.tar.gz
cvsdist 362041
Source2: acpid.init
cvsdist 362041
Patch: acpid-1.0.1-pm1.diff
cvsdist 362041
Patch2: acpid-1.0.1-conf.patch
cvsdist 362041
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist b5f579
ExclusiveArch: ia64 x86_64 i386
cvsdist b5f579
URL: http://acpid.sourceforge.net/
cvsdist 362041
Prereq: /sbin/chkconfig, /sbin/service
cvsdist 362041
cvsdist 362041
cvsdist 362041
%description
cvsdist 362041
acpid is a daemon that dispatches ACPI events to user-space programs.
cvsdist 362041
cvsdist 362041
cvsdist 362041
%prep
cvsdist 362041
%setup
cvsdist 362041
%patch -p1
cvsdist 362041
%patch2 -p1
cvsdist 362041
cvsdist 362041
%build
cvsdist 362041
make
cvsdist 362041
cvsdist 362041
cvsdist 362041
%install
cvsdist 362041
rm -rf $RPM_BUILD_ROOT
cvsdist 362041
mkdir -p $RPM_BUILD_ROOT
cvsdist 362041
make install INSTPREFIX=$RPM_BUILD_ROOT
cvsdist 362041
cvsdist 362041
mkdir -p $RPM_BUILD_ROOT/etc/acpi/events
cvsdist 362041
mkdir -p $RPM_BUILD_ROOT/etc/acpi/actions
cvsdist 362041
chmod 755 $RPM_BUILD_ROOT/etc/acpi/events
cvsdist 362041
install -m 644 samples/sample.conf $RPM_BUILD_ROOT/etc/acpi/events
cvsdist 362041
cvsdist 362041
mkdir -p $RPM_BUILD_ROOT/var/log
cvsdist 362041
touch $RPM_BUILD_ROOT/var/log/acpid
cvsdist 362041
chmod 640 $RPM_BUILD_ROOT/var/log/acpid
cvsdist 362041
cvsdist 362041
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cvsdist 362041
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
cvsdist 362041
chmod 755 $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
cvsdist 362041
cvsdist 362041
cvsdist b5f579
%clean
cvsdist b5f579
rm -rf $RPM_BUILD_ROOT
cvsdist b5f579
cvsdist b5f579
cvsdist 362041
%files
cvsdist 362041
%defattr(-,root,root)
cvsdist 362041
%dir /etc/acpi
cvsdist 362041
%dir /etc/acpi/events
cvsdist 362041
%dir /etc/acpi/actions
cvsdist b5f579
%config %attr(0644,root,root) /etc/acpi/events/sample.conf
cvsdist 362041
/var/log/acpid
cvsdist 362041
/usr/sbin/acpid
cvsdist 362041
%attr(0755,root,root) /etc/rc.d/init.d/acpid
cvsdist 362041
/usr/share/man/man8/acpid.8.gz
cvsdist 362041
cvsdist 362041
cvsdist 362041
%post
cvsdist 362041
/sbin/chkconfig --add acpid
cvsdist 362041
cvsdist 362041
%preun
cvsdist 362041
if [ "$1" = "0" ]; then
cvsdist 362041
	service acpid stop >/dev/null 2>&1
cvsdist 362041
	/sbin/chkconfig --del acpid
cvsdist 362041
fi
cvsdist 362041
cvsdist 362041
%changelog
cvsdist b5f579
* Wed Oct 22 2003  Bill Nottingham <notting@redhat.com> 1.0.2-5
cvsdist b5f579
- fix handling of sample.conf (#107160)
cvsdist b5f579
- mark for translations (#107459)
cvsdist b5f579
cvsdist b5f579
* Sun Oct 19 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist b5f579
- add %%clean specfile target
cvsdist b5f579
cvsdist b5f579
* Wed Oct  1 2003  Bill Nottingham <notting@redhat.com> 1.0.2-3
cvsdist b5f579
- re-enable x86
cvsdist b5f579
- don't load the button module
cvsdist b5f579
cvsdist b5f579
* Thu Aug  7 2003  Bill Nottingham <notting@redhat.com> 1.0.2-2
cvsdist b5f579
- no x86 for now
cvsdist b5f579
cvsdist b5f579
* Mon Jul  7 2003  Bill Nottingham <notting@redhat.com> 1.0.2-1
cvsdist b5f579
- update to 1.0.2
cvsdist b5f579
cvsdist 362041
* Wed Dec 11 2002  Bill Nottingham <notting@redhat.com> 1.0.1-4
cvsdist 362041
- don't start if /proc/acpi/event isn't there
cvsdist 362041
cvsdist 362041
* Thu Nov 14 2002  Bill Nottingham <notting@redhat.com> 1.0.1-3
cvsdist 362041
- build on more arches
cvsdist 362041
cvsdist 362041
* Mon Aug 26 2002  Bill Nottingham <notting@redhat.com> 1.0.1-2
cvsdist 362041
- tweak default config to run shutdown -h now on a power button event
cvsdist 362041
cvsdist 362041
* Thu Aug 22 2002  Bill Nottingham <notting@redhat.com> 1.0.1-1
cvsdist 362041
- initial build, bang on included specfile
cvsdist 362041
cvsdist 362041
* Fri Mar 15 2002  Tim Hockin <thockin@sun.com>
cvsdist 362041
  - Updated RPM spec with patch from sun for chkconfig on/off
cvsdist 362041
  - Add Changelog, make 'make rpm' use it.
cvsdist 362041
cvsdist 362041
* Wed Mar 13 2002  Tim Hockin <thockin@sun.com>
cvsdist 362041
  - Fixed logging bug - not appending to log (O_APPEND needed)
cvsdist 362041
  - Fix 'make install' to not need root access
cvsdist 362041
  - Fix RPM spec to not need root
cvsdist 362041
cvsdist 362041
* Thu Sep 6 2001 Tim Hockin <thockin@sun.com>
cvsdist 362041
  - 1.0.0
cvsdist 362041
cvsdist 362041
* Thu Aug 16 2001  Tim Hockin <thockin@sun.com>
cvsdist 362041
  - Added commandline options to actions
cvsdist 362041
cvsdist 362041
* Wed Aug 15 2001  Tim Hockin <thockin@sun.com>
cvsdist 362041
  - Added UNIX domain socket support
cvsdist 362041
  - Changed /etc/acpid.d to /etc/acpid/events
cvsdist 362041
cvsdist 362041
* Mon Aug 13 2001  Tim Hockin <thockin@sun.com>
cvsdist 362041
  - added changelog
cvsdist 362041
  - 0.99.1-1
cvsdist 362041