components/stunnel/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 16 Oct 2013 10:00:08 -0700
changeset 1512 f57514e19ede
parent 1252 86b53be32d7c
child 2225 f064d3d3190d
permissions -rw-r--r--
17596443 nm -p output change breaks userland 17361780 LD_Z_TEXT should, ya know, contain -z text not -z direct 17602195 elf_wrong_location_check could be better
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		stunnel
1252
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    29
COMPONENT_VERSION=	4.56
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.stunnel.org/
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
1252
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    34
    sha256:9cae2cfbe26d87443398ce50d7d5db54e5ea363889d5d2ec8d2778a01c871293
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
1252
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/ac4c4a30bd7a55b6687cbd62d864054c/$(COMPONENT_ARCHIVE)
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
COMPONENT_BUGDB=	utility/stunnel
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/prep.mk
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/configure.mk
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/ips.mk
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# need /usr/perl5/bin on path to access pod2man perl script, used by 
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
# the build to create docs
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
COMPONENT_BUILD_ENV +=  PATH=/usr/perl5/bin:$(PATH)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
CPPFLAGS +=	"-DPIDFILE='\"/var/run/stunnel.pid\"'"
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
1252
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    50
# used to generate the 64-bit interposer location
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    51
CPPFLAGS += -DMACH64='\"$(MACH64)\"'
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    52
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS +=	--disable-fips
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS +=	--enable-ipv6
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS +=	CPPFLAGS="$(CPPFLAGS)"
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
1252
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    60
# used to generate LD_PRELOAD_* interposer pathnames
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    61
COMPONENT_BUILD_ARGS += pkglibdir=/usr/lib/stunnel
86b53be32d7c 16533604 stunnel should upgrade to 4.56
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    62
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
COMPONENT_PRE_INSTALL_ACTION = \
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
	$(MKDIR) $(PROTOETCDIR)/stunnel ; \
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
	$(TOUCH) $(PROTOETCDIR)/stunnel/stunnel.pem
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
1223
28d011526d15 16419497 ASLR should be enabled for lftp, m4, ncurses, stunnel, tcpdump, and top
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1201
diff changeset
    69
ASLR_MODE = $(ASLR_ENABLE)
28d011526d15 16419497 ASLR should be enabled for lftp, m4, ncurses, stunnel, tcpdump, and top
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1201
diff changeset
    70
1131
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
# common targets
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
build:          $(BUILD_32_and_64)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
install:        $(INSTALL_32_and_64)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
test:           $(NO_TESTS)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
4c414ada49de 16133924 Move stunnel from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
include ../../make-rules/depend.mk