SPECS: fnfx.spec

Bartosz Świątek swiatek w informatik.hu-berlin.de
Czw, 20 Kwi 2006, 15:28:24 CEST


Witam,

Ponawiam prośbę o commit dla tego speca oraz jego inita w sources.
Zmiany:
- fnfx w /usr/bin bo tam powinien być, jako że jest to narzędzie dla usera
- fnfx.init ustandaryzowany wg /etc/rc.d/init.d/functions, a nie jakiś tam 
gprintf.

Pozdrawiam,
Bartosz Świątek
-------------- następna część ---------
--- SOURCES/fnfx.init	2006-03-14 17:26:12.145151744 +0100
+++ SOURCES/fnfx-shad.init	2006-03-14 17:25:07.841927320 +0100
@@ -20,18 +20,16 @@
 RETVAL=0
 
 start() {
-	gprintf "Starting up Toshiba function key daemon (fnfxd): "
+	msg_starting "Toshiba function key daemon (fnfxd): "
 	daemon /usr/sbin/fnfxd
 	touch /var/lock/subsys/fnfxd
-	echo
 }
 
 stop() {
-	gprintf "Shutting down Toshiba function key daemon (fnfxd): "
+	msg_stopping "Toshiba function key daemon (fnfxd): "
 	killproc fnfxd
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fnfxd
-	echo
 }
 
 dostatus() {
@@ -67,7 +65,7 @@
 	condrestart
 	;;
   *)
-	gprintf "Usage: $0 {start|stop|status|restart|reload|condrestart}\n"
+	msg_usage "$0 {start|stop|status|restart|reload|condrestart}"
 	exit 1
 esac
 
-------------- następna część ---------
--- SPECS/fnfx.spec	2005-12-14 13:59:23.636645800 +0100
+++ SPECS/fnfx-shad.spec	2005-12-14 13:56:25.225768376 +0100
@@ -3,7 +3,7 @@
 Summary(pl):	Narzędzie do obsługi klawisza funkcyjnego w laptopach firmy Toshiba
 Name:		fnfx
 Version:	0.3
-Release:	0.1
+Release:	1
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://dl.sourceforge.net/fnfx/%{name}-%{version}.tar.gz
@@ -43,9 +43,10 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx}
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx,%{_bindir}}
 
-install src/{fnfx,fnfxd} $RPM_BUILD_ROOT%{_sbindir}
+install src/fnfxd $RPM_BUILD_ROOT%{_sbindir}
+install src/fnfx $RPM_BUILD_ROOT%{_bindir}
 install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT/etc/fnfx
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fnfx
 
@@ -71,7 +72,8 @@
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/fnfxd
+%attr(755,root,root) %{_bindir}/fnfx
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
 %attr(754,root,root)  /etc/rc.d/init.d/%{name}
 


Więcej informacji o liście dyskusyjnej pld-devel-pl