2024-01-06 07:34:31 +01:00
|
|
|
Name: ndiswrapper
|
|
|
|
Epoch: 5
|
2024-01-06 07:34:32 +01:00
|
|
|
Version: 1.61
|
2024-01-06 07:34:31 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Ndis driver wrapper for the Linux kernel
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://ndiswrapper.sourceforge.net/
|
|
|
|
Source: http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-%{version}.tar.gz
|
|
|
|
Patch0: ndiswrapper-1.58-kernel-3.10.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires(post):dkms
|
|
|
|
Obsoletes: kernel-mamba-64GB-nongpl-ndiswrapper
|
|
|
|
Obsoletes: kernel-mamba-64GB-rt-nongpl-ndiswrapper
|
|
|
|
Obsoletes: kernel-mamba-nongpl-ndiswrapper
|
|
|
|
Obsoletes: kernel-mamba-rt-nongpl-ndiswrapper
|
|
|
|
Provides: kernelwireless
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Some vendors do not release specifications of the hardware or provide a linux driver for their wireless network cards.
|
|
|
|
This project implements Windows kernel API and NDIS (Network Driver Interface Specification) API within Linux kernel.
|
|
|
|
A Windows driver for wireless network card is then linked to this implementation so that the driver runs natively, as though it is in Windows, without binary emulation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make -C utils
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
# build/install ndiswrapper driver and tools
|
|
|
|
# FIXME:
|
|
|
|
# WARNING: This kernel seems to use 4K stack size option (CONFIG_4KSTACKS);
|
|
|
|
# any Windows drivers will not work with this option enabled.
|
|
|
|
# Disable CONFIG_4KSTACKS option, recompile and install kernel
|
|
|
|
|
|
|
|
%makeinstall -C utils
|
|
|
|
#% makeinstall \
|
|
|
|
# %{BUILD_OPTS} \
|
|
|
|
# DIST_DESTDIR=%{buildroot} \
|
|
|
|
# KVERS=%{kernel_version}%{?KERNEL_TARGET} \
|
|
|
|
# KBUILD=%{_prefix}/src/linux-%{kernel_version}%{?KERNEL_TARGET} \
|
|
|
|
# INST_DIR=/lib/modules/%{kernel_version}%{?KERNEL_TARGET}/kernel/drivers/net/wireless
|
|
|
|
|
|
|
|
# dkms
|
|
|
|
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
|
|
|
|
cp -a driver/* %{buildroot}%{_prefix}/src/%{name}-%{version}
|
|
|
|
cat > %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf << _EOF
|
|
|
|
PACKAGE_NAME=%{name}
|
|
|
|
PACKAGE_VERSION=%{version}
|
|
|
|
MAKE="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules"
|
|
|
|
CLEAN="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean"
|
|
|
|
BUILT_MODULE_NAME=\${PACKAGE_NAME}
|
|
|
|
BUILT_MODULE_LOCATION=.
|
|
|
|
DEST_MODULE_LOCATION=/extra/drivers/net/
|
|
|
|
REMAKE_INITRD=no
|
|
|
|
AUTOINSTALL=yes
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
install -D -m 644 ndiswrapper.8 %{buildroot}%{_mandir}/man8/ndiswrapper.8
|
|
|
|
install -D -m 644 loadndisdriver.8 %{buildroot}%{_mandir}/man8/loadndisdriver.8
|
|
|
|
|
|
|
|
#install -m 0755 -d %{buildroot}%{_sysconfdir}/modules.d
|
|
|
|
#echo "ndiswrapper" > %{buildroot}%{_sysconfdir}/modules.d/ndiswrapper.conf
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%preun
|
|
|
|
dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade
|
|
|
|
:
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
# clean any legacy alternatives symlink
|
|
|
|
dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade
|
|
|
|
dkms add -q -m %{name} -v %{version}
|
|
|
|
dkms install -q -m %{name} -v %{version}
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_prefix}/src/%{name}-%{version}
|
|
|
|
%{_prefix}/src/%{name}-%{version}/*
|
|
|
|
/sbin/loadndisdriver
|
|
|
|
%{_sbindir}/ndiswrapper
|
|
|
|
%{_sbindir}/ndiswrapper-buginfo
|
|
|
|
%{_mandir}/man8/loadndisdriver.8*
|
|
|
|
%{_mandir}/man8/ndiswrapper.8*
|
|
|
|
%doc AUTHORS
|
|
|
|
# ChangeLog README
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:34:32 +01:00
|
|
|
* Sun Dec 30 2018 Automatic Build System <autodist@mambasoft.it> 1.61-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:34:31 +01:00
|
|
|
* Sun Dec 01 2013 Automatic Build System <autodist@mambasoft.it> 1.59-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.58-1mamba
|
|
|
|
- update to 1.58
|
|
|
|
- dkms switch
|
|
|
|
|
|
|
|
* Fri Jan 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.58rc1-3mamba
|
|
|
|
- kernel 3.4 rebuild
|
|
|
|
|
|
|
|
* Sat Oct 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.58rc1-2mamba
|
|
|
|
- kernel 3.6 rebuild
|
|
|
|
|
|
|
|
* Sat Sep 08 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.58rc1-1mamba
|
|
|
|
- update to 1.58rc1
|
|
|
|
|
|
|
|
* Sun Feb 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.57-2mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jan 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.57-1mamba
|
|
|
|
- update to 1.57
|
|
|
|
|
|
|
|
* Sun Sep 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-8mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Aug 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-7mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 20 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-6mamba
|
|
|
|
- kernel 2.6.38 rebuild
|
|
|
|
|
|
|
|
* Mon Feb 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-5mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Dec 16 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-4mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Wed Jun 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sun Apr 18 2010 Automatic Build System <autodist@mambasoft.it> 1.56-2mamba
|
|
|
|
- automatic update to 1.56 by autodist
|
|
|
|
|
|
|
|
* Fri Mar 12 2010 Automatic Build System <autodist@mambasoft.it> 1.56-1mamba
|
|
|
|
- automatic update to 1.56 by autodist
|
|
|
|
|
|
|
|
* Sat Dec 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.55-5mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sat Nov 14 2009 Automatic Build System <autodist@mambasoft.it> 1.55-4mamba
|
|
|
|
- automatic update to 1.55 by autodist
|
|
|
|
|
|
|
|
* Wed Nov 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.55-3mamba
|
|
|
|
- epoch incremented for update from old package version 2.6.30
|
|
|
|
|
|
|
|
* Tue Sep 01 2009 Automatic Build System <autodist@mambasoft.it> 1.55-2mamba
|
|
|
|
- automatic update to 1.55 by autodist
|
|
|
|
|
|
|
|
* Sun Aug 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.55-1mamba
|
|
|
|
- first build as standalone package
|