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 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "@(#)Makefile.sfw 1.10 10/03/17 SMI"
#
include ../Makefile.cmd
#
# Macros
#
PROJECT = $(COMPONENT_NAME:sh)
VER = $(PROJECT)-$(COMPONENT_VERSION:sh)
PKG = mail/mutt
TARBALL = $(COMPONENT_ARCHIVE:sh)
CFGETCMUTT = $(CFGETC)/$(PROJECT)
DOCDIR = $(CFGDOC)/$(PROJECT)
MANFILES_STUBBED = \
"$(ROOTMAN1)/pgpewrap.1" \
"$(ROOTMAN1)/pgpring.1" \
"$(ROOTMAN1)/smime_keys.1"
# Command to create stubbed man pages
STUB_MAN = \
for f in $(MANFILES_STUBBED); \
do \
command="`$(ECHO) "$$f" | $(SED) 's@.*/@@; s@\\..*@@'`"; \
section="`$(ECHO) "$$f" | $(SED) 's@.*\\.@@'`"; \
$(RM) "$$f"; \
$(SH) ./stubman.sh "$$command" "$$section" $(DOCDIR) > "$$f"; \
$(CHMOD) 0444 "$$f"; \
done; echo
POST_PROCESS_MAN = $(SRC)/tools/sunman -n "$(PROJECT)" -p "$(PKG)" \
-s Uncommitted "$(ROOTMAN1)/flea.1" \
-s Uncommitted "$(ROOTMAN1)/mutt.1" \
-s Uncommitted "$(ROOTMAN1)/muttbug.1" \
-s Volatile "$(ROOTMAN1)/pgpewrap.1" \
-s Volatile "$(ROOTMAN1)/pgpring.1" \
-s Volatile "$(ROOTMAN1)/smime_keys.1" \
-s Committed "$(ROOTMAN5)/mbox.5" \
-s Committed "$(ROOTMAN5)/mmdf.5" \
-s Volatile "$(ROOTMAN5)/muttrc.5"
PATCHES:sh = echo Patches/*.patch
# Options for configure script
CONFIGURE_OPTIONS += $(SFW_ENV)
CONFIGURE_OPTIONS += CC="$(CC)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += INSTALL="$(INSTALL)"
CONFIGURE_OPTIONS += INSTALL_DATA='$${INSTALL} -m 444'
CONFIGURE_OPTIONS += --sysconfdir=$(CFGETCMUTT)
CONFIGURE_OPTIONS += --enable-pop
CONFIGURE_OPTIONS += --enable-imap
CONFIGURE_OPTIONS += --enable-smtp
CONFIGURE_OPTIONS += --enable-hcache
CONFIGURE_OPTIONS += --with-gdbm="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --with-regex
CONFIGURE_OPTIONS += --with-slang="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --with-ssl="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --with-idn="$(ROOT)$(CFGPREFIX)"
CFLAGS += -I"$(ROOTINCLUDE)/idn"
CONFIGURE_OPTIONS += --with-wc-funcs
CONFIGURE_OPTIONS += --with-sasl
# Environment for target install (required by install-proto and friends)
INSTALL_ENV = SRC="$(SRC)"
INSTALL_ENV += ROOT="$(ROOT)"
# Optimization level
sparc_COPTFLAG = -xO4
#
# Targets
#
all: $(VER)/config.status
(cd $(VER); env - $(SFW_MAKE))
install: all stubman.sh
(cd $(VER); env - $(INSTALL_ENV) $(SFW_MAKE) install \
DESTDIR="$(ROOT)")
$(STUB_MAN)
$(POST_PROCESS_MAN)
$(VER)/config.status: $(VER)/configure
(cd $(VER); env - \
CONFIG_SHELL=$(CONFIG_SHELL) \
$(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS))
$(VER)/configure: $(VER)/$(SFW_STAMP_PATCHED)
$(TOUCH) $@
clean:
-$(RM) -r $(VER)
install_h:
include ../Makefile.targ