1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/sysutils/devcpu-data/Makefile
Stanislav Sedov b5dfdcc094 - Install microcode files to default cpuctl directory on FreeBSD versions
with cpuctl(4) driver instead of devcpu default directory.

Spotted by:	avg
2009-10-15 09:57:09 +00:00

40 lines
753 B
Makefile

# New ports collection makefile for: devcpu-data
# Date created: 2007-07-19
# Whom: stas
#
# $FreeBSD$
#
PORTNAME= data
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.SpringDaemons.com/soft/
PKGNAMEPREFIX= devcpu-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= stas@FreeBSD.org
COMMENT= Intel and AMD CPUs microcode updates
USE_BZIP2= yes
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
do-install:
${MKDIR} ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/mcodes/* ${DATADIR}/
@${TOUCH} ${DATADIR}/.do_not_delete
.include <bsd.port.post.mk>