diff -urN madwifi-ng_orig/files/uudecode.patch madwifi-ng/files/uudecode.patch
--- madwifi-ng_orig/files/uudecode.patch	1970-01-01 01:00:00.000000000 +0100
+++ madwifi-ng/files/uudecode.patch	2006-06-05 12:24:40.000000000 +0200
@@ -0,0 +1,29 @@
+Index: ath/Makefile
+===================================================================
+--- ath/Makefile	(revision 1627)
++++ ath/Makefile	(working copy)
+@@ -83,9 +85,9 @@
+ 	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
+ endif
+ 
+-$(obj)/${TARGET}.hal.o: ${HAL}/public/${TARGET}.hal.o.uu $(obj)/uudecode
++$(obj)/${TARGET}.hal.o: ${HAL}/public/${TARGET}.hal.o.uu
+ 	$(Q)echo "deps_$@ :=" >$(@D)/.$(@F).cmd
+-	$(Q)$(obj)/uudecode -o $@ $<
++	$(Q)/usr/bin/uudecode -o $@ $<
+ 
+ install:
+ 	test -d ${DESTDIR}/${KMODPATH} || mkdir -p ${DESTDIR}/${KMODPATH}
+Index: ath/Makefile.kernel
+===================================================================
+--- ath/Makefile.kernel	(revision 1627)
++++ ath/Makefile.kernel	(working copy)
+@@ -88,6 +88,6 @@
+ 	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
+ endif
+ 
+-$(obj)/${TARGET}.hal.o: ${HAL}/public/${TARGET}.hal.o.uu $(obj)/uudecode
++$(obj)/${TARGET}.hal.o: ${HAL}/public/${TARGET}.hal.o.uu
+ 	$(Q)echo "deps_$@ :=" >$(@D)/.$(@F).cmd
+-	$(Q)$(obj)/uudecode -o $@ $<
++	$(Q)/usr/bin/uudecode -o $@ $<
diff -urN madwifi-ng_orig/madwifi-ng-0.9.0.ebuild madwifi-ng/madwifi-ng-0.9.0.ebuild
--- madwifi-ng_orig/madwifi-ng-0.9.0.ebuild	2006-06-05 12:21:22.000000000 +0200
+++ madwifi-ng/madwifi-ng-0.9.0.ebuild	2006-06-05 12:20:29.000000000 +0200
@@ -70,6 +70,8 @@
 	for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe ath_rate/sample; do
 		convert_to_m ${S}/${dir}/Makefile
 	done
+
+	epatch ${FILESDIR}/uudecode.patch
 }
 
 src_compile() {

