From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 25 18:50:17 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 532B416A403 for ; Tue, 25 Apr 2006 18:50:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A057D43D4C for ; Tue, 25 Apr 2006 18:50:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3PIoFMg073769 for ; Tue, 25 Apr 2006 18:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3PIoFAt073768; Tue, 25 Apr 2006 18:50:15 GMT (envelope-from gnats) Resent-Date: Tue, 25 Apr 2006 18:50:15 GMT Resent-Message-Id: <200604251850.k3PIoFAt073768@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Barkas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 135CA16A400 for ; Tue, 25 Apr 2006 18:40:38 +0000 (UTC) (envelope-from snb@mail.earth.threerings.net) Received: from mail.earth.threerings.net (mail.earth.threerings.net [64.81.27.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE0EB43D45 for ; Tue, 25 Apr 2006 18:40:37 +0000 (GMT) (envelope-from snb@mail.earth.threerings.net) Received: by mail.earth.threerings.net (Postfix, from userid 10038) id 93CC165FA; Tue, 25 Apr 2006 11:40:37 -0700 (PDT) Message-Id: <20060425184037.93CC165FA@mail.earth.threerings.net> Date: Tue, 25 Apr 2006 11:40:37 -0700 (PDT) From: Nick Barkas To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/96324: Backport of ipmi driver from FreeBSD 7-CURRENT for FreeBSD 6.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nick Barkas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2006 18:50:17 -0000 >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 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 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 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: