1 # 2 # 3 # CDDL HEADER START 4 # 5 # The contents of this file are subject to the terms of the 6 # Common Development and Distribution License (the "License"). 7 # You may not use this file except in compliance with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 # ident "@(#)Makefile.sfw 1.15 09/08/14 SMI" 26 # 27 28 PROD=ipmitool 29 VER=1.8.10 30 TARBALL=$(PROD)-$(VER).tar.gz 31 32 include ../Makefile.cmd 33 34 all: $(PROD)-$(VER)/config.status 35 cd $(PROD)-$(VER); env \ 36 PATH=$(SFW_PATH) \ 37 MAKE=$(GMAKE) \ 38 $(GMAKE) -e 39 @find . -name core -exec rm -f {} \; 40 41 test: # run test_ipmitool && test_ipmievd as root vs self 42 # on test vs build machine in tmp vs workspace dir 43 44 install: all 45 $(SH) ./install-sfw 46 47 $(PROD)-$(VER)/config.status: $(PROD)-$(VER)/configure 48 cd $(PROD)-$(VER); env \ 49 "LDFLAGS=-R/usr/sfw/lib -L/usr/sfw/lib" \ 50 "CPPFLAGS=-I/usr/sfw/include" \ 51 PATH=$(SFW_PATH) \ 52 MAKE=$(GMAKE) \ 53 ./configure --prefix=/usr/sfw --enable-intf-free=no 54 55 # Patches: 56 # 57 # 1. ipmitool.scanning.patch - fix ipmitool SEGV core dump seen on some 58 # Sun Fire X4500s. This fix is expected to be delivered back to Sourceforge 59 # before 1.8.11 or 1.8.12 by GNHSoft (or by Sun NSG RE). Sun CR 6739869. 60 # 61 # gpatch -p0 < ipmitool.scanning.patch 62 # 63 # 2. ipmievd.local4.patch - fix to allow ipmievd to automatically start 64 # logging events to syslog "out of the box" instead of having to edit 65 # /etc/syslog.conf with the following line to allow logging of events: 66 # 67 # local4.info /var/adm/messages 68 69 $(PROD)-$(VER)/configure: $(TARBALL) 70 gzip -dc $(TARBALL) | tar xopf - 71 touch $(PROD)-$(VER)/configure 72 gpatch -p0 < ipmitool.scanning.patch 73 gpatch -p0 < ipmievd.local4.patch 74 75 clean: 76 -rm -rf $(PROD)-$(VER) 77 78 include ../Makefile.targ 79