author | James Chang <james.c.chang@Oracle.COM> |
Tue, 09 Jun 2015 17:42:24 -0700 | |
branch | s11-update |
changeset 4452 | bc200c1feed4 |
parent 4450 | 423f06e4bc35 |
child 7051 | b5ccd506d4ab |
permissions | -rw-r--r-- |
847 | 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:
3661
diff
changeset
|
21 |
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
847 | 22 |
# |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
23 |
|
847 | 24 |
include ../../make-rules/shared-macros.mk |
25 |
||
26 |
COMPONENT_NAME= rsyslog |
|
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
27 |
COMPONENT_VERSION= 8.4.2 |
847 | 28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
29 |
COMPONENT_PROJECT_URL= http://www.rsyslog.com/ |
847 | 30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= sha256:71c3c6dac74fba2692f9fefb092cd3d22e2bd71eb702e0da06648de51b8b7b9a |
847 | 32 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
33 |
COMPONENT_BUGDB= service/rsyslog |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
34 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
35 |
TPNO= 22636 |
847 | 36 |
|
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
37 |
# The documentation is in a separate download |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
38 |
COMPONENT_SRC_DOC= $(COMPONENT_NAME)-doc-$(COMPONENT_VERSION) |
4452
bc200c1feed4
17506040 Upgrade rsyslog to 8.4.2 (fix 'gmake download')
James Chang <james.c.chang@Oracle.COM>
parents:
4450
diff
changeset
|
39 |
COMPONENT_ARCHIVE_1= $(COMPONENT_SRC_DOC).tar.gz |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
40 |
COMPONENT_ARCHIVE_DOC= $(COMPONENT_SRC_DOC).tar.gz |
4452
bc200c1feed4
17506040 Upgrade rsyslog to 8.4.2 (fix 'gmake download')
James Chang <james.c.chang@Oracle.COM>
parents:
4450
diff
changeset
|
41 |
COMPONENT_ARCHIVE_HASH_1= sha256:21862b046b3504f136f9b8961466f2b248ac315c67de8742bd4a35c599f3dd48 |
bc200c1feed4
17506040 Upgrade rsyslog to 8.4.2 (fix 'gmake download')
James Chang <james.c.chang@Oracle.COM>
parents:
4450
diff
changeset
|
42 |
COMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC) |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
43 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
44 |
UNPACK_ARGS_DOC= -r $(COMPONENT_SRC_DOC) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
45 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
46 |
include ../../make-rules/prep.mk |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
47 |
include ../../make-rules/configure.mk |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
48 |
include ../../make-rules/ips.mk |
3661
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
3394
diff
changeset
|
49 |
|
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
50 |
# Note: the following document unpacking directory may not be the same as those |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
51 |
# in other branches due to differences in build tools. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
52 |
# In case the docs ever need patching, they are extracted before patching takes |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
53 |
# place.The doc tarball does not unpack cleanly into its own directory. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
54 |
# Also, we only want the "build" directory inside of it. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
55 |
CLEAN_PATHS += $(COMPONENT_SRC_DOC) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
56 |
COMPONENT_POST_UNPACK_ACTION= $(MKDIR) $(COMPONENT_SRC_DOC) ; \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
57 |
cd $(COMPONENT_SRC_DOC) ; \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
58 |
tar xf ../$(COMPONENT_ARCHIVE_DOC) build |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
59 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
60 |
# Automake fix, regenerates configure file to get rid of the |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
61 |
# automake 'probably too old' error. This fixes gmake test |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
62 |
# needing more than one try to run. This does not fix the |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
63 |
# fact that gmake test runs no tests. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
64 |
COMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
65 |
aclocal; \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
66 |
autoconf; \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
67 |
automake -a; |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
68 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
69 |
# gmake test will generate different outputs if run multiple |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
70 |
# times. This gets rid of all the unimportant output |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
71 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(CC\).*/d" ' |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
72 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" ' |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
73 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" ' |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
74 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" ' |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
75 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(usr\).*/d" ' |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
76 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" ' |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
77 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
78 |
COMPILER = gcc |
847 | 79 |
|
80 |
# This is needed for things to be built correctly. |
|
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
81 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS) -std=c99" |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
82 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
83 |
# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
84 |
# have a self-contained eco-system, simplify things for customers and just use |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
85 |
# /usr/lib/rsyslog . |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
86 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32) |
847 | 87 |
|
88 |
CONFIGURE_OPTIONS += --enable-imsolaris |
|
89 |
CONFIGURE_OPTIONS += --enable-mail |
|
90 |
CONFIGURE_OPTIONS += --enable-gssapi_krb5 |
|
91 |
CONFIGURE_OPTIONS += --enable-gnutls |
|
92 |
CONFIGURE_OPTIONS += --disable-klog |
|
93 |
CONFIGURE_OPTIONS += --sbindir=/usr/lib/rsyslog |
|
94 |
||
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
95 |
# libgcrypt is not approved. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
96 |
CONFIGURE_OPTIONS += --disable-libgcrypt |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
97 |
CONFIGURE_OPTIONS += --enable-extended-tests |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
98 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
99 |
# There are man pages in the tarball, which will require modification for |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
100 |
# content. Also, building them from here requires python-docutils. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
101 |
CONFIGURE_OPTIONS += --disable-generate-man-pages |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
102 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
103 |
ASLR_MODE = $(ASLR_ENABLE) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
104 |
|
847 | 105 |
# common targets |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
106 |
configure: $(CONFIGURE_64) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
107 |
|
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
108 |
build: $(BUILD_64) |
847 | 109 |
|
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
110 |
PROTODOCDIR= $(PROTOUSRSHAREDIR)/doc/$(COMPONENT_NAME) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
111 |
# Docs to install are the tree under docs/build with some exceptions. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
112 |
install: $(INSTALL_64) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
113 |
$(MKDIR) $(PROTODOCDIR) |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
114 |
cd $(COMPONENT_SRC_DOC)/build ; \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
115 |
find . \( -name '_sources' \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
116 |
-o -name '.doctrees' \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
117 |
-o -name '.buildinfo' \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
118 |
-o -name 'objects.inv' \) \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
119 |
-prune -o -print0 \ |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
120 |
| cpio -pd0u $(PROTODOCDIR) |
847 | 121 |
|
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
122 |
# There are tests, but gmake test is currently broken. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
123 |
# It was working in the previous version, but not sure why |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
124 |
# it breaks now. Leaving it at no tests for now. |
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
125 |
test: $(NO_TESTS) |
847 | 126 |
|
127 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
3394
9758aff98adb
19789649 rsyslog complete documentation is missing
Michael Nestler <Michael.Nestler@Oracle.COM>
parents:
2855
diff
changeset
|
128 |
PKG_PROTO_DIRS += $(COMPONENT_SRC) |
847 | 129 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
130 |
REQUIRED_PACKAGES += library/gnutls |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
131 |
REQUIRED_PACKAGES += library/json-c |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
132 |
REQUIRED_PACKAGES += library/libestr |
4450
423f06e4bc35
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
3996
diff
changeset
|
133 |
REQUIRED_PACKAGES += library/liblogging |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
134 |
REQUIRED_PACKAGES += library/zlib |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
135 |
REQUIRED_PACKAGES += shell/ksh93 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
136 |
REQUIRED_PACKAGES += system/library |