cvsdist 362041
Summary: ACPI Event Daemon
cvsdist 362041
Name: acpid
Jiri Skala 7ee6bf
Version: 2.0.4
Jiri Skala 7ee6bf
Release: 1%{?dist}
Tom Callaway d149db
License: GPLv2+
cvsdist 362041
Group: System Environment/Daemons
Jiri Skala 52da7a
Source: http://tedfelix.com/linux/acpid-%{version}.tar.gz
Zdenek Prikryl 26b0fd
Source1: acpid.init
Zdenek Prikryl 26b0fd
Source2: acpid.video.conf
Zdenek Prikryl 26b0fd
Source3: acpid.power.conf
Zdenek Prikryl 2b89a3
Source4: acpid.power.sh
Jiri Skala f4a9a9
Jiri Skala 52da7a
Patch1: acpid-2.0.2-makefile.patch
Jiri Skala f4a9a9
Phil Knirsch 1bedf4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 15e91f
ExclusiveArch: ia64 x86_64 %{ix86}
Jiri Skala 52da7a
URL: http://tedfelix.com/linux/acpid-netlink.html
Phil Knirsch 1bedf4
Requires(post): /sbin/chkconfig
Phil Knirsch 1bedf4
Requires(preun): /sbin/chkconfig
Phil Knirsch 1bedf4
Requires(preun): /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
Phil Knirsch 1bedf4
%setup -q
Jiri Skala 52da7a
Phil Knirsch 204db7
%patch1 -p1 -b .makefile
cvsdist 362041
cvsdist 362041
%build
Phil Knirsch 1bedf4
make %{?_smp_mflags}
cvsdist 362041
cvsdist 362041
cvsdist 362041
%install
cvsdist 362041
rm -rf $RPM_BUILD_ROOT
cvsdist 362041
mkdir -p $RPM_BUILD_ROOT
Jiri Skala 52da7a
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist 362041
Phil Knirsch 1bedf4
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
Phil Knirsch 1bedf4
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/acpi/actions
Phil Knirsch 1bedf4
chmod 755 $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
Jiri Skala 1b9d89
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/videoconf
Jiri Skala 1b9d89
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/powerconf
Zdenek Prikryl 2b89a3
install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/acpi/actions/power.sh
cvsdist 214c23
Phil Knirsch 1bedf4
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
Zdenek Prikryl 26b0fd
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/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)
Jiri Skala 52da7a
%doc COPYING README Changelog TODO TESTPLAN
Phil Knirsch 1bedf4
%dir %{_sysconfdir}/acpi
Phil Knirsch 1bedf4
%dir %{_sysconfdir}/acpi/events
Phil Knirsch 1bedf4
%dir %{_sysconfdir}/acpi/actions
Jiri Skala 1b9d89
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/videoconf
Jiri Skala 1b9d89
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/powerconf
Zdenek Prikryl 2b89a3
%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/acpi/actions/power.sh
Phil Knirsch 1bedf4
%{_bindir}/acpi_listen
Phil Knirsch 1bedf4
%{_sbindir}/acpid
Phil Knirsch 1bedf4
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/acpid
Phil Knirsch 1bedf4
%{_mandir}/man8/acpid.8.gz
Phil Knirsch 1bedf4
%{_mandir}/man8/acpi_listen.8.gz
cvsdist 362041
cvsdist 362041
Jiri Skala 1b9d89
%pre
Jiri Skala 1b9d89
if [ "$1" = "2" ]; then
Jiri Skala 1b9d89
	conflist=`ls %{_sysconfdir}/acpi/events/*.conf 2> /dev/null`
Jiri Skala 1b9d89
	RETCODE=$?
Jiri Skala 1b9d89
	if [ $RETCODE -eq 0 ]; then
Jiri Skala 1b9d89
		for i in $conflist; do
Jiri Skala 1b9d89
			rmdot=`echo $i | sed 's/.conf/conf/'`
Jiri Skala 1b9d89
	 		mv $i $rmdot
Jiri Skala 1b9d89
		done
Jiri Skala 1b9d89
	fi
Jiri Skala 1b9d89
fi
Jiri Skala 1b9d89
cvsdist 362041
%post
cvsdist 362041
/sbin/chkconfig --add acpid
cvsdist 362041
cvsdist 362041
%preun
cvsdist 362041
if [ "$1" = "0" ]; then
cvsdist 214c23
	/sbin/service acpid stop >/dev/null 2>&1
cvsdist 362041
	/sbin/chkconfig --del acpid
cvsdist 362041
fi
cvsdist 362041
cvsdist 214c23
%postun
cvsdist 214c23
if [ "$1" -ge "1" ]; then
cvsdist 214c23
	/sbin/service acpid condrestart >/dev/null 2>&1
cvsdist 214c23
fi
cvsdist 214c23
cvsdist 362041
%changelog
Jiri Skala 7ee6bf
* Wed May 05 2010 Jiri Skala <jskala@redhat.com> - 2.0.4-1
Jiri Skala 7ee6bf
- latest upstream version
Jiri Skala 7ee6bf
Jiri Skala 1b9d89
* Wed Mar 17  2010 Jiri Skala <jskala@redhat.com> - 2.0.3-2
Jiri Skala 1b9d89
- fixes #575320 - acpid fails to load any event config files
Jiri Skala c1228e
Jiri Skala 52da7a
* Thu Feb 25 2010 Jiri Skala <jskala@redhat.com> - 2.0.2-1
Jiri Skala 52da7a
- latest upstream version
Jiri Skala f4a9a9
- removed spare umask
Jiri Skala f4a9a9
- fixes missing headers
Jiri Skala 52da7a
Jesse Keating 8f9d3b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
Jesse Keating 8f9d3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 8f9d3b
Zdenek Prikryl 35acd3
* Thu Apr 23 2009 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.10-1
Zdenek Prikryl 35acd3
- Updated to version 1.0.10
Zdenek Prikryl 35acd3
Jesse Keating 402839
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
Jesse Keating 402839
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating 402839
Zdenek Prikryl 53ba65
* Wed Feb 04 2009 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.8-2
Zdenek Prikryl 53ba65
- power.sh works with KDE 4.* (#483417)
Zdenek Prikryl 53ba65
Zdenek Prikryl d650c8
* Tue Nov 11 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.8-1
Zdenek Prikryl d650c8
- Updated to version 1.0.8
Zdenek Prikryl d650c8
- power.sh works with ConsoleKit >= 0.3.0 (#470752)
Zdenek Prikryl d650c8
- Fixed conditions in power.sh, which look for power-managers (#470752)
Zdenek Prikryl d650c8
- Added check to init script
Zdenek Prikryl d650c8
Tom Callaway d149db
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.6-8
Tom Callaway d149db
- fix license tag
Tom Callaway d149db
Bill Nottingham 01090a
* Thu Apr 17 2008 Bill Nottingham <notting@redhat.com> - 1.0.6-7.fc9
Bill Nottingham 01090a
- adjust start/stop priority to not conflict with HAL (#442759)
Bill Nottingham 01090a
Zdenek Prikryl 52de11
* Thu Feb 14 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-6.fc9
Zdenek Prikryl 52de11
- Update of acpid-1.0.6-makefile.patch, it fix building with gcc 4.3
Zdenek Prikryl 52de11
Zdenek Prikryl 2b89a3
* Wed Jan 23 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-5.fc9
Zdenek Prikryl 2b89a3
- Fixed managing of power button (#361501)
Zdenek Prikryl 2b89a3
- Fixed power script to check for KDE power manager (#419331)
Zdenek Prikryl 2b89a3
Zdenek Prikryl 26b0fd
* Fri Nov 23 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-4.fc9
Zdenek Prikryl 26b0fd
- Removed old logrotate file
Zdenek Prikryl 26b0fd
- Fixed socket leak (#394431)
Zdenek Prikryl 26b0fd
- Fixed dumping useless info to log (#389581)
Zdenek Prikryl 26b0fd
Zdenek Prikryl ff642e
* Thu Oct 23 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-3.fc9
Zdenek Prikryl d3e227
- Silent initscript
Zdenek Prikryl 76c0dd
- Resolves: #345611
Zdenek Prikryl 76c0dd
Zdenek Prikryl 20bfb3
* Wed Sep 26 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-2.fc8
Zdenek Prikryl 20bfb3
- Fixed leak of a file descriptor
Zdenek Prikryl 20bfb3
- Resolves: #304761
Zdenek Prikryl 20bfb3
Zdenek Prikryl a3d7f9
* Tue Aug 07 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.6-1.fc8
Zdenek Prikryl e7f517
- Updated to version 1.0.6
Zdenek Prikryl e7f517
Zdenek Prikryl 20aacf
* Wed Jul 25 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.0.4-8.fc8
Zdenek Prikryl 20aacf
- Fixed init script to comply with LSB standard
Zdenek Prikryl 20aacf
- Resolves: #237754
Zdenek Prikryl 20aacf
Phil Knirsch 6db586
* Wed Feb 14 2007 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-7.fc7
Phil Knirsch 6db586
- Dropped /var/log/acpid ownership as per review (225237)
Phil Knirsch 6db586
Phil Knirsch 1bedf4
* Wed Feb 07 2007 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-6.fc7
Phil Knirsch 1bedf4
- Tons of specfile changes due to review (#225237)
Phil Knirsch 1bedf4
Phil Knirsch 204db7
* Tue Oct 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-5
Phil Knirsch 204db7
- Made acpid a PIE binary (#210016)
Phil Knirsch 204db7
Phil Knirsch efb245
* Thu Aug 24 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-4
Phil Knirsch efb245
- Made a better fix for the powerdown button which checks if g-p-m is running
Phil Knirsch 4d6c1c
- Don't install sample.conf anymore, not needed
Phil Knirsch efb245
Phil Knirsch 9e8331
* Thu Aug 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-3
Phil Knirsch 9e8331
- Disable the automatic shutdown -h via powerdown button by default due to
Phil Knirsch 9e8331
  conflicts with gnome-power-manager
Phil Knirsch 9e8331
Jesse Keating e5fadf
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.4-2.1
Jesse Keating e5fadf
- rebuild
Jesse Keating e5fadf
Phil Knirsch 107c11
* Wed Mar 01 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.4-2
Phil Knirsch 107c11
- Added video.conf file to turn on DPMS when opening the laptop lid. Disabled
Phil Knirsch 107c11
  by default.
Phil Knirsch 107c11
Jesse Keating f04719
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.4-1.2
Jesse Keating f04719
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating f04719
Jesse Keating ee93ec
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating ee93ec
- rebuilt
Jesse Keating ee93ec
Bill Nottingham 404e8d
* Wed Mar 16 2005 Bill Nottingham <notting@redhat.com> - 1.0.4-1
Bill Nottingham 404e8d
- update to 1.0.4
Bill Nottingham 404e8d
cvsdist 214c23
* Mon Aug  9 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3-2
cvsdist 214c23
- Update to 1.0.3 (fixes #128834)
cvsdist 214c23
- s/Copyright/License/
cvsdist 214c23
- Add logrotate config file (#110677, from Michal Jaegermann)
cvsdist 214c23
- Don't verify contents of /var/log/acpid (#125862)
cvsdist 214c23
- Use $RPM_OPT_FLAGS
cvsdist 214c23
- Fix and cleanup acpid-1.0.1-pm1.patch
cvsdist 214c23
- Add condrestart to %%postun
cvsdist 214c23
cvsdist 15e91f
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 15e91f
- rebuilt
cvsdist 15e91f
cvsdist a8b516
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a8b516
- rebuilt
cvsdist a8b516
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