Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2006 11:40:37 -0700 (PDT)
From:      Nick Barkas <snb@threerings.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96324: Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x
Message-ID:  <20060425184037.93CC165FA@mail.earth.threerings.net>
Resent-Message-ID: <200604251850.k3PIoFAt073768@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96324
>Category:       ports
>Synopsis:       Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 25 18:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Nick Barkas
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
Three Rings Design
>Environment:
System: FreeBSD lab1.earth.threerings.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Wed Apr 5 14:35:11 PDT 2006 root@lab1.earth.threerings.net:/usr/obj/usr/src/sys/SMP i386

>Description:
	This is a backport port for the ipmi driver from FreeBSD 7-CURRENT to run on
    FreeBSD 6.x systems. More info available at
    http://dpw.threerings.net/projects/ipmi-kmod/
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ipmi-kmod
#	ipmi-kmod/Makefile
#	ipmi-kmod/distinfo
#	ipmi-kmod/pkg-deinstall
#	ipmi-kmod/pkg-descr
#
echo c - ipmi-kmod
mkdir -p ipmi-kmod > /dev/null 2>&1
echo x - ipmi-kmod/Makefile
sed 's/^X//' >ipmi-kmod/Makefile << 'END-of-ipmi-kmod/Makefile'
X# Ports collection makefile for: ipmi-kmod
X# Date created: 18 April 2006
X# Whom:         Nick Barkas <snb@threerings.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ipmi-kmod
XPORTVERSION=	20060418
XCATEGORIES=	sysutils
XMASTER_SITES=	http://dpw.threerings.net/projects/ipmi-kmod/
X
XMAINTAINER=	snb@threerings.net
XCOMMENT=	Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x
X
XPLIST_FILES=	include/sys/ipmi.h
XPLIST_DIRS=	include/sys
XMAN4=		ipmi.4
X
X# We want to install the module in /boot/modules rather than /boot/kernel
XKMODDIR=	/boot/modules
X
X.include <bsd.port.pre.mk>
X
XONLY_FOR_ARCHS=	i386 amd64
X
X.if !exists(${SRC_BASE}/sys/Makefile)
XIGNORE=		requires kernel source to be installed
X.endif
X
X.if ${OSVERSION} < 600000
XIGNORE=		FreeBSD before 6.0 is not supported
X.elif ${OSVERSION} > 700000
XIGNORE=		FreeBSD 7.0 has an ipmi driver supplied by the kernel
X.endif
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/include/sys
X	${INSTALL_SCRIPT} ${WRKSRC}/sys/ipmi.h ${PREFIX}/include/sys
X	${INSTALL_SCRIPT} ${WRKSRC}/ipmi.ko ${KMODDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/man/ipmi.4 ${PREFIX}/man/man4
X
X.include <bsd.port.post.mk>
END-of-ipmi-kmod/Makefile
echo x - ipmi-kmod/distinfo
sed 's/^X//' >ipmi-kmod/distinfo << 'END-of-ipmi-kmod/distinfo'
XMD5 (ipmi-kmod-20060418.tar.gz) = adefe4ddc9360f1fbc3817e0b031eeef
XSIZE (ipmi-kmod-20060418.tar.gz) = 13597
END-of-ipmi-kmod/distinfo
echo x - ipmi-kmod/pkg-deinstall
sed 's/^X//' >ipmi-kmod/pkg-deinstall << 'END-of-ipmi-kmod/pkg-deinstall'
X#!/bin/sh
X#
X# Unload ipmi module if necessary, then remove the file
X#
X# $FreeBSD$
X#
X
Xif [ "x$2" != "xDEINSTALL" ]; then
X	exit 0
Xfi
X
Xecho "Unloading ipmi kernel module."
X
X# Unload the module if it is currently loaded.
Xkldstat -n ipmi 2>/dev/null >/dev/null && kldunload ipmi
X
X# Now remove the .ko file
XKMODDIR="/boot/modules"
X[ -f ${KMODDIR}/ipmi.ko ] && rm -f ${KMODDIR}/ipmi.ko
X
END-of-ipmi-kmod/pkg-deinstall
echo x - ipmi-kmod/pkg-descr
sed 's/^X//' >ipmi-kmod/pkg-descr << 'END-of-ipmi-kmod/pkg-descr'
XBackport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x.
X
XWWW: http://dpw.threerings.net/projects/ipmi-kmod/
END-of-ipmi-kmod/pkg-descr
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060425184037.93CC165FA>