- 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
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>