ports/129977: [UPDATE] net/acx100 to latest (working?) version
Alexey Shuvaev
shuvaev at physik.uni-wuerzburg.de
Sat Dec 27 17:00:17 UTC 2008
>Number: 129977
>Category: ports
>Synopsis: [UPDATE] net/acx100 to latest (working?) version
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 27 17:00:16 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Alexey Shuvaev
>Release: 8.0-CURRENT
>Organization:
University of Wuerzburg
>Environment:
FreeBSD localhost.my.domain 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Dec 25 01:26:17 CET 2008 root at localhost.my.domain:/usr/obj/usr/src/sys/USB2 i386
>Description:
First of all, about 'meat' changes.
This is an updated driver for Texas Instruments' PCI and PCMCIA
wireless adaptors.
The driver compiles and kld[un]loads successfully on i386 and amd64 CURRENT,
but I have no hardware to actually test it.
In any case, I think it is better than totally broken port (as it is now).
It's also deserves noticing that the driver does not use new multi-bss
framework (src/UPDATING entry 20080420). Again I believe it is better
than nothing.
>From http://dev.kewl.org/acx100+111/
This experimental version of the ACX(4) driver for FreeBSD-6.1+ should work for
infrastructure clients, Ad-hoc connections and in a limited form as an access
point. In the latter case functionality such as power saving or client to
client bridging is not implemented.
ifconfig is used to configure the ip address of the adapter which initialises
the connection and the application "acxtool" found in the acxtool directory
should be compiled to configure attributes such as channel, ssid etc, however
ifconfig may perform most of these operations but the feature set at this time
is incomplete.
As for port itself, I claim maintanership since current maintainer seems
to be gone. See, for example, PRs 116120 and 123937 for maintainers timeout,
and current state of the port (DEPRECATED with EXPIRATION_DATE=2008-09-19).
I am not the perfect maintainer due to lack of hardware also, but...
I have renamed the port to line-up with upstream naming (and the port
supports now not only ACX100 chips but ACX111 also).
The last but important hint is to pay attention to net/gacxtool port.
It was marked as DEPRECATED 7 days ago (19 Dec 2008) due to broken
dependency net/acx100 (this port). With this update it is no longer true,
but I'm sure that it will not compile against current x11-toolkits/gtkdatabox
(it was developed with 0.2.4.5 and now it is 0.9.0.1 :).
The big problem here that Leonid Zolotaev is not only current net/gacxtool
maintainer but the only developer also. With the latest release from
2004-10-20 and latest news on web site from 2005-09-22 I'm afraid,
the project is dead. I don't know if I can help here :(
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN acx100/Makefile acx/Makefile
--- acx100/Makefile 2008-08-08 18:34:49.000000000 +0200
+++ acx/Makefile 2008-12-27 16:54:36.000000000 +0100
@@ -5,63 +5,65 @@
# $FreeBSD: ports/net/acx100/Makefile,v 1.7 2008/06/19 02:54:51 pav Exp $
#
-PORTNAME= acx100
-PORTVERSION= 20040701
-PORTREVISION= 1
+PORTNAME= acx
+PORTVERSION= 6.1
CATEGORIES= net kld
-MASTER_SITES= http://dev.kewl.org/download/:file_0 \
- ftp://ftp.dlink.co.uk/wireless/dwl-650+/:file_1
+MASTER_SITES= http://dev.kewl.org/acx100+111/:file_0 \
+ ftp://ftp.dlink.co.uk/wireless/dwl-650+/:file_1 \
+ ftp://downloads.netgear.com/files/:file_2
DISTFILES= ${DISTFILE_0}:file_0 \
- ${DISTFILE_1}:file_1
+ ${DISTFILE_1}:file_1 \
+ ${DISTFILE_2}:file_2
DIST_SUBDIR= acx
EXTRACT_ONLY= ${DISTFILE_0}
-MAINTAINER= leoz.2005 at gmail.com
-COMMENT= Texas Instruments (TI) ACX100 IEEE 802.11 driver
+MAINTAINER= shuvaev at physik.uni-wuerzburg.de
+COMMENT= Texas Instruments (TI) ACX100 and ACX111 IEEE 802.11 driver
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
NO_PACKAGE= This port should be recompiled for a particular FreeBSD kernel
-ONLY_FOR_ARCHS= i386
-
-WRKSRC= ${WRKDIR}/${PORTNAME}
+ONLY_FOR_ARCHS= amd64 i386
MAN4= if_acx.4
DISTFILE_0= ${DISTNAME}.tgz
DISTFILE_1= dwl-650+_drv_v3.06_1007_inc_utility.zip
+DISTFILE_2= wg311v2_v2_0_0_7.zip
FIRMWAREDIR= firmware
-INCLUDEDIR= ${PREFIX}/include/acx
+KMODDIR?= /boot/modules
+
+MAKE_ENV+= KMODDIR="${KMODDIR}"
+PLIST_SUB+= KMODDIR=${KMODDIR}
+
+.include <bsd.port.pre.mk>
pre-fetch:
.if !exists(${SRC_BASE}/sys/Makefile)
- @${ECHO} "This port requires the kernel sources to be available"
+IGNORE= requires the kernel sources to be available
+.endif
+
+post-patch:
+.if ${OSVERSION} >= 800049
+ @${REINPLACE_CMD} -e 's/suser(thred)/priv_check(thred, PRIV_DRIVER)/' \
+ ${WRKSRC}/acx/if_acxifnet.c
.endif
pre-build:
- ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE_1} ${WRKSRC}/${FIRMWAREDIR} && \
- cd ${WRKSRC}/${FIRMWAREDIR} && \
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE_1} ${WRKSRC}/${FIRMWAREDIR}/acx100 && \
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE_2} ${WRKSRC}/${FIRMWAREDIR}/acx111 && \
+ cd ${BUILD_WRKSRC}/${FIRMWAREDIR} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
+# Prevent auxiliary bin2h programm from being installed
pre-install:
- @${INSTALL_MAN} ${WRKSRC}/if_acx.4 ${PREFIX}/man/man4
+ @${REINPLACE_CMD} -e 's/bin2h //' ${WRKSRC}/Makefile
- @${MKDIR} ${INCLUDEDIR}
- @${CP} ${WRKSRC}/include/if_acxioctl.h ${INCLUDEDIR}
+do-install:
+ @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}
+ ${INSTALL_MAN} ${WRKSRC}/acx/if_acx.4 ${PREFIX}/man/man4
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 501107
-IGNORE= This port requires newer kernel sources that include /sys/dev/owi/if_ieee80211.h
-.endif
-
-.if ${OSVERSION} >= 601104
-BROKEN= Does not compile on FreeBSD >= 6.x
-DEPRECATED= Has been broken for more than 6 months
-EXPIRATION_DATE=2008-09-19
-.endif
-
.include <bsd.port.post.mk>
diff -ruN acx100/distinfo acx/distinfo
--- acx100/distinfo 2006-01-22 22:22:55.000000000 +0100
+++ acx/distinfo 2008-11-29 21:32:24.000000000 +0100
@@ -1,6 +1,9 @@
-MD5 (acx/acx100-20040701.tgz) = 6f026815dbe5de0629e95853fc9c2ff8
-SHA256 (acx/acx100-20040701.tgz) = 4a1bbbdf08668239126caac3dedab37571cbd06bb5dd8be440b30a0ea7409e59
-SIZE (acx/acx100-20040701.tgz) = 49013
+MD5 (acx/acx-6.1.tgz) = c47e882ae34e9cd3f582a5b1ce22edec
+SHA256 (acx/acx-6.1.tgz) = cfdcbed853202e5aa72d78ae440945dcb92f3faffa1ed41eba1c264168c1a4d5
+SIZE (acx/acx-6.1.tgz) = 62929
MD5 (acx/dwl-650+_drv_v3.06_1007_inc_utility.zip) = 599bfdea54f540b0b68341951a8e2a9f
SHA256 (acx/dwl-650+_drv_v3.06_1007_inc_utility.zip) = 5922ac7410e1dfc7e34957a9e8cd605087ca1d9fbe5829c7c102fbb72d75708f
SIZE (acx/dwl-650+_drv_v3.06_1007_inc_utility.zip) = 2464165
+MD5 (acx/wg311v2_v2_0_0_7.zip) = a7406fbb3d48318153d48ee805fb9873
+SHA256 (acx/wg311v2_v2_0_0_7.zip) = 5941f1b113e49c2b9aff3d60bef9ecc9f4ffd972c876df913aa182e925b995bf
+SIZE (acx/wg311v2_v2_0_0_7.zip) = 16518095
diff -ruN acx100/pkg-descr acx/pkg-descr
--- acx100/pkg-descr 2005-10-13 01:46:59.000000000 +0200
+++ acx/pkg-descr 2008-12-25 21:43:02.000000000 +0100
@@ -1,13 +1,17 @@
-Texas Instruments (TI) ACX100 IEEE 802.11 driver.
+Texas Instruments (TI) ACX100/111 IEEE 802.11 driver.
-The acx driver supports ACX100 based Cardbus or PCI network adapters.
+The acx driver supports ACX100/111 based Cardbus or PCI network adapters.
The following cards are known to work with the acx driver:
-Card Bus
-Binatone WL-1000 CARDBUS
-D-Link DWL-650+ CARDBUS
-US Robotics USR2210 CARDBUS
-US Robotics USR2216 PCI
+Card Bus Type
+Binatone WL-1000 CARDBUS ACX100
+D-Link DWL-650+ CARDBUS ACX100
+US Robotics USR2210 CARDBUS ACX100
+US Robotics USR2216 PCI ACX100
+D-Link DWL-G650+ CARDBUS ACX111
+D-Link DWL-G520+ PCI ACX111
+US Robotics USR5416 PCI ACX111
+SAFECOM SWLPT-54125 PCI ACX111
WWW: http://dev.kewl.org/
diff -ruN acx100/pkg-plist acx/pkg-plist
--- acx100/pkg-plist 2004-11-12 20:10:39.000000000 +0100
+++ acx/pkg-plist 2008-12-07 22:57:23.000000000 +0100
@@ -1,5 +1,8 @@
- at comment $FreeBSD: ports/net/acx100/pkg-plist,v 1.2 2004/11/12 19:10:39 pav Exp $
-include/acx/if_acxioctl.h
- at dirrm include/acx
- at cwd /boot/kernel
+bin/ifdo
+sbin/acxtool
+ at cwd %%KMODDIR%%
if_acx.ko
+if_acx.ko.symbols
+acx100fw.ko
+acx111fw.ko
+ at unexec kldxref %D
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list