rpms/fnfx/devel fnfx-fnfxd, NONE, 1.1 fnfx.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Andreas Bierfert (awjb) fedora-extras-commits at redhat.com
Wed Aug 24 07:55:36 UTC 2005


Author: awjb

Update of /cvs/extras/rpms/fnfx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11017/devel

Modified Files:
	.cvsignore sources 
Added Files:
	fnfx-fnfxd fnfx.spec 
Log Message:
auto-import fnfx-0.3-4 on branch devel from fnfx-0.3-4.src.rpm


--- NEW FILE fnfx-fnfxd ---
#!/bin/bash
#
# fnfxd        Make the multimedia buttons and Fn-Key combinations
#              work on Toshiba laptops.
#
# chkconfig: 2345 10 90
# description: Make the multimedia buttons and Fn-Key combinations
#              work on Toshiba laptops.

# Source function library.
. /etc/init.d/functions

prog=fnfxd

RETVAL=0

start() {
	echo -n $"Starting $prog: "
	if [ ! -d /proc/acpi/toshiba -o ! -f /proc/acpi/toshiba/keys ]; then
		/sbin/modprobe -s toshiba_acpi
	fi
	daemon $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
	echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	;;
  condrestart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start
	fi
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	RETVAL=1
esac

exit $RETVAL


--- NEW FILE fnfx.spec ---
Name:           fnfx
Version:        0.3
Release:        4
Summary:        Hotkey functions for Toshiba laptops

Group:          System Environment/Daemons
License:        GPL
URL:            http://fnfx.sourceforge.net
Source0:        http://dl.sf.net/fnfx/fnfx-%{version}.tar.gz
Source1:        fnfx-fnfxd
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires(post):  /sbin/chkconfig 
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service      

%description
FnFX enables owners of Toshiba laptops to change the LCD brightness,
control, the internal fan and use the special keys on their keyboard
(Fn-x combinations, hot-keys). The internal functions will give the
possibility to map the Fn-Keys to functions like volume up/down, mute,
suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These
functions heavily depend on the system and/or kernel configuration.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%{__mkdir_p} $RPM_BUILD_ROOT%{_initrddir}
%{__install} -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/fnfxd

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/chkconfig --add fnfxd

%preun
if [ $1 -eq 0 ]; then
    /sbin/service fnfxd stop > /dev/null 2>&1
    /sbin/chkconfig --del fnfxd
fi

%postun
if [ $1 -ge 1 ]; then
    /sbin/service fnfxd condrestart &>/dev/null
fi

%files
%defattr(-,root,root,0755)
%doc AUTHORS ChangeLog COPYING README etc/fnfxrc_example
%{_bindir}/fnfx
%{_sbindir}/fnfxd
%dir %{_sysconfdir}/fnfx/
%config(noreplace)%{_sysconfdir}/fnfx/keymap
%config(noreplace) %{_sysconfdir}/fnfx/fnfxd.conf
%{_initrddir}/fnfxd
%exclude %{_sysconfdir}/fnfx/fnfxrc_example

%changelog
* Tue Aug 23 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
0.3-4
- new init from Matthias Saou

* Sat Aug 20 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
0.3-3
- more cleanups

* Fri Jun 24 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
0.3-2
- added some suggestions from Jason L Tibbitts III

* Thu Jun 23 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
0.3-1
- Initial Release (based on fc3 version from atrpms)


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/fnfx/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	24 Aug 2005 07:54:38 -0000	1.1
+++ .cvsignore	24 Aug 2005 07:55:33 -0000	1.2
@@ -0,0 +1 @@
+fnfx-0.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/fnfx/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Aug 2005 07:54:38 -0000	1.1
+++ sources	24 Aug 2005 07:55:33 -0000	1.2
@@ -0,0 +1 @@
+2487730494a8ff86d83d9cf7e6a67325  fnfx-0.3.tar.gz




More information about the fedora-extras-commits mailing list