components/mailman/Makefile
author John Beck <John.Beck@Oracle.COM>
Wed, 04 Mar 2015 15:13:21 -0800
branchs11-update
changeset 3922 f4e70ad144ea
parent 3920 ea149235608a
child 3996 20c0f21bbe1e
permissions -rw-r--r--
20632171 Mailman should publish its .pyc files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3919
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
e9daafafef42 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
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
e9daafafef42 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.
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
e9daafafef42 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
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
e9daafafef42 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.
e9daafafef42 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
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
#
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		mailman
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
COMPONENT_VERSION=	2.1.18-1
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
IPS_COMPONENT_VERSION=	2.1.18.1
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_PROJECT_URL=	http://www.list.org/
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	sha256:ce70ed8b58d719cab80758f39a7258c0a28f8e8e859facdaa8c29add620a5c2c
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_BUGDB=	utility/mailman
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
TPNO=			18736
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
include ../../make-rules/prep.mk
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    38
include ../../make-rules/configure.mk
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
include ../../make-rules/ips.mk
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    40
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    41
CONFIGURE_ENV	+=	MAILMAN_USER=mailman
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
CONFIGURE_ENV	+=	MAILMAN_GROUP=mailman
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    43
3920
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    44
CONFIGURE_OPTIONS +=	--prefix=/usr/lib/mailman
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    45
CONFIGURE_OPTIONS +=	--with-var-prefix=/var/mailman
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    46
CONFIGURE_OPTIONS +=	--with-mail-gid=other
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    47
CONFIGURE_OPTIONS +=	--with-cgi-gid=webservd
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    48
CONFIGURE_OPTIONS +=	--with-python=/usr/bin/python2.7
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    49
CONFIGURE_OPTIONS +=	--without-permcheck
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    50
CONFIGURE_OPTIONS +=	--with-mailhost=localhost
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    51
CONFIGURE_OPTIONS +=	--with-urlhost=localhost
ea149235608a 20009471 mailman binaries are 32-bit despite $(BUILD_64) in its Makefile
John Beck <John.Beck@Oracle.COM>
parents: 3919
diff changeset
    52
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
3919
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    53
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
ASLR_MODE = $(ASLR_ENABLE)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    55
3922
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    56
# Copy generated file to proto area.  Then py-compile several files that are
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    57
# used as modules in a devious way.
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    58
COMPONENT_POST_INSTALL_ACTION=	\
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    59
	($(CP) $(BUILD_DIR_64)/Mailman/Defaults.py \
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    60
		$(PROTOUSRLIBDIR)/mailman/Mailman/ ; \
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    61
	 $(PYTHON.2.7) -m py_compile $(PROTOUSRLIBDIR)/mailman/*/paths.py \
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    62
		$(PROTOUSRLIBDIR)/mailman/Mailman/Defaults.py)
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    63
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    64
configure:	$(CONFIGURE_64)
f4e70ad144ea 20632171 Mailman should publish its .pyc files
John Beck <John.Beck@Oracle.COM>
parents: 3920
diff changeset
    65
3919
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    66
build:		$(BUILD_64)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    67
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    68
install:	$(INSTALL_64)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    69
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    70
test:		$(NO_TESTS)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    71
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    72
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    73
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    74
PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    75
e9daafafef42 PSARC 2014/296 Mailman
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    76
include ../../make-rules/depend.mk