- Install microcode files to default cpuctl directory on FreeBSD versions

with cpuctl(4) driver instead of devcpu default directory.

Spotted by:	avg
This commit is contained in:
Stanislav Sedov 2009-10-15 09:57:09 +00:00
parent 54696d96fe
commit b5dfdcc094
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242879

View file

@ -7,7 +7,7 @@
PORTNAME= data PORTNAME= data
PORTVERSION= 0.4 PORTVERSION= 0.4
PORTREVISION= 0 PORTREVISION= 1
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/ MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/
PKGNAMEPREFIX= devcpu- PKGNAMEPREFIX= devcpu-
@ -21,7 +21,13 @@ NO_BUILD= yes
ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS= i386 amd64
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 701102
DATADIR= ${PREFIX}/share/cpucontrol
.else
DATADIR= ${PREFIX}/share/devcpu DATADIR= ${PREFIX}/share/devcpu
.endif
USE_RC_SUBR= microcode_update USE_RC_SUBR= microcode_update
@ -30,4 +36,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/mcodes/* ${DATADIR}/ ${INSTALL_DATA} ${WRKSRC}/mcodes/* ${DATADIR}/
@${TOUCH} ${DATADIR}/.do_not_delete @${TOUCH} ${DATADIR}/.do_not_delete
.include <bsd.port.mk> .include <bsd.port.post.mk>