SPECS: madwifi-ng.spec (NEW) - rel 0.1 - based on madwifi.spec - i...

dzimi dzimi at pld-linux.org
Mon Oct 24 17:01:17 CEST 2005


Author: dzimi                        Date: Mon Oct 24 15:01:17 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 0.1
- based on madwifi.spec
- it is new code based on madwifi from sf.net, support
  - WDS 4 address support 
  - Roaming 
  - WPA/WPA 2 countermeasures. 
  - WMM (Wi-Fi Multimedia) 
  - Atheros Fast Frame 
  - Atheros XR 
  - Atheros SuperA/G bursting 
  - Atheros Adaptive Radio 
  - Atheros SuperA/G compression 
  - Static/Dynamic turbo mode,
  also Virtual AP (VAP) mode, which allows the operation of 
  multiple concurrent (virtual) access points, and concurrent 
  running in both AP and station mode.

---- Files affected:
SPECS:
   madwifi-ng.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/madwifi-ng.spec
diff -u /dev/null SPECS/madwifi-ng.spec:1.1
--- /dev/null	Mon Oct 24 17:01:17 2005
+++ SPECS/madwifi-ng.spec	Mon Oct 24 17:01:12 2005
@@ -0,0 +1,253 @@
+#
+# TODO: kernel header is additional BR  (whatever it means???)
+#
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_without	smp		# don't build SMP module
+%bcond_without	userspace	# don't build userspace module
+%bcond_with	verbose		# verbose build (V=1)
+
+#
+Summary:	Atheros WiFi card driver
+Summary(pl):	Sterownik karty radiowej Atheros
+Name:		madwifi-ng
+Version:	0
+%define		snap_year	2005
+%define		snap_month	10
+%define		snap_day	21
+%define		snap	%{snap_year}%{snap_month}%{snap_day}
+%define		snapdate	%{snap_year}-%{snap_month}-%{snap_day}
+%define		_rel	0.%{snap}.1
+%define		trunk	r1195
+Release:	%{_rel}
+Epoch:		0
+License:	GPL/BSD (partial source)
+Group:		Base/Kernel
+Source0:	http://snapshots.madwifi.org/madwifi-trunk-%{trunk}-%{snap}.tar.gz
+URL:		http://www.madwifi.org/
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:	kernel-module-build >= 2.6.7}
+BuildRequires:	rpmbuild(macros) >= 1.153
+BuildRequires:	sharutils
+%endif
+ExclusiveArch:	%{x8664} arm %{ix86} mips ppc xscale
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Atheros WiFi card driver. Support Virtual APs and WDS Mode.
+
+%description -l pl
+Sterownik karty radiowej Atheros. Wspiera tryb wirtualnego AP
+oraz tryb WDS.
+
+%package devel
+Summary:	Header files for madwifi
+Summary(pl):	Pliki nagłówkowe dla madwifi
+Group:		Development/Libraries
+
+%description devel
+Header files for madwifi.
+
+%description devel -l pl
+Pliki nagłówkowe dla madwifi.
+
+# kernel subpackages.
+
+%package -n kernel-net-madwifi
+Summary:	Linux driver for Atheros cards
+Summary(pl):	Sterownik dla Linuksa do kart Atheros
+Release:	%{_rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_up
+Requires(postun):	%releq_kernel_up
+%endif
+
+%description -n kernel-net-madwifi
+This is driver for Atheros card for Linux.
+
+This package contains Linux module.
+
+%description -n kernel-net-madwifi -l pl
+Sterownik dla Linuksa do kart Atheros.
+
+Ten pakiet zawiera moduł jądra Linuksa.
+
+%package -n kernel-smp-net-madwifi
+Summary:	Linux SMP driver for %{name} cards
+Summary(pl):	Sterownik dla Linuksa SMP do kart %{name}
+Release:	%{_rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_smp
+Requires(postun):	%releq_kernel_smp
+%endif
+
+%description -n kernel-smp-net-madwifi
+This is driver for Atheros cards for Linux.
+
+This package contains Linux SMP module.
+
+%description -n kernel-smp-net-madwifi -l pl
+Sterownik dla Linuksa do kart Atheros.
+
+Ten pakiet zawiera moduł jądra Linuksa SMP.
+
+%prep
+%setup -q -n madwifi-trunk-%{trunk}-%{snap}
+
+%build
+%if %{with userspace}
+%{__make} -C tools \
+	CC="%{__cc}" \
+	CFLAGS="-include include/compat.h -\$(INCS) %{rpmcflags}" \
+	KERNELCONF="%{_kernelsrcdir}/config-up"
+%endif
+
+%if %{with kernel}
+# kernel module(s)
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
+	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
+		exit 1
+	fi
+	rm -rf include/{linux,config,asm}
+	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
+	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
+	touch include/config/MARKER
+#
+#	patching/creating makefile(s) (optional)
+#
+	%{__make} -C %{_kernelsrcdir} clean \
+		KERNELCONF="%{_kernelsrcdir}/config-$cfg" \
+		RCS_FIND_IGNORE="-name '*.ko' -o" \
+		M=$PWD O=$PWD \
+		%{?with_verbose:V=1}
+	%{__make} \
+		TARGET="%{_target_base_arch}-elf" \
+		KERNELPATH=%{_kernelsrcdir} \
+		KERNELCONF="%{_kernelsrcdir}/config-$cfg" \
+		TOOLPREFIX= \
+		O=$PWD \
+		CC="%{__cc}" CPP="%{__cpp}" \
+		%{?with_verbose:V=1}
+
+	mv ath/ath_pci{,-$cfg}.ko
+	mv ath_hal/ath_hal{,-$cfg}.ko
+# default is ath_rate_onoe, not rate_sample
+#	mv ath_rate/sample/ath_rate_sample{,-$cfg}.ko
+#
+	mv ath_rate/onoe/ath_rate_onoe{,-$cfg}.ko
+	for i in wlan_wep wlan_xauth wlan_acl wlan_ccmp wlan_tkip wlan; do
+		mv net80211/$i{,-$cfg}.ko
+	done
+done
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT%{_bindir}
+install tools/80211debug $RPM_BUILD_ROOT%{_bindir}/80211debug
+install tools/80211stats $RPM_BUILD_ROOT%{_bindir}/80211stats
+install tools/athchans $RPM_BUILD_ROOT%{_bindir}/athchans
+install tools/athctrl $RPM_BUILD_ROOT%{_bindir}/athctrl
+install tools/athdebug $RPM_BUILD_ROOT%{_bindir}/athdebug
+install tools/athkey $RPM_BUILD_ROOT%{_bindir}/athkey
+install tools/athstats $RPM_BUILD_ROOT%{_bindir}/athstats
+install tools/wlanconfig $RPM_BUILD_ROOT%{_bindir}/wlanconfig
+#install tools/wlanstats $RPM_BUILD_ROOT%{_bindir}/wlanstats
+#install tools/wlandebug $RPM_BUILD_ROOT%{_bindir}/wlandebug
+
+%{__make} -C tools install \
+	KERNELCONF="%{_kernelsrcdir}/config-up" \
+	DESTDIR=$RPM_BUILD_ROOT \
+	BINDIR=%{_bindir}
+
+install -d $RPM_BUILD_ROOT%{_includedir}/madwifi/net80211
+install -d $RPM_BUILD_ROOT%{_includedir}/madwifi/include/sys
+install net80211/*.h $RPM_BUILD_ROOT%{_includedir}/madwifi/net80211
+install include/*.h $RPM_BUILD_ROOT%{_includedir}/madwifi/include
+install include/sys/*.h $RPM_BUILD_ROOT%{_includedir}/madwifi/include/sys
+%endif
+
+%if %{with kernel}
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/net
+install ath/ath_pci-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/ath_pci.ko
+install ath_hal/ath_hal-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/ath_hal.ko
+#install ath_rate/sample/ath_rate_sample-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+#	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/ath_rate_sample.ko
+install ath_rate/onoe/ath_rate_onoe-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/ath_rate_onoe.ko
+for i in wlan_wep wlan_xauth wlan_acl wlan_ccmp wlan_tkip wlan; do
+	install net80211/$i-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+		$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/$i.ko
+done
+%if %{with smp} && %{with dist_kernel}
+install ath/ath_pci-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/net/ath_pci.ko
+install ath_hal/ath_hal-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/net/ath_hal.ko
+#install ath_rate/sample/ath_rate_sample-smp.ko \
+#	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/net/ath_rate_sample.ko
+install ath_rate/onoe/ath_rate_onoe-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/net/ath_rate_onoe.ko
+for i in wlan_wep wlan_xauth wlan_acl wlan_ccmp wlan_tkip wlan; do
+	install net80211/$i-smp.ko \
+		$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/net/$i.ko
+done
+%endif
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n kernel-net-madwifi
+%depmod %{_kernel_ver}
+
+%postun	-n kernel-net-madwifi
+%depmod %{_kernel_ver}
+
+%post	-n kernel-smp-net-madwifi
+%depmod %{_kernel_ver}smp
+
+%postun	-n kernel-smp-net-madwifi
+%depmod %{_kernel_ver}smp
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc COPYRIGHT README
+%attr(755,root,root) %{_bindir}/80211*
+%attr(755,root,root) %{_bindir}/ath*
+%attr(755,root,root) %{_bindir}/wlan*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/madwifi
+%endif
+
+%if %{with kernel}
+%files -n kernel-net-madwifi
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/kernel/net/*.ko*
+
+%if %{with smp} && %{with dist_kernel}
+%files -n kernel-smp-net-madwifi
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}smp/kernel/net/*.ko*
+%endif
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
================================================================



More information about the pld-cvs-commit mailing list