summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-07-09 18:17:58 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-07-09 18:17:58 +0000
commit2fe3f46f51c3fbbbb78be57f4125252123da2c0a (patch)
treed616c74e630f31fc8b03abb28aa0b96efc66a281 /net-wireless/madwifi-old-tools
parentNew upstream version; Upgrade bootstrap compiler for x86 and amd64 to 0.9.14. (diff)
downloadgentoo-2-2fe3f46f51c3fbbbb78be57f4125252123da2c0a.tar.gz
gentoo-2-2fe3f46f51c3fbbbb78be57f4125252123da2c0a.tar.bz2
gentoo-2-2fe3f46f51c3fbbbb78be57f4125252123da2c0a.zip
New version scheme to match net-wireless/madwifi-ng-tools.
(Portage version: 2.1-r1)
Diffstat (limited to 'net-wireless/madwifi-old-tools')
-rw-r--r--net-wireless/madwifi-old-tools/ChangeLog9
-rw-r--r--net-wireless/madwifi-old-tools/files/digest-madwifi-old-tools-0.0.1417.200601283
-rw-r--r--net-wireless/madwifi-old-tools/madwifi-old-tools-0.0.1417.20060128.ebuild66
3 files changed, 77 insertions, 1 deletions
diff --git a/net-wireless/madwifi-old-tools/ChangeLog b/net-wireless/madwifi-old-tools/ChangeLog
index 58d50d3a276d..a01d39ba55e1 100644
--- a/net-wireless/madwifi-old-tools/ChangeLog
+++ b/net-wireless/madwifi-old-tools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/madwifi-old-tools
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-old-tools/ChangeLog,v 1.1 2006/04/14 13:25:27 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-old-tools/ChangeLog,v 1.2 2006/07/09 18:17:58 brix Exp $
+
+*madwifi-old-tools-0.0.1417.20060128 (09 Jul 2006)
+
+ 09 Jul 2006; Henrik Brix Andersen <brix@gentoo.org>
+ +madwifi-old-tools-0.0.1417.20060128.ebuild,
+ -madwifi-old-tools-0.1417.20060128.ebuild:
+ New version scheme to match net-wireless/madwifi-ng-tools.
*madwifi-old-tools-0.1417.20060128 (14 Apr 2006)
diff --git a/net-wireless/madwifi-old-tools/files/digest-madwifi-old-tools-0.0.1417.20060128 b/net-wireless/madwifi-old-tools/files/digest-madwifi-old-tools-0.0.1417.20060128
new file mode 100644
index 000000000000..736584a57661
--- /dev/null
+++ b/net-wireless/madwifi-old-tools/files/digest-madwifi-old-tools-0.0.1417.20060128
@@ -0,0 +1,3 @@
+MD5 95d457e0edfb7028e09dee60db7fa7b8 madwifi-old-r1417-20060128.tar.gz 2102954
+RMD160 eeebd5a3364a2539436b5904733836bed2cfa455 madwifi-old-r1417-20060128.tar.gz 2102954
+SHA256 ec3379cf1ad7fb4628fc50feb18068504326f9ad87438fdb9010b98c10b24879 madwifi-old-r1417-20060128.tar.gz 2102954
diff --git a/net-wireless/madwifi-old-tools/madwifi-old-tools-0.0.1417.20060128.ebuild b/net-wireless/madwifi-old-tools/madwifi-old-tools-0.0.1417.20060128.ebuild
new file mode 100644
index 000000000000..bddf4ca97aa5
--- /dev/null
+++ b/net-wireless/madwifi-old-tools/madwifi-old-tools-0.0.1417.20060128.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-old-tools/madwifi-old-tools-0.0.1417.20060128.ebuild,v 1.1 2006/07/09 18:17:58 brix Exp $
+
+inherit toolchain-funcs
+
+MY_P=${PN/-tools/}-r${PV:4:4}-${PV:9:10}
+S=${WORKDIR}/${MY_P}/tools
+
+DESCRIPTION="Tools for configuration of Atheros based IEEE 802.11a/b/g wireless LAN cards"
+HOMEPAGE="http://www.madwifi.org/"
+SRC_URI="http://snapshots.madwifi.org/madwifi-old/${MY_P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE=""
+DEPEND="virtual/libc"
+RDEPEND="!net-wireless/madwifi-ng-tools
+ ${RDEPEND}"
+
+pkg_setup() {
+ use x86 && TARGET=i386-elf
+ use amd64 && TARGET=x86_64-elf
+ use ppc && TARGET=powerpc-be-eabi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # format string fix from solar
+ sed -i \
+ -e 's:err(1, ifr.ifr_name);:err(1, "%s", ifr.ifr_name);:g' \
+ ${S}/athstats.c || die
+
+ sed -i \
+ -e "s:CFLAGS=:CFLAGS+=:" \
+ -e "s:LDFLAGS=:LDFLAGS+=:" \
+ ${S}/Makefile || die
+}
+
+src_compile() {
+ ARCH=$(tc-arch-kernel)
+ emake CC=$(tc-getCC) || die "emake failed"
+ ARCH=$(tc-arch)
+}
+
+src_install() {
+ dodir /usr/bin
+
+ ARCH=$(tc-arch-kernel)
+ make DESTDIR="${D}" BINDIR=/usr/bin install || die "make install failed"
+ ARCH=$(tc-arch)
+}
+
+pkg_postinst() {
+ if [ -e "${ROOT}"/etc/udev/rules.d/65-madwifi.rules ]; then
+ ewarn
+ ewarn "The udev rules for creating interfaces (athX) are no longer needed."
+ ewarn
+ ewarn "You should manually remove the /etc/udev/rules.d/65-madwifi.rules file"
+ ewarn "and either run 'udevstart' or reboot for the changes to take effect."
+ ewarn
+ fi
+}