aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipw-firmware-kmod
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2006-03-28 18:23:37 +0800
committerflz <flz@FreeBSD.org>2006-03-28 18:23:37 +0800
commitdc479b0bde411c581324bab516208047308e5ef1 (patch)
treed124c0ef43b68218bce7a1dfe143ae8624812666 /net/ipw-firmware-kmod
parent774e4aa619857804a5dbe7202645b36b7242dc41 (diff)
downloadfreebsd-ports-gnome-dc479b0bde411c581324bab516208047308e5ef1.tar.gz
freebsd-ports-gnome-dc479b0bde411c581324bab516208047308e5ef1.tar.zst
freebsd-ports-gnome-dc479b0bde411c581324bab516208047308e5ef1.zip
Add firmware version when building the kernel module.
Suggested by: mlaier
Diffstat (limited to 'net/ipw-firmware-kmod')
-rw-r--r--net/ipw-firmware-kmod/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipw-firmware-kmod/Makefile b/net/ipw-firmware-kmod/Makefile
index 957a0c7288a1..7c31d460a17d 100644
--- a/net/ipw-firmware-kmod/Makefile
+++ b/net/ipw-firmware-kmod/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= ipw-firmware
PORTVERSION= ${FWVERSION}
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= flz/ipw
@@ -26,6 +26,7 @@ FIRMWARES?= ${FWNAME:C/fw-//}-i.fw:${DRIVERNAME}_ibss \
WRKSRC= ${WRKDIR}
KMODDIR= /boot/modules
+KMODVERSION= ${FWVERSION:C/^(...)$/\1.0/:S/.//g}
PLIST_SUB= DRIVERNAME="${DRIVERNAME}" \
KMODDIR="${KMODDIR}"
MAKE_ENV= KMODDIR="${KMODDIR}"
@@ -45,7 +46,7 @@ post-patch:
@${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/.*://}" >> \
+ @${ECHO_CMD} "FIRMWS= ${i:C/.*://:S/$/.fw/}:${i:C/.*://}:${KMODVERSION}" >> \
${WRKSRC}/${i:C/.*://}/Makefile
@${ECHO_CMD} ".include <bsd.kmod.mk>" >> ${WRKSRC}/${i:C/.*://}/Makefile
.endfor