- 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:
parent
54696d96fe
commit
b5dfdcc094
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242879
1 changed files with 8 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= data
|
||||
PORTVERSION= 0.4
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/
|
||||
PKGNAMEPREFIX= devcpu-
|
||||
|
@ -21,7 +21,13 @@ NO_BUILD= yes
|
|||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 701102
|
||||
DATADIR= ${PREFIX}/share/cpucontrol
|
||||
.else
|
||||
DATADIR= ${PREFIX}/share/devcpu
|
||||
.endif
|
||||
|
||||
USE_RC_SUBR= microcode_update
|
||||
|
||||
|
@ -30,4 +36,4 @@ do-install:
|
|||
${INSTALL_DATA} ${WRKSRC}/mcodes/* ${DATADIR}/
|
||||
@${TOUCH} ${DATADIR}/.do_not_delete
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Reference in a new issue