summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2005-09-11 09:38:54 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2005-09-11 09:38:54 +0000
commita58b90a60c02a63234ffe8f89a5c69fd4cef6970 (patch)
treeceb1575e18541b442e6836a8f437e5dfee20501c
parentAdded linux-wlan-ng-firmware (diff)
downloadbetelgeuse-a58b90a60c02a63234ffe8f89a5c69fd4cef6970.tar.gz
betelgeuse-a58b90a60c02a63234ffe8f89a5c69fd4cef6970.tar.bz2
betelgeuse-a58b90a60c02a63234ffe8f89a5c69fd4cef6970.zip
Working firmware ebuild
svn path=/; revision=54
-rw-r--r--net-wireless/linux-wlan-ng-firmware/Manifest3
-rw-r--r--net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.1.patch25
-rw-r--r--net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.1.ebuild20
3 files changed, 45 insertions, 3 deletions
diff --git a/net-wireless/linux-wlan-ng-firmware/Manifest b/net-wireless/linux-wlan-ng-firmware/Manifest
index ebaae84..2e62095 100644
--- a/net-wireless/linux-wlan-ng-firmware/Manifest
+++ b/net-wireless/linux-wlan-ng-firmware/Manifest
@@ -1,2 +1,3 @@
-MD5 afd65d39306257b06bfff82eccd8466a linux-wlan-ng-firmware-0.2.1.ebuild 439
+MD5 83afb4329d1d41a3cd36c0941f7fcd4b linux-wlan-ng-firmware-0.2.1.ebuild 750
+MD5 0c4642882596b60e7e90efeca2a5b300 files/prism2_makefile-0.2.1.patch 850
MD5 cf810924f14a987986b0583238592d29 files/digest-linux-wlan-ng-firmware-0.2.1 72
diff --git a/net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.1.patch b/net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.1.patch
new file mode 100644
index 0000000..e1a779f
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.1.patch
@@ -0,0 +1,25 @@
+diff -ur linux-wlan-ng-0.2.1.old/src/prism2/Makefile linux-wlan-ng-0.2.1/src/prism2/Makefile
+--- linux-wlan-ng-0.2.1.old/src/prism2/Makefile 2005-09-05 12:13:56.000000000 +0300
++++ linux-wlan-ng-0.2.1/src/prism2/Makefile 2005-09-05 12:16:15.000000000 +0300
+@@ -58,7 +58,7 @@
+ rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ tags
+ for i in *_obj; do if [ -d $$i ]; then rm -fr $$i; fi; done
+
+-install:
++install-firmware:
+ mkdir -p $(TARGET_ROOT_ON_HOST)/etc/wlan
+ cp shared.prism2 $(TARGET_ROOT_ON_HOST)/etc/wlan
+ mkdir -p $(TARGET_ROOT_ON_HOST)$(FIRMWARE_DIR)
+@@ -68,8 +68,12 @@
+ cp $$x $(TARGET_ROOT_ON_HOST)$(FIRMWARE_DIR)/prism2_`echo $$x | cut -c1-2`.hex ; \
+ fi; \
+ done
++
++recursive-install:
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done
+
++install: install-firmware recursive-install
++
+ ctags:
+ ctags -R
+
diff --git a/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.1.ebuild b/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.1.ebuild
index 11e52fc..5465930 100644
--- a/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.1.ebuild
+++ b/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.1.ebuild
@@ -5,9 +5,8 @@
inherit eutils
MY_P=${P/-firmware/}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="Firmware Intersil Prism2/2.5/3 based IEEE 802.11b wireless LAN products"
+DESCRIPTION="Firmware for Prism2/2.5/3 based IEEE 802.11b wireless LAN products"
HOMEPAGE="http://linux-wlan.org"
SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2"
@@ -17,3 +16,20 @@ KEYWORDS="~amd64 ~hppa ~ppc x86"
IUSE=""
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/prism2_makefile-${PV}.patch
+}
+
+src_compile() {
+ local config=${S}/config.mk
+ echo TARGET_ROOT_ON_HOST=${D} >> ${config}
+ echo FIRMWARE_DIR=/lib/firmware >> ${config}
+}
+
+src_install() {
+ cd ${S}/src/prism2
+ make install-firmware || die "Failed to install firmware"
+}