From: Daniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Date: Wed, 5 Dec 2007 20:27:19 +0000 (+0000)
Subject: Install the ifup-pre-local script.
X-Git-Tag: madwifi-0.9.3.3-1~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=06fd947096ae6894b7207053baca84b718d192ce;p=madwifi.git

Install the ifup-pre-local script.
---

diff --git a/madwifi.spec b/madwifi.spec
index 1782673..0517f2b 100644
--- a/madwifi.spec
+++ b/madwifi.spec
@@ -48,13 +48,17 @@ madwifi is a new generation driver for the Atheros chipset
 rm -rf $RPM_BUILD_ROOT
 
 # with the new build, we use the kernel-devel rpm for building
-linux=/usr/src/kernels/%{kernel_id_arch}
+%define kernelpath /usr/src/kernels/%{kernel_id_arch}
 
-%__make KERNELPATH=$linux clean
-%__make KERNELPATH=$linux
-echo 'r' | %__make KERNELPATH=$linux DESTDIR=$RPM_BUILD_ROOT install
+%__make KERNELPATH=%kernelpath clean
+%__make KERNELPATH=%kernelpath
 
 %install
+rm -fr $RPM_BUILD_ROOT
+
+echo 'r' | %__make KERNELPATH=%kernelpath BINDIR=/sbin MANDIR=%{_mandir} DESTDIR=$RPM_BUILD_ROOT install
+install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT/sbin/ifup-pre-local
+
 # Remove depmod files, will be regenerated in %post
 rm -f $RPM_BUILD_ROOT/lib/modules/%{kernel_id}/modules.*
 
@@ -77,22 +81,23 @@ rm -rf $RPM_BUILD_ROOT
 /lib/modules/%{kernel_id}/net/wlan_tkip.ko
 /lib/modules/%{kernel_id}/net/wlan_wep.ko
 /lib/modules/%{kernel_id}/net/wlan_xauth.ko
-/usr/local/bin/80211debug
-/usr/local/bin/80211stats
-/usr/local/bin/athchans
-/usr/local/bin/athctrl
-/usr/local/bin/athdebug
-/usr/local/bin/athkey
-/usr/local/bin/athstats
-/usr/local/bin/wlanconfig
-/usr/local/man/man8/80211debug.8
-/usr/local/man/man8/80211stats.8
-/usr/local/man/man8/athchans.8
-/usr/local/man/man8/athctrl.8
-/usr/local/man/man8/athdebug.8
-/usr/local/man/man8/athkey.8
-/usr/local/man/man8/athstats.8
-/usr/local/man/man8/wlanconfig.8
+/sbin/80211debug
+/sbin/80211stats
+/sbin/athchans
+/sbin/athctrl
+/sbin/athdebug
+/sbin/athkey
+/sbin/athstats
+/sbin/wlanconfig
+/sbin/ifup-pre-local
+%{_mandir}/man8/80211debug.8*
+%{_mandir}/man8/80211stats.8*
+%{_mandir}/man8/athchans.8*
+%{_mandir}/man8/athctrl.8*
+%{_mandir}/man8/athdebug.8*
+%{_mandir}/man8/athkey.8*
+%{_mandir}/man8/athstats.8*
+%{_mandir}/man8/wlanconfig.8*
 
 
 %post