tstellar / rpms / acpid

Forked from rpms/acpid 3 years ago
Clone
cvsdist 362041f
Summary: ACPI Event Daemon
cvsdist 362041f
Name: acpid
404e8d6
Version: 1.0.4
9e83312
Release: 3
cvsdist 214c238
License: GPL
cvsdist 362041f
Group: System Environment/Daemons
cvsdist b5f5793
Source: http://prdownloads.sourceforge.net/acpid/acpid-%{version}.tar.gz
cvsdist 214c238
Source1: acpid.logrotate
cvsdist 362041f
Source2: acpid.init
107c11f
Source3: acpid.video.conf
cvsdist 214c238
Patch2: acpid-1.0.3-makefile.patch
e9b83da
Patch3: acpid-1.0.4-warning.patch
cvsdist 362041f
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist 15e91f7
ExclusiveArch: ia64 x86_64 %{ix86}
cvsdist b5f5793
URL: http://acpid.sourceforge.net/
cvsdist 362041f
Prereq: /sbin/chkconfig, /sbin/service
cvsdist 362041f
cvsdist 362041f
cvsdist 362041f
%description
cvsdist 362041f
acpid is a daemon that dispatches ACPI events to user-space programs.
cvsdist 362041f
cvsdist 362041f
cvsdist 362041f
%prep
cvsdist 362041f
%setup
e9b83da
%patch2 -p1 -b .makefile
e9b83da
%patch3 -p1 -b .warning
cvsdist 362041f
cvsdist 362041f
%build
cvsdist 362041f
make
cvsdist 362041f
cvsdist 362041f
cvsdist 362041f
%install
cvsdist 362041f
rm -rf $RPM_BUILD_ROOT
cvsdist 362041f
mkdir -p $RPM_BUILD_ROOT
cvsdist 362041f
make install INSTPREFIX=$RPM_BUILD_ROOT
cvsdist 362041f
cvsdist 362041f
mkdir -p $RPM_BUILD_ROOT/etc/acpi/events
cvsdist 362041f
mkdir -p $RPM_BUILD_ROOT/etc/acpi/actions
cvsdist 362041f
chmod 755 $RPM_BUILD_ROOT/etc/acpi/events
cvsdist 362041f
install -m 644 samples/sample.conf $RPM_BUILD_ROOT/etc/acpi/events
107c11f
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/acpi/events/video.conf
cvsdist 362041f
cvsdist 362041f
mkdir -p $RPM_BUILD_ROOT/var/log
cvsdist 362041f
touch $RPM_BUILD_ROOT/var/log/acpid
cvsdist 362041f
chmod 640 $RPM_BUILD_ROOT/var/log/acpid
cvsdist 362041f
cvsdist 214c238
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
cvsdist 214c238
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/acpid
cvsdist 214c238
cvsdist 362041f
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cvsdist 362041f
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
cvsdist 362041f
cvsdist 362041f
cvsdist b5f5793
%clean
cvsdist b5f5793
rm -rf $RPM_BUILD_ROOT
cvsdist b5f5793
cvsdist b5f5793
cvsdist 362041f
%files
cvsdist 362041f
%defattr(-,root,root)
cvsdist 362041f
%dir /etc/acpi
cvsdist 362041f
%dir /etc/acpi/events
cvsdist 362041f
%dir /etc/acpi/actions
cvsdist b5f5793
%config %attr(0644,root,root) /etc/acpi/events/sample.conf
107c11f
%config %attr(0644,root,root) /etc/acpi/events/video.conf
cvsdist 214c238
%config /etc/logrotate.d/acpid
cvsdist 214c238
%verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/log/acpid
cvsdist 214c238
/usr/bin/acpi_listen
cvsdist 362041f
/usr/sbin/acpid
cvsdist 362041f
%attr(0755,root,root) /etc/rc.d/init.d/acpid
cvsdist 362041f
/usr/share/man/man8/acpid.8.gz
cvsdist 214c238
/usr/share/man/man8/acpi_listen.8.gz
cvsdist 362041f
cvsdist 362041f
cvsdist 362041f
%post
cvsdist 362041f
/sbin/chkconfig --add acpid
cvsdist 362041f
cvsdist 362041f
%preun
cvsdist 362041f
if [ "$1" = "0" ]; then
cvsdist 214c238
	/sbin/service acpid stop >/dev/null 2>&1
cvsdist 362041f
	/sbin/chkconfig --del acpid
cvsdist 362041f
fi
cvsdist 362041f
cvsdist 214c238
%postun
cvsdist 214c238
if [ "$1" -ge "1" ]; then
cvsdist 214c238
	/sbin/service acpid condrestart >/dev/null 2>&1
cvsdist 214c238
fi
cvsdist 214c238
cvsdist 362041f
%changelog
9e83312
* Thu Aug 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-3
9e83312
- Disable the automatic shutdown -h via powerdown button by default due to
9e83312
  conflicts with gnome-power-manager
9e83312
e5fadf0
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.4-2.1
e5fadf0
- rebuild
e5fadf0
107c11f
* Wed Mar 01 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-2
107c11f
- Added video.conf file to turn on DPMS when opening the laptop lid. Disabled
107c11f
  by default.
107c11f
f047198
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.4-1.2
f047198
- rebuilt for new gcc4.1 snapshot and glibc changes
f047198
ee93ecd
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ee93ecd
- rebuilt
ee93ecd
404e8d6
* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> - 1.0.4-1
404e8d6
- update to 1.0.4
404e8d6
cvsdist 214c238
* Mon Aug  9 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3-2
cvsdist 214c238
- Update to 1.0.3 (fixes #128834)
cvsdist 214c238
- s/Copyright/License/
cvsdist 214c238
- Add logrotate config file (#110677, from Michal Jaegermann)
cvsdist 214c238
- Don't verify contents of /var/log/acpid (#125862)
cvsdist 214c238
- Use $RPM_OPT_FLAGS
cvsdist 214c238
- Fix and cleanup acpid-1.0.1-pm1.patch
cvsdist 214c238
- Add condrestart to %%postun
cvsdist 214c238
cvsdist 15e91f7
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 15e91f7
- rebuilt
cvsdist 15e91f7
cvsdist a8b5163
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a8b5163
- rebuilt
cvsdist a8b5163
cvsdist b5f5793
* Wed Oct 22 2003  Bill Nottingham <notting@redhat.com> 1.0.2-5
cvsdist b5f5793
- fix handling of sample.conf (#107160)
cvsdist b5f5793
- mark for translations (#107459)
cvsdist b5f5793
cvsdist b5f5793
* Sun Oct 19 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist b5f5793
- add %%clean specfile target
cvsdist b5f5793
cvsdist b5f5793
* Wed Oct  1 2003  Bill Nottingham <notting@redhat.com> 1.0.2-3
cvsdist b5f5793
- re-enable x86
cvsdist b5f5793
- don't load the button module
cvsdist b5f5793
cvsdist b5f5793
* Thu Aug  7 2003  Bill Nottingham <notting@redhat.com> 1.0.2-2
cvsdist b5f5793
- no x86 for now
cvsdist b5f5793
cvsdist b5f5793
* Mon Jul  7 2003  Bill Nottingham <notting@redhat.com> 1.0.2-1
cvsdist b5f5793
- update to 1.0.2
cvsdist b5f5793
cvsdist 362041f
* Wed Dec 11 2002  Bill Nottingham <notting@redhat.com> 1.0.1-4
cvsdist 362041f
- don't start if /proc/acpi/event isn't there
cvsdist 362041f
cvsdist 362041f
* Thu Nov 14 2002  Bill Nottingham <notting@redhat.com> 1.0.1-3
cvsdist 362041f
- build on more arches
cvsdist 362041f
cvsdist 362041f
* Mon Aug 26 2002  Bill Nottingham <notting@redhat.com> 1.0.1-2
cvsdist 362041f
- tweak default config to run shutdown -h now on a power button event
cvsdist 362041f
cvsdist 362041f
* Thu Aug 22 2002  Bill Nottingham <notting@redhat.com> 1.0.1-1
cvsdist 362041f
- initial build, bang on included specfile
cvsdist 362041f
cvsdist 362041f
* Fri Mar 15 2002  Tim Hockin <thockin@sun.com>
cvsdist 362041f
  - Updated RPM spec with patch from sun for chkconfig on/off
cvsdist 362041f
  - Add Changelog, make 'make rpm' use it.
cvsdist 362041f
cvsdist 362041f
* Wed Mar 13 2002  Tim Hockin <thockin@sun.com>
cvsdist 362041f
  - Fixed logging bug - not appending to log (O_APPEND needed)
cvsdist 362041f
  - Fix 'make install' to not need root access
cvsdist 362041f
  - Fix RPM spec to not need root
cvsdist 362041f
cvsdist 362041f
* Thu Sep 6 2001 Tim Hockin <thockin@sun.com>
cvsdist 362041f
  - 1.0.0
cvsdist 362041f
cvsdist 362041f
* Thu Aug 16 2001  Tim Hockin <thockin@sun.com>
cvsdist 362041f
  - Added commandline options to actions
cvsdist 362041f
cvsdist 362041f
* Wed Aug 15 2001  Tim Hockin <thockin@sun.com>
cvsdist 362041f
  - Added UNIX domain socket support
cvsdist 362041f
  - Changed /etc/acpid.d to /etc/acpid/events
cvsdist 362041f
cvsdist 362041f
* Mon Aug 13 2001  Tim Hockin <thockin@sun.com>
cvsdist 362041f
  - added changelog
cvsdist 362041f
  - 0.99.1-1
cvsdist 362041f