aboutsummaryrefslogtreecommitdiff
path: root/net/ipw-firmware-kmod
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2006-03-16 18:04:44 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2006-03-16 18:04:44 +0000
commiteb9d454ca7dbfe0cb9dd1d53094340046af529f0 (patch)
tree2c6974a91498632922bd08cd5dcf7498aa3af80a /net/ipw-firmware-kmod
parent1c85ae7c37452a5cfb23e7bc662a7ab8e08d7f84 (diff)
downloadports-eb9d454ca7dbfe0cb9dd1d53094340046af529f0.tar.gz
ports-eb9d454ca7dbfe0cb9dd1d53094340046af529f0.zip
Notes
Diffstat (limited to 'net/ipw-firmware-kmod')
-rw-r--r--net/ipw-firmware-kmod/Makefile63
-rw-r--r--net/ipw-firmware-kmod/distinfo3
-rw-r--r--net/ipw-firmware-kmod/pkg-descr9
-rw-r--r--net/ipw-firmware-kmod/pkg-plist4
4 files changed, 79 insertions, 0 deletions
diff --git a/net/ipw-firmware-kmod/Makefile b/net/ipw-firmware-kmod/Makefile
new file mode 100644
index 000000000000..957a0c7288a1
--- /dev/null
+++ b/net/ipw-firmware-kmod/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: ipw-firmware-kmod
+# Date created: Mar 16 2006
+# Whom: Florent Thoumie <flz@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME?= ipw-firmware
+PORTVERSION= ${FWVERSION}
+PORTREVISION?= 0
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= flz/ipw
+PKGNAMESUFFIX= -kmod
+FWNAME?= ipw2100-fw-${FWVERSION}
+FWVERSION?= 1.3
+DISTFILES= ${FWNAME}.tgz
+
+MAINTAINER= flz@FreeBSD.org
+COMMENT?= Intel PRO/Wireless 2100 Firmware Kernel Module
+
+DRIVERNAME?= ipw
+FIRMWARES?= ${FWNAME:C/fw-//}-i.fw:${DRIVERNAME}_ibss \
+ ${FWNAME:C/fw-//}-p.fw:${DRIVERNAME}_monitor \
+ ${FWNAME:C/fw-//}.fw:${DRIVERNAME}_bss
+
+WRKSRC= ${WRKDIR}
+KMODDIR= /boot/modules
+PLIST_SUB= DRIVERNAME="${DRIVERNAME}" \
+ KMODDIR="${KMODDIR}"
+MAKE_ENV= KMODDIR="${KMODDIR}"
+CFLAGS+= -D_KERNEL
+
+NO_PACKAGE= "this is a modified version of a restricted firmware"
+
+.include <bsd.port.pre.mk>
+
+.if ( ${OSVERSION} >= 700000 && ${OSVERSION} < 700014 ) || \
+ !defined(TESTING)
+IGNORE= needs fresh ${DRIVERNAME}(4)
+.endif
+
+post-patch:
+.for i in ${FIRMWARES}
+ @${MKDIR} ${WRKSRC}/${i:C/.*://}
+ @${MV} ${WRKSRC}/${i:C/:.*//} ${WRKSRC}/${i:C/.*://}/${i:C/.*://:S/$/.fw/}
+ @${ECHO_CMD} "KMOD= ${i:C/.*://}" > ${WRKSRC}/${i:C/.*://}/Makefile
+ @${ECHO_CMD} "FIRMWS= ${i:C/.*://:S/$/.fw/}:${i:C/.*://}" >> \
+ ${WRKSRC}/${i:C/.*://}/Makefile
+ @${ECHO_CMD} ".include <bsd.kmod.mk>" >> ${WRKSRC}/${i:C/.*://}/Makefile
+.endfor
+
+do-build:
+.for i in ${FIRMWARES}
+ @cd ${WRKSRC}/${i:C/.*://}; make all ${MAKE_ENV}
+.endfor
+
+do-install:
+.for i in ${FIRMWARES}
+ @cd ${WRKSRC}/${i:C/.*://}; make install ${MAKE_ENV}
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/net/ipw-firmware-kmod/distinfo b/net/ipw-firmware-kmod/distinfo
new file mode 100644
index 000000000000..9590e0c8cddd
--- /dev/null
+++ b/net/ipw-firmware-kmod/distinfo
@@ -0,0 +1,3 @@
+MD5 (ipw2100-fw-1.3.tgz) = 46aa75bcda1a00efa841f9707bbbd113
+SHA256 (ipw2100-fw-1.3.tgz) = e1107c455e48d324a616b47a622593bc8413dcce72026f72731c0b03dae3a7a2
+SIZE (ipw2100-fw-1.3.tgz) = 248471
diff --git a/net/ipw-firmware-kmod/pkg-descr b/net/ipw-firmware-kmod/pkg-descr
new file mode 100644
index 000000000000..da0531a28fa7
--- /dev/null
+++ b/net/ipw-firmware-kmod/pkg-descr
@@ -0,0 +1,9 @@
+This project was created by Intel to enable support for the Intel
+PRO/Wireless 2100 Network Connection mini PCI adapter. This project
+(IPW2100) is intended to be a community effort as much as is possible
+given some working constraints (mainly, no HW documentation is available).
+
+WWW: http://ipw2100.sourceforge.net/
+
+- Florent Thoumie
+flz@FreeBSD.org
diff --git a/net/ipw-firmware-kmod/pkg-plist b/net/ipw-firmware-kmod/pkg-plist
new file mode 100644
index 000000000000..043deb1dd2ef
--- /dev/null
+++ b/net/ipw-firmware-kmod/pkg-plist
@@ -0,0 +1,4 @@
+@cwd /
+%%KMODDIR%%/%%DRIVERNAME%%_bss.ko
+%%KMODDIR%%/%%DRIVERNAME%%_ibss.ko
+%%KMODDIR%%/%%DRIVERNAME%%_monitor.ko