auto-import changelog data from acpid-1.0.1-4.src.rpm
Wed Dec 11 2002 Bill Nottingham <notting@redhat.com> 1.0.1-4 - don't start if /proc/acpi/event isn't there Thu Nov 14 2002 Bill Nottingham <notting@redhat.com> 1.0.1-3 - build on more arches
This commit is contained in:
parent
3e52e9807a
commit
362041f794
84
acpid.init
Executable file
84
acpid.init
Executable file
@ -0,0 +1,84 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# /etc/rc.d/init.d/acpid
|
||||
#
|
||||
# Starts the acpi daemon
|
||||
#
|
||||
# chkconfig: 345 44 56
|
||||
# description: Listen and dispatch ACPI events from the kernel
|
||||
# processname: acpid
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
DAEMON=acpi
|
||||
PROGNAME=${DAEMON}d
|
||||
[ -x /usr/sbin/acpid ] || exit 0
|
||||
[ -f /proc/acpi/event ] || exit 0
|
||||
|
||||
RETVAL=0
|
||||
|
||||
#
|
||||
# See how we were called.
|
||||
#
|
||||
|
||||
start() {
|
||||
# Check if it is already running
|
||||
if [ ! -f /var/lock/subsys/$PROGNAME ]; then
|
||||
echo -n $"Starting acpi daemon: "
|
||||
modprobe button > /dev/null 2>&1
|
||||
daemon /usr/sbin/$PROGNAME
|
||||
RETVAL=$?
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$PROGNAME
|
||||
echo
|
||||
fi
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo -n "Stopping $DAEMON daemon: "
|
||||
killproc /usr/sbin/$PROGNAME
|
||||
RETVAL=$?
|
||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROGNAME
|
||||
echo
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
reload() {
|
||||
trap "" SIGHUP
|
||||
killall -HUP $PROGNAME
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
reload)
|
||||
reload
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
condrestart)
|
||||
if [ -f /var/lock/subsys/$PROGNAME ]; then
|
||||
restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
status $PROGNAME
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
105
acpid.spec
Normal file
105
acpid.spec
Normal file
@ -0,0 +1,105 @@
|
||||
Summary: ACPI Event Daemon
|
||||
Name: acpid
|
||||
Version: 1.0.1
|
||||
Release: 4
|
||||
Copyright: GPL
|
||||
Group: System Environment/Daemons
|
||||
Source: acpid-1.0.1.tar.gz
|
||||
Source2: acpid.init
|
||||
Patch: acpid-1.0.1-pm1.diff
|
||||
Patch2: acpid-1.0.1-conf.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
ExclusiveArch: ia64 i386 x86_64
|
||||
URL: http://acpid.sourceforge.net
|
||||
Prereq: /sbin/chkconfig, /sbin/service
|
||||
|
||||
|
||||
%description
|
||||
acpid is a daemon that dispatches ACPI events to user-space programs.
|
||||
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%patch -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT
|
||||
make install INSTPREFIX=$RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/acpi/events
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/acpi/actions
|
||||
chmod 755 $RPM_BUILD_ROOT/etc/acpi/events
|
||||
install -m 644 samples/sample.conf $RPM_BUILD_ROOT/etc/acpi/events
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/var/log
|
||||
touch $RPM_BUILD_ROOT/var/log/acpid
|
||||
chmod 640 $RPM_BUILD_ROOT/var/log/acpid
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
|
||||
chmod 755 $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir /etc/acpi
|
||||
%dir /etc/acpi/events
|
||||
%dir /etc/acpi/actions
|
||||
%attr(0644,root,root) /etc/acpi/events/sample.conf
|
||||
/var/log/acpid
|
||||
/usr/sbin/acpid
|
||||
%attr(0755,root,root) /etc/rc.d/init.d/acpid
|
||||
/usr/share/man/man8/acpid.8.gz
|
||||
|
||||
|
||||
%post
|
||||
/sbin/chkconfig --add acpid
|
||||
|
||||
%preun
|
||||
if [ "$1" = "0" ]; then
|
||||
service acpid stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del acpid
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Wed Dec 11 2002 Bill Nottingham <notting@redhat.com> 1.0.1-4
|
||||
- don't start if /proc/acpi/event isn't there
|
||||
|
||||
* Thu Nov 14 2002 Bill Nottingham <notting@redhat.com> 1.0.1-3
|
||||
- build on more arches
|
||||
|
||||
* Mon Aug 26 2002 Bill Nottingham <notting@redhat.com> 1.0.1-2
|
||||
- tweak default config to run shutdown -h now on a power button event
|
||||
|
||||
* Thu Aug 22 2002 Bill Nottingham <notting@redhat.com> 1.0.1-1
|
||||
- initial build, bang on included specfile
|
||||
|
||||
* Fri Mar 15 2002 Tim Hockin <thockin@sun.com>
|
||||
- Updated RPM spec with patch from sun for chkconfig on/off
|
||||
- Add Changelog, make 'make rpm' use it.
|
||||
|
||||
* Wed Mar 13 2002 Tim Hockin <thockin@sun.com>
|
||||
- Fixed logging bug - not appending to log (O_APPEND needed)
|
||||
- Fix 'make install' to not need root access
|
||||
- Fix RPM spec to not need root
|
||||
|
||||
* Thu Sep 6 2001 Tim Hockin <thockin@sun.com>
|
||||
- 1.0.0
|
||||
|
||||
* Thu Aug 16 2001 Tim Hockin <thockin@sun.com>
|
||||
- Added commandline options to actions
|
||||
|
||||
* Wed Aug 15 2001 Tim Hockin <thockin@sun.com>
|
||||
- Added UNIX domain socket support
|
||||
- Changed /etc/acpid.d to /etc/acpid/events
|
||||
|
||||
* Mon Aug 13 2001 Tim Hockin <thockin@sun.com>
|
||||
- added changelog
|
||||
- 0.99.1-1
|
||||
|
Loading…
Reference in New Issue
Block a user