usr/src/cmd/ipmitool/Makefile.sfw
changeset 0 b34509ac961f
child 218 cced5f973d73
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usr/src/cmd/ipmitool/Makefile.sfw	Wed Oct 21 17:43:30 2009 +0200
@@ -0,0 +1,78 @@
+#
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+# ident	"@(#)Makefile.sfw	1.15	09/08/14 SMI"
+#
+
+PROD=ipmitool
+VER=1.8.10
+TARBALL=$(PROD)-$(VER).tar.gz
+
+include ../Makefile.cmd
+
+all: $(PROD)-$(VER)/config.status
+	cd $(PROD)-$(VER); env \
+	    PATH=$(SFW_PATH) \
+	    MAKE=$(GMAKE) \
+	    $(GMAKE) -e
+	@find . -name core -exec rm -f {} \;
+
+test:	# run test_ipmitool && test_ipmievd as root vs self
+	# on test vs build machine in tmp vs workspace dir
+
+install: all
+	$(SH) ./install-sfw
+
+$(PROD)-$(VER)/config.status: $(PROD)-$(VER)/configure
+	cd $(PROD)-$(VER); env \
+	"LDFLAGS=-R/usr/sfw/lib -L/usr/sfw/lib" \
+	"CPPFLAGS=-I/usr/sfw/include" \
+	PATH=$(SFW_PATH) \
+	MAKE=$(GMAKE) \
+	./configure --prefix=/usr/sfw --enable-intf-free=no
+
+# Patches:
+#
+# 1. ipmitool.scanning.patch - fix ipmitool SEGV core dump seen on some
+#    Sun Fire X4500s. This fix is expected to be delivered back to Sourceforge
+#    before 1.8.11 or 1.8.12 by GNHSoft (or by Sun NSG RE). Sun CR 6739869.
+#
+#    		gpatch -p0 < ipmitool.scanning.patch
+#
+# 2. ipmievd.local4.patch - fix to allow ipmievd to automatically start
+#    logging events to syslog "out of the box" instead of having to edit
+#    /etc/syslog.conf with the following line to allow logging of events:
+#
+#        	local4.info                      /var/adm/messages
+
+$(PROD)-$(VER)/configure: $(TARBALL)
+	gzip -dc $(TARBALL) | tar xopf -
+	touch $(PROD)-$(VER)/configure
+	gpatch -p0 < ipmitool.scanning.patch
+	gpatch -p0 < ipmievd.local4.patch
+
+clean:
+	-rm -rf $(PROD)-$(VER)
+
+include ../Makefile.targ