components/fetchmail/Makefile
author John Beck <John.Beck@Oracle.COM>
Wed, 09 Nov 2016 09:51:14 -0800
changeset 7279 c2b1ddc7e31d
parent 7270 2a82983df5d6
child 7687 1093e2a9adbd
permissions -rw-r--r--
25071339 partially revert 23333808 for FOSS evaluation builds
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
255
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     1
#
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     3
#
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     7
#
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    12
#
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    18
#
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    20
#
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    21
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
255
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    25
BUILD_BITS= 64
255
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    27
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		fetchmail
6348
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    29
COMPONENT_VERSION=	6.3.26
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 587
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
6348
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    32
    sha256:79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    33
COMPONENT_ARCHIVE_URL=	https://sourceforge.net/projects/$(COMPONENT_NAME)/files/branch_6.3/$(COMPONENT_ARCHIVE)
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.fetchmail.info/
255
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    35
6348
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    36
TPNO=			29615
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1259
diff changeset
    37
7245
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6348
diff changeset
    38
# Enable adiheap and adistack security extensions
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6348
diff changeset
    39
ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6348
diff changeset
    40
ADISTACK_MODE =	$(ADISTACK_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6348
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
255
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    43
2217
8878794c871e 20062980 fetchmailconf should move to Python 2.7
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    44
CONFIGURE_OPTIONS  +=		PYTHON="$(PYTHON.2.7.32)"
255
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS  +=		--with-kerberos5
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS  +=		--with-ssl
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS  +=		--enable-NTLM
52abf74b9323 7037058 Move fetchmail to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    48
2217
8878794c871e 20062980 fetchmailconf should move to Python 2.7
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    49
# Change the shebang line to use Python 2.7 explicitly, and drop the
8878794c871e 20062980 fetchmailconf should move to Python 2.7
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    50
# fixed file into /usr/bin, where our package manifest expects it.
1259
68c7d53a1374 16624899 enable 64-bit for fetchmail
John Beck <John.Beck@Oracle.COM>
parents: 1175
diff changeset
    51
COMPONENT_POST_INSTALL_ACTION = \
2217
8878794c871e 20062980 fetchmailconf should move to Python 2.7
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    52
    $(GSED) -e "s|/usr/bin/env python|$(PYTHON.2.7.32)|" \
8878794c871e 20062980 fetchmailconf should move to Python 2.7
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    53
	$(PROTO_DIR)/usr/lib/python2.7/site-packages/fetchmailconf.py > \
8878794c871e 20062980 fetchmailconf should move to Python 2.7
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    54
	$(PROTO_DIR)$(USRBIN.32)/fetchmailconf
1259
68c7d53a1374 16624899 enable 64-bit for fetchmail
John Beck <John.Beck@Oracle.COM>
parents: 1175
diff changeset
    55
3844
15407713dc58 20460269 fetchmail should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    56
COMPONENT_TEST_TRANSFORMS += \
6348
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    57
	'-n ' \
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    58
	'-e "/SKIP/p" ' \
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    59
	'-e "/PASS/p" ' \
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    60
	'-e "/FAIL/p" ' \
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    61
	'-e "/^=======/p" ' \
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    62
	'-e "/were not run/p" ' \
6933441922fe 23209582 Upgrade fetchmail to 6.3.26
Rich Burridge <rich.burridge@oracle.com>
parents: 6066
diff changeset
    63
	'-e "/passed/p" '
3844
15407713dc58 20460269 fetchmail should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    64
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    65
REQUIRED_PACKAGES += library/python/tkinter-27
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    66
REQUIRED_PACKAGES += library/security/openssl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    67
REQUIRED_PACKAGES += runtime/python-27
6066
9fb353052db4 23347372 tweak fetchmail REQUIRED_PACKAGES so we can build on 11.3 and 12
John Beck <John.Beck@Oracle.COM>
parents: 6049
diff changeset
    68
REQUIRED_PACKAGES += security/kerberos-5
7279
c2b1ddc7e31d 25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents: 7270
diff changeset
    69
ifeq ($(OS_VERSION),5.11)
c2b1ddc7e31d 25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents: 7270
diff changeset
    70
REQUIRED_PACKAGES += service/security/kerberos-5
c2b1ddc7e31d 25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents: 7270
diff changeset
    71
endif
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    72
REQUIRED_PACKAGES += shell/ksh93