Witam,
Tego zdaje się nie ma w PLD jeszcze.
Buduje się ładnie na niedystrybucyjnym jądrze, czy ktoś mógłby sprawdzić jak
to wygląda na dystrybucyjnym jądrze.
Za wszelkie uwagi będę wdzięczny, natomiast jeśli takowych nie ma, to prosze o
dodanie speca wraz z patchem do cvsu.
Pozdrawiam,
Bartosz Świątek
# $Revision: 1.0 $, $Date: 2005/12/29 03:41:48 $
#
# TODO:
# find real SOURCE0
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
#
Summary: FastTrak Driver for Linux
Summary(pl): Sterownik FastTrak dla Linuksa
Name: kernel-fasttrak-partial
# to chyba poprawna wersja
Version: 2.06
%define _rel 1
Release: %{_rel}
License: GPL
Group: Base/Kernel
Source0: http://teksty.info/~shadzik/partialb32.tgz
# Source0-md5: 3b81a66284baa30e9a36f36138152acc
Patch0: fasttrak-cfg_linux.patch
URL: http://www.promise.com/
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
BuildRequires: rpmbuild(macros) >= 1.153
Requires(post,postun): /sbin/depmod
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Fast Trak driver for linux 2.6. This package contains the
linux kernel driver for fasttrak.
%description -l pl
Sterownik Fast Trak dla linuksa 2.6. Paczka zawiera sterownik
dla jądra linuksa.
%prep
%setup -q -n partial
%patch0 -p0
%build
rm -rf $RPM_BUILD_ROOT
#mkdir -p built/{nondist,smp,up}
for cfg in %{?with_dist_kernel:config-up}%{!?with_dist_kernel:.config}; do
if [ ! -r "%{_kernelsrcdir}/$cfg" ]; then
exit 1
fi
# rm -rf include
# install -d include/{linux,config}
# ln -sf %{_kernelsrcdir}/config-$cfg .config
# ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h
include/linux/autoconf.h
# ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
# %if %{without dist_kernel}
# ln -sf %{_kernelsrcdir}/scripts
# %endif
# touch include/config/MARKER
%{__make} clean
%{__make} DRIVER_SRC_DIR=`pwd`
# mv *.ko built/$cfg
done
%install
rm -rf $RPM_BUILD_ROOT
#cd built
install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/scsi
install *.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/scsi
%clean
rm -rf $RPM_BUILD_ROOT
%post
%depmod %{_kernel_ver}
%postun
%depmod %{_kernel_ver}
%files
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/kernel/drivers/scsi/FastTrak.ko*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[EMAIL PROTECTED]>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log: fasttrack.spec,v $
--- linux/cfg_linux.h 2005-03-08 03:02:07.000000000 +0100
+++ linux/cfg_linux.h-shad 2006-03-23 21:19:21.615296792 +0100
@@ -16,7 +16,7 @@
* normalize VDEBUG. So please define VDEBUG properly according to your compiler
*/
-//#define VDEBUG 1
+#define VDEBUG 1
#if !defined(BUILD_AS_RAID_DRIVER)
#define JBOD_MODE_ONLY
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl