Install firmwares for athn(4) that have been built from source.

This will allow such potential benefits in the future as debugging
features and the ability to audit the source.

ok stsp@ sthen@
This commit is contained in:
bentley 2017-11-06 13:56:01 +00:00
parent c14d032b8b
commit 9293bcec1a
2 changed files with 10 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2017/07/12 09:02:28 sthen Exp $ # $OpenBSD: Makefile,v 1.7 2017/11/06 13:56:01 bentley Exp $
FW_DRIVER= athn FW_DRIVER= athn
FW_VER= 1.1 FW_VER= 1.1
REVISION= 2 REVISION= 3
EXTRACT_SUFX= .tgz EXTRACT_SUFX= .tgz
WRKDIST= ${WRKDIR} WRKDIST= ${WRKDIR}
@ -13,11 +13,16 @@ PERMIT_PACKAGE_CDROM= firmware
PERMIT_PACKAGE_FTP= firmware PERMIT_PACKAGE_FTP= firmware
PERMIT_DISTFILES_FTP= Yes PERMIT_DISTFILES_FTP= Yes
BUILD_DEPENDS= devel/open-ath9k-htc-firmware/k2 \
devel/open-ath9k-htc-firmware/magpie
do-install: do-install:
${INSTALL_DATA} ${WRKSRC}/LICENCE.atheros_firmware ${PREFIX}/firmware/athn-license ${INSTALL_DATA} ${WRKSRC}/LICENCE.atheros_firmware ${PREFIX}/firmware/athn-license
echo "\nThe following files are under this license:\n\nathn-7010 athn-7010-11 athn-9271\n\nThese files are needed by various models of athn(4) devices." >> ${PREFIX}/firmware/athn-license echo "\nThe following files are under this license:\n\nathn-7010 athn-7010-11 athn-9271\n\nThese files are needed by various models of athn(4) devices." >> ${PREFIX}/firmware/athn-license
${INSTALL_DATA} ${WRKSRC}/ar7010.fw ${PREFIX}/firmware/athn-ar7010 ${INSTALL_DATA} ${WRKSRC}/ar7010.fw ${PREFIX}/firmware/athn-ar7010
${INSTALL_DATA} ${WRKSRC}/ar7010_1_1.fw ${PREFIX}/firmware/athn-ar7010-11 ${INSTALL_DATA} ${WRKSRC}/ar7010_1_1.fw ${PREFIX}/firmware/athn-ar7010-11
${INSTALL_DATA} ${WRKSRC}/ar9271.fw ${PREFIX}/firmware/athn-ar9271 ${INSTALL_DATA} ${WRKSRC}/ar9271.fw ${PREFIX}/firmware/athn-ar9271
${INSTALL_DATA} ${LOCALBASE}/share/open-ath9k-htc-firmware/htc_7010.fw ${PREFIX}/firmware/athn-open-ar7010
${INSTALL_DATA} ${LOCALBASE}/share/open-ath9k-htc-firmware/htc_9271.fw ${PREFIX}/firmware/athn-open-ar9271
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,7 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/06/09 17:08:14 sthen Exp $ @comment $OpenBSD: PLIST,v 1.2 2017/11/06 13:56:01 bentley Exp $
@pkgpath sysutils/athn-firmware @pkgpath sysutils/athn-firmware
@ask-update athn-firmware-<1.1 Make sure you have a matching kernel @ask-update athn-firmware-<1.1 Make sure you have a matching kernel
firmware/athn-ar7010 firmware/athn-ar7010
firmware/athn-open-ar7010
firmware/athn-ar7010-11 firmware/athn-ar7010-11
firmware/athn-ar9271 firmware/athn-ar9271
firmware/athn-open-ar9271
firmware/athn-license firmware/athn-license