Index: ipw3945-1.2.2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-wireless/ipw3945/ipw3945-1.2.2.ebuild,v retrieving revision 1.3 diff -u -B -r1.3 ipw3945-1.2.2.ebuild --- ipw3945-1.2.2.ebuild 11 Sep 2007 15:48:45 -0000 1.3 +++ ipw3945-1.2.2.ebuild 14 Nov 2007 17:32:48 -0000 @@ -42,6 +42,13 @@ linux-mod_pkg_setup BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR} SHELL=/bin/bash" + BUILD_PARAMS="${BUILD_PARAMS} T=${T}" + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IPW3945_MONITOR=y CONFIG_IEEE80211_RADIOTAP=y CONFIG_IPW3945_PROMISCUOUS=y" + if use debug; then + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IPW3945_DEBUG=y" + else + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IPW3945_DEBUG=n" + fi # users don't read the ChangeLog and wonder why the kernel check fails # (1) check if the kernel dir (/usr/src/linux) is missing ieee80211 @@ -64,14 +71,8 @@ src_unpack() { unpack ${P/_pre/-pre}.tgz - cd "${S}" - epatch "${FILESDIR}"/${PN}-1.2.0-Makefile.patch - - if use debug ; then - sed -i -e "s:^\(CONFIG_IPW3945_DEBUG\)=.*:\1=y:" "${S}"/Makefile || \ - die "Failed to enable debugging support!" - fi + epatch "${FILESDIR}/${P}-build.patch" } src_install() {