components/mailman/Makefile
author zihao.zhu@oracle.com <zihao.zhu@oracle.com>
Tue, 18 Oct 2016 14:50:09 -0700
changeset 7123 b650e07ff9f6
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
24750381 python-ldap missing dependencies on pyasn1, pyasn1-modules
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2089
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    21
2089
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@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: 5125
diff changeset
    23
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    25
BUILD_BITS= 64
2089
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		mailman
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.1.18-1
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
IPS_COMPONENT_VERSION=	2.1.18.1
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.list.org/
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	sha256:ce70ed8b58d719cab80758f39a7258c0a28f8e8e859facdaa8c29add620a5c2c
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
TPNO=			18736
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    37
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    38
include $(WS_MAKE_RULES)/gnu-component.mk
2089
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    40
CONFIGURE_ENV	+=	MAILMAN_USER=mailman
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    41
CONFIGURE_ENV	+=	MAILMAN_GROUP=mailman
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    43
CONFIGURE_PREFIX= $(USRLIBDIR)/mailman
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    44
CONFIGURE_OPTIONS +=	--with-var-prefix=$(VARDIR)/mailman
2201
861310b6f3b2 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 2089
diff changeset
    45
CONFIGURE_OPTIONS +=	--with-mail-gid=other
861310b6f3b2 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 2089
diff changeset
    46
CONFIGURE_OPTIONS +=	--with-cgi-gid=webservd
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    47
CONFIGURE_OPTIONS +=	--with-python=$(PYTHON.2.7)
2201
861310b6f3b2 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 2089
diff changeset
    48
CONFIGURE_OPTIONS +=	--without-permcheck
861310b6f3b2 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 2089
diff changeset
    49
CONFIGURE_OPTIONS +=	--with-mailhost=localhost
861310b6f3b2 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 2089
diff changeset
    50
CONFIGURE_OPTIONS +=	--with-urlhost=localhost
2089
99dd558dda74 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    51
3898
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    52
# Copy generated file to proto area.  Then py-compile several files that are
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    53
# used as modules in a devious way.
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    54
COMPONENT_POST_INSTALL_ACTION=	\
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    55
	($(CP) $(BUILD_DIR_64)/Mailman/Defaults.py \
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    56
		$(PROTOUSRLIBDIR)/mailman/Mailman/ ; \
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    57
	 $(PYTHON.2.7) -m py_compile $(PROTOUSRLIBDIR)/mailman/*/paths.py \
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    58
		$(PROTOUSRLIBDIR)/mailman/Mailman/Defaults.py)
acd7f120a52a 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    59
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    60
REQUIRED_PACKAGES += library/python/dnspython-27
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    61
REQUIRED_PACKAGES += runtime/python-27
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    62
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    63
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    64
REQUIRED_PACKAGES += system/network