SPECS: em8300.spec 1.4->1.5 [rrw]

Marcin Bohosiewicz marcus w kernel.pl
Wto, 3 Wrz 2002, 09:40:03 CEST


On Thu, 11 Jul 2002, PLD CVS wrote:

1. Brak budowania modulow UP/SMP (patrz np ians.spec)
i podpakietow kernel-*, przystosowania do uzywania z kernelem spoza PLD. 
2. Czy initscript to najlepsza metoda ładowania modułow do kernela?
Nie da sie tego poprzez /etc/modules.conf ładowac dynamicznie?

M.

> Module name:	SPECS
> Changes by:	rrw	02/07/11 02:55:04
> 
> Modified files:
> 	em8300.spec
> 
> Log message:
> - added initscripts to load apropriate modules;


> - tested and found working as advertised;
> - release 1;
> 
> Index: em8300.spec
> ===================================================================
> RCS file: /cvsroot/SPECS/em8300.spec,v
> diff -d -u -r1.4 -r1.5
> --- em8300.spec	2002/07/04 00:10:55	1.4
> +++ em8300.spec	2002/07/11 00:55:04	1.5
> @@ -3,10 +3,12 @@
>  Summary(pl):	sterowniki dla dxr3 i h+
>  Name:		em8300
>  Version:	0.12.0
> -Release:	0
> +Release:	1
>  License:	GPL
>  Group:		Base/Kernel
>  Source0:	http://dxr3.sourceforge.net/download/%{name}-%{version}.tar.gz
> +Source1:	%{name}.init
> +Source2:	%{name}.sysconf
>  URL:		http://dxr3.sourceforge.net/
>  BuildRequires:	autoconf
>  BuildRequires:	automake
> @@ -14,6 +16,7 @@
>  BuildRequires:	gtk+-devel
>  Requires(post,postun):/sbin/ldconfig
>  Requires(post,postun):/sbin/depmod
> +Requires(post,preun):/sbin/chkconfig
>  Provides:	dxr3
>  BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
>  
> @@ -80,8 +83,7 @@
>  find $RPM_BUILD_ROOT/lib/modules -name "*.o" -print | sed s,$RPM_BUILD_ROOT,, >../mods.lst
>  mv INSTALL INSTALL.modules
>  
> -install -d $RPM_BUILD_ROOT/%{_datadir}/misc
> -install em8300.uc $RPM_BUILD_ROOT/%{_datadir}/misc
> +install -D em8300.uc $RPM_BUILD_ROOT/%{_datadir}/misc/em8300.uc
>  
>  cd $RPM_BUILD_ROOT
>  install -d ./%{_xbindir}
> @@ -89,6 +91,8 @@
>  
>  cd $RPM_BUILD_ROOT%{_datadir}
>  install -m 755 em8300/microcode_upload.pl ../bin/em8300_microcode_upload
> +install -D %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/%{name}
> +install -D %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name}
>  
>  %clean
>  rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
> @@ -100,7 +104,21 @@
>  %post
>  /sbin/ldconfig
>  /sbin/depmod -a
> +/sbin/chkconfig --add %{name}
> +if [ -f /var/lock/subsys/%{name} ]; then
> +	/etc/rc.d/init.d/%{name} restart 1>&2
> +else
> +	echo "Run \"/etc/rc.d/init.d/%{name} start\" to load %{name} modules."
> +fi
>  
> +%preun
> +if [ "$1" = "0" ]; then
> +	if [ -f /var/lock/subsys/%{name} ]; then
> +		/etc/rc.d/init.d/%{name} stop 1>&2
> +	fi
> +	/sbin/chkconfig --del %{name}
> +fi
> +
>  %files -f mods.lst
>  %defattr(644,root,root,755)
>  %doc AUTHORS ChangeLog COPYING README
> @@ -108,6 +126,8 @@
>  %attr(755,root,root) %{_bindir}/*
>  %attr(755,root,root) %{_datadir}/misc/*
>  %attr(755,root,root) %{_libdir}/lib*.so.*
> +%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
> +%attr(755,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/%{name}
>  
>  %files devel
>  %defattr(644,root,root,755)
> @@ -128,6 +148,11 @@
>  All persons listed below can be reached at <cvs_login>@pld.org.pl
>  
>  $Log$
> +Revision 1.5  2002/07/11 00:55:04  rrw
> +- added initscripts to load apropriate modules;
> +- tested and found working as advertised;
> +- release 1;
> +
>  Revision 1.4  2002/07/04 00:10:55  kloczek
>  - removed kernel-headers from BuildRequires and some cosmetics and simplifications.
>  
> 


-- 
-| == Marcin Bohosiewicz - MB8042-RIPE - marcus w kernel.pl	== |-
-| == tel. +48 601 485097 - PLD Team   - marcus w pld.org.pl      == |-
-| == http://www.kernel.pl/ -          ftp://ftp.kernel.pl/     == |-
-| == PLUG - Komisja Rewizyjna  -      http://www.linux.org.pl/ == |-



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