[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Addling in linux-wlan-ng to extras



On Mon, 2005-05-23 at 16:18 +0100, Paul Johnson wrote:
> Hi,
> 
> >From what I can see, there shouldn't be a problem adding linux-wlan-ng
> into extras and it would certainly be useful. The only problem I can see
> is that due to the configuration options, plx, usb, pcmcia and pci
> builds are able to be made (or indeed, any combination of them) which
> may mean different rpms for each driver and the configuration script may
> be problematic.
> 
> Any thoughts on this?

Unfortunately no concrete mechanism has been decided on for providing
modules in Extras, but I have my own format/specification if anyone
wants to look. It uses a chroot install of the kernel-devel packages
(which needs some massaging unfortunately due to build being an absolute
link).

-- 
Ignacio Vazquez-Abrams <ivazquez ivazquez net>
http://fedora.ivazquez.net/

gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
%{!?kernelroot: %define kernelroot "" }
%{!?kernelversion: %define kernelversion %(uname -r) }
Name:           kernel-module-qla4xxx
Version:        5.00.02
Release:        2
Summary:        Driver for QLogic QLA4xxx iSCSI cards

Group:          System Environment/Base
License:        GPL
URL:            http://www.qlogic.com/
Source0:        http://download.qlogic.com/drivers/27588/qla4xxx-5.00.02.tar.gz
Patch:          qla4xxx-5.00.02-inline.patch
Patch1:         qla4xxx-5.00.02-build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExclusiveArch:  i586 i686 x86_64

%description
This package contains the driver for QLogic's QLA4xxx series of iSCSI cards.

%package %{kernelversion}
Summary:        Driver for QLogic QLA4xxx iSCSI cards
Group:          System Environment/Base
Provides:       %{name} = %{version}

%description %{kernelversion}
This package contains the driver for QLogic's QLA4xxx series of iSCSI cards for
kernel %{kernelversion} for the %{_target_cpu} architecture.

%prep
%setup -q -n 5.00.02
chmod u+x extras
%patch -p1 -b .inline
%patch1 -p1 -b .build

%build
K_LIBS=%{kernelroot}/lib/modules/%{kernelversion} extras/build.sh

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/lib/modules/%{kernelversion}/kernel/drivers/scsi/qla4xxx
install -m 0644 qla4xxx.ko $RPM_BUILD_ROOT/lib/modules/%{kernelversion}/kernel/drivers/scsi/qla4xxx

%clean
rm -rf $RPM_BUILD_ROOT

%post %{kernelversion}
depmod -ae

%postun %{kernelversion}
if [ $1 -eq 0 ]; then
    depmod -aq
fi

%files %{kernelversion}
%defattr(-,root,root,-)
%doc ../release.txt revision.notes
/lib/modules/%{kernelversion}/kernel/drivers/scsi/qla4xxx/qla4xxx.ko

%changelog
* Sun May 22 2005 Ignacio Vazquez-Abrams <ivazquez ivazquez net> 5.00.02-2
- Fixed small %%build error
- Fixed typos

* Fri May 20 2005 Ignacio Vazquez-Abrams <ivazquez ivazquez net> 5.00.02-1
- Initial RPM release

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]