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.
#
#ident "@(#)Makefile.sfw 1.3 10/03/16 SMI"
include ../Makefile.cmd
#
# Macros
#
VER = 3.22
PROJECT = procmail
PROD = $(PROJECT)-$(VER)
PKG = mail/procmail
GZFILE = $(PROD).tar.gz
LDFLAGS += \
-L$(ROOT)/usr/lib \
-M $(SRC)/cmd/mapfile_noexstk \
-z ignore
POST_PROCESS_BIN = $(SRC)/tools/post_process \
$(ROOT)/usr/bin/formail \
$(ROOT)/usr/bin/lockfile \
$(ROOT)/usr/bin/procmail
POST_PROCESS_MAN = $(SRC)/tools/sunman \
-n "$(PROJECT)" -p "$(PKG)" -s Committed \
$(ROOT)/usr/share/man/man1/procmail.1 \
$(ROOT)/usr/share/man/man1/formail.1 \
$(ROOT)/usr/share/man/man1/lockfile.1 \
$(ROOT)/usr/share/man/man5/procmailrc.5 \
$(ROOT)/usr/share/man/man5/procmailsc.5 \
$(ROOT)/usr/share/man/man5/procmailex.5
#
# Targets
#
all: $(PROD)/Makefile
(cd $(PROD); $(CCSMAKE) \
MANDIR=/usr/share/man \
LOCKINGTEST="/tmp /var/tmp ." \
CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
LDFLAGS="$(LDFLAGS)" \
BSHELL=$(BASH) \
MAKE=$(CCSMAKE) \
all)
install: all
(cd $(PROD); $(CCSMAKE) install \
MAKE=$(CCSMAKE) \
BASENAME="$(ROOT)/usr" \
BSHELL=$(BASH) \
MANDIR="$(ROOT)/usr/share/man")
$(POST_PROCESS_BIN)
$(POST_PROCESS_MAN)
$(PROD)/Makefile: $(GZFILE)
gzcat $^ | $(TAR) xopf -
mv $(PROD)/src/Makefile.0 $(PROD)/src/Makefile.0.orig
echo "SHELL=$(BASH)" > $(PROD)/src/Makefile.0
cat $(PROD)/src/Makefile.0.orig >> $(PROD)/src/Makefile.0
$(TOUCH) $@
clean:
-rm -rf $(PROD)
install_h:
include ../Makefile.targ