author | Yiteng Zhang <yiteng.zhang@oracle.com> |
Tue, 04 Oct 2016 11:04:14 -0700 | |
branch | s11u3-sru |
changeset 7033 | a49f9f0272f2 |
parent 3996 | 20c0f21bbe1e |
permissions | -rw-r--r-- |
3919 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
21 |
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3919 | 22 |
# |
23 |
include ../../make-rules/shared-macros.mk |
|
24 |
||
25 |
COMPONENT_NAME= mailman |
|
26 |
COMPONENT_VERSION= 2.1.18-1 |
|
27 |
IPS_COMPONENT_VERSION= 2.1.18.1 |
|
28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 |
COMPONENT_PROJECT_URL= http://www.list.org/ |
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
|
31 |
COMPONENT_ARCHIVE_HASH= sha256:ce70ed8b58d719cab80758f39a7258c0a28f8e8e859facdaa8c29add620a5c2c |
|
32 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
33 |
COMPONENT_BUGDB= utility/mailman |
|
34 |
||
35 |
TPNO= 18736 |
|
36 |
||
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
37 |
include $(WS_MAKE_RULES)/prep.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/configure.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/ips.mk |
3919 | 40 |
|
41 |
CONFIGURE_ENV += MAILMAN_USER=mailman |
|
42 |
CONFIGURE_ENV += MAILMAN_GROUP=mailman |
|
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 | 53 |
|
54 |
ASLR_MODE = $(ASLR_ENABLE) |
|
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 | 66 |
build: $(BUILD_64) |
67 |
||
68 |
install: $(INSTALL_64) |
|
69 |
||
70 |
test: $(NO_TESTS) |
|
71 |
||
72 |
||
73 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
74 |
||
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
75 |
REQUIRED_PACKAGES += library/python/dnspython-27 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
76 |
REQUIRED_PACKAGES += runtime/python-27 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
77 |
REQUIRED_PACKAGES += shell/ksh93 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
78 |
REQUIRED_PACKAGES += system/core-os |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
79 |
REQUIRED_PACKAGES += system/library |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3922
diff
changeset
|
80 |
REQUIRED_PACKAGES += system/network |