diff options
author | krion <krion@FreeBSD.org> | 2006-05-01 17:24:35 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2006-05-01 17:24:35 +0000 |
commit | e7d55e0fadb5cb63e860f4bcaacecc419a7146e5 (patch) | |
tree | 06139baa92b7ce8dc0c3c66f4197eb6c5cd1ebe0 /sysutils/ipmi-kmod | |
parent | 327bc4c1fa19f00a93a2bb4801cfd58e7e0a7c43 (diff) | |
download | FreeBSD-ports-e7d55e0fadb5cb63e860f4bcaacecc419a7146e5.zip FreeBSD-ports-e7d55e0fadb5cb63e860f4bcaacecc419a7146e5.tar.gz |
Add ipmi-kmod 20060418, backport of ipmi driver from FreeBSD 7-CURRENT
for FreeBSD 6.x.
PR: ports/96324
Submitted by: Nick Barkas <snb@threerings.net>
Diffstat (limited to 'sysutils/ipmi-kmod')
-rw-r--r-- | sysutils/ipmi-kmod/Makefile | 41 | ||||
-rw-r--r-- | sysutils/ipmi-kmod/distinfo | 3 | ||||
-rw-r--r-- | sysutils/ipmi-kmod/pkg-deinstall | 20 | ||||
-rw-r--r-- | sysutils/ipmi-kmod/pkg-descr | 3 |
4 files changed, 67 insertions, 0 deletions
diff --git a/sysutils/ipmi-kmod/Makefile b/sysutils/ipmi-kmod/Makefile new file mode 100644 index 0000000..fc1ec52 --- /dev/null +++ b/sysutils/ipmi-kmod/Makefile @@ -0,0 +1,41 @@ +# Ports collection makefile for: ipmi-kmod +# Date created: 18 April 2006 +# Whom: Nick Barkas <snb@threerings.net> +# +# $FreeBSD$ +# + +PORTNAME= ipmi-kmod +PORTVERSION= 20060418 +CATEGORIES= sysutils +MASTER_SITES= http://dpw.threerings.net/projects/ipmi-kmod/ + +MAINTAINER= snb@threerings.net +COMMENT= Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x + +PLIST_FILES= include/sys/ipmi.h +PLIST_DIRS= include/sys + +# 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 ${OSVERSION} < 600000 +IGNORE= FreeBSD before 6.0 is not supported +.elif ${OSVERSION} > 700000 +IGNORE= FreeBSD 7.0 has an ipmi driver supplied by the kernel +.endif + +do-install: + @${MKDIR} ${PREFIX}/include/sys + ${INSTALL_SCRIPT} ${WRKSRC}/sys/ipmi.h ${PREFIX}/include/sys + ${INSTALL_SCRIPT} ${WRKSRC}/ipmi.ko ${KMODDIR} + +.include <bsd.port.post.mk> diff --git a/sysutils/ipmi-kmod/distinfo b/sysutils/ipmi-kmod/distinfo new file mode 100644 index 0000000..6ec037d --- /dev/null +++ b/sysutils/ipmi-kmod/distinfo @@ -0,0 +1,3 @@ +MD5 (ipmi-kmod-20060418.tar.gz) = adefe4ddc9360f1fbc3817e0b031eeef +SHA256 (ipmi-kmod-20060418.tar.gz) = 460a0082139047051bdabea75b4696f9e76139380e33e392ee9d56b02f089cea +SIZE (ipmi-kmod-20060418.tar.gz) = 13597 diff --git a/sysutils/ipmi-kmod/pkg-deinstall b/sysutils/ipmi-kmod/pkg-deinstall new file mode 100644 index 0000000..5646d3c --- /dev/null +++ b/sysutils/ipmi-kmod/pkg-deinstall @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Unload ipmi module if necessary, then remove the file +# +# $FreeBSD$ +# + +if [ "x$2" != "xDEINSTALL" ]; then + exit 0 +fi + +echo "Unloading ipmi kernel module." + +# Unload the module if it is currently loaded. +kldstat -n ipmi 2>/dev/null >/dev/null && kldunload ipmi + +# Now remove the .ko file +KMODDIR="/boot/modules" +[ -f ${KMODDIR}/ipmi.ko ] && rm -f ${KMODDIR}/ipmi.ko + diff --git a/sysutils/ipmi-kmod/pkg-descr b/sysutils/ipmi-kmod/pkg-descr new file mode 100644 index 0000000..6dd4161 --- /dev/null +++ b/sysutils/ipmi-kmod/pkg-descr @@ -0,0 +1,3 @@ +Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x. + +WWW: http://dpw.threerings.net/projects/ipmi-kmod/ |