mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
4c97fac781
hacks to install kernel loadable modules correctly on amd64 platforms with the new INSTALL_KLD command. All PORTREVISIONS have been bumped to show when the new version of installing became available.
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Ports collection makefile for: ipmi-kmod
|
|
# Date created: 18 April 2006
|
|
# Whom: Nick Barkas <snb@threerings.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ipmi-kmod
|
|
PORTVERSION= 20060926
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils kld
|
|
MASTER_SITES= http://dpw.threerings.net/projects/ipmi-kmod/
|
|
|
|
MAINTAINER= snb@threerings.net
|
|
COMMENT= Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 5.3 - 6.1
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
SUB_LIST+= KMODDIR=${KMODDIR}
|
|
|
|
PLIST_FILES= include/sys/ipmi.h \
|
|
"@dirrm include/sys" \
|
|
"@cwd /" \
|
|
${KMODDIR:C,^/,,}/ipmi.ko \
|
|
|
|
# We want to install the module in /boot/modules rather than /boot/kernel
|
|
KMODDIR= /boot/modules
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
|
IGNORE= requires kernel source to be installed
|
|
.endif
|
|
|
|
.if exists(${SRC_BASE}/sys/dev/ipmi)
|
|
IGNORE= is already included in the base system
|
|
.elif ${OSVERSION} < 503000
|
|
IGNORE= does not support FreeBSD before 5.3
|
|
.endif
|
|
|
|
# Need to include this extra path on 5.x.
|
|
.if ${OSVERSION} < 600000
|
|
CFLAGS+= -I@/contrib/dev/acpica
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/include/sys
|
|
${INSTALL_DATA} ${WRKSRC}/sys/ipmi.h ${PREFIX}/include/sys
|
|
${INSTALL_KLD} ${WRKSRC}/ipmi.ko ${KMODDIR}
|
|
|
|
post-install:
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|