Import sfw build 137
Bugs Fixed
----------
6926835 Wireshark cannot open files typed into the location bar
6930214 CVE-2010-0624: Heap-based buffer overflow in GNU Tar
6933424 Various sfw manual pages need to be adjusted to use the new OpenSolaris package names.
6937764 upgrade OpenSSL to 0.9.8n (and fix CVE-2010-0740)
#
#
# 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 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)Makefile.sfw 1.12 09/09/22 SMI"
include ../Makefile.cmd
VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
SOURCE_ARCHIVE = $(COMPONENT_ARCHIVE:sh)
CFLAGS += -features=extensions
PROGS=egrep fgrep grep
MAN1FILES=$(PROGS:%=%.1)
BINLINKS=$(PROGS:%=$(ROOTGNUBIN)/%)
SFWLINKS=$(PROGS:%=$(ROOTSFWBIN)/g%)
MAN1LINKS=$(MAN1FILES:%=$(ROOTGNUMAN1)/%)
all: $(VER)/.built
install: $(VER)/.installed $(BINLINKS) $(SFWLINKS) $(MAN1LINKS)
$(SRC)/tools/protofix --pkg $(COMPONENT_PACKAGES:sh) --perm
$(BINLINKS):
$(RM) $@ ; $(SYMLINK) ../../bin/g$(@F) $@
$(SFWLINKS):
$(RM) $@ ; $(SYMLINK) ../../bin/$(@F) $@
$(MAN1LINKS):
$(RM) $@ ; $(SYMLINK) ../../../../share/man/man1/ggrep.1 $@
$(VER)/.built: $(VER)/config.status
(cd $(VER); env \
CC=$(CC) \
"CFLAGS=$(CFLAGS)" \
LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \
PATH=$(SFW_PATH) \
MAKE=$(GMAKE) \
$(GMAKE))
@find . -name core -exec rm -f {} \;
$(TOUCH) $@
$(VER)/.installed: $(VER)/.built
(cd $(VER); env - \
PATH=$(SFW_PATH) \
MANSCRIPT=$(COMPONENT_TOP)/sunman-stability \
DESTDIR=$(ROOT) \
MAKE=$(GMAKE) \
$(GMAKE) top_builddir=$(COMPONENT_TOP)/$(VER) install)
$(TOUCH) $@
$(VER)/config.status: $(VER)/configure
(cd $(VER); env \
CC=$(CC) \
CFLAGS="$(CFLAGS)" \
PATH=$(SFW_PATH) \
INSTALL=$(INSTALL_PROTO) \
MAKE=$(GMAKE) \
$(CONFIG_SHELL) ./configure --prefix=/usr --program-prefix=g)
$(VER)/configure: $(VER)/.patched
$(TOUCH) $@
clean:
-rm -rf $(VER)
include ../Makefile.targ