author | Shawn Walker-Salas <shawn.walker@oracle.com> |
Wed, 30 Mar 2016 13:33:31 -0700 | |
changeset 5682 | 94c0ca64c022 |
parent 5616 | 44893e18e88a |
child 6049 | d4f828709d1c |
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 |
# |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
21 |
|
847 | 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) 2012, 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:
5616
diff
changeset
|
24 |
# |
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 |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
26 |
COMPILER= gcc |
847 | 27 |
include ../../make-rules/shared-macros.mk |
28 |
||
29 |
COMPONENT_NAME= rsyslog |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
30 |
COMPONENT_VERSION= 8.4.2 |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://www.rsyslog.com/ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= sha256:71c3c6dac74fba2692f9fefb092cd3d22e2bd71eb702e0da06648de51b8b7b9a |
847 | 33 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
1095
e720196b46b2
16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
34 |
COMPONENT_BUGDB= service/rsyslog |
847 | 35 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
36 |
TPNO= 22636 |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
37 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
38 |
# The documentation is in a separate download |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
39 |
COMPONENT_SRC_DOC= $(COMPONENT_NAME)-doc-$(COMPONENT_VERSION) |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
40 |
COMPONENT_ARCHIVE_DOC= $(COMPONENT_SRC_DOC).tar.gz |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
41 |
COMPONENT_ARCHIVE_HASH_DOC= sha256:21862b046b3504f136f9b8961466f2b248ac315c67de8742bd4a35c599f3dd48 |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
42 |
COMPONENT_ARCHIVE_URL_DOC= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC) |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
43 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
44 |
UNPACK_ARGS_DOC= -r $(COMPONENT_SRC_DOC) |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
45 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
46 |
# There are tests, but gmake test is currently broken. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
47 |
# It was working in the previous version, but not sure why |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
48 |
# it breaks now. Leaving it at no tests for now. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
49 |
TEST_TARGET= $(NO_TESTS) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
50 |
include $(WS_MAKE_RULES)/common.mk |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
51 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
52 |
# Automake fix, regenerates configure file to get rid of the |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
53 |
# automake 'probably too old' error. This fixes gmake test |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
54 |
# needing more than one try to run. This does not fix the |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
55 |
# fact that gmake test runs no tests. |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
56 |
COMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
57 |
aclocal; \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
58 |
autoconf; \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
59 |
automake -a; |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
60 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
61 |
# gmake test will generate different outputs if run multiple |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
62 |
# times. This gets rid of all the unimportant output |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
63 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(CC\).*/d" ' |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
64 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" ' |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
65 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" ' |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
66 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" ' |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
67 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(usr\).*/d" ' |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
68 |
COMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" ' |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
69 |
|
847 | 70 |
# This is needed for things to be built correctly. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
71 |
CFLAGS += -std=c99 |
847 | 72 |
|
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
73 |
# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we |
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
74 |
# have a self-contained eco-system, simplify things for customers and just use |
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
75 |
# /usr/lib/rsyslog . |
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
76 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32) |
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
77 |
|
847 | 78 |
CONFIGURE_OPTIONS += --enable-imsolaris |
79 |
CONFIGURE_OPTIONS += --enable-mail |
|
80 |
CONFIGURE_OPTIONS += --enable-gssapi_krb5 |
|
81 |
CONFIGURE_OPTIONS += --enable-gnutls |
|
82 |
CONFIGURE_OPTIONS += --disable-klog |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
83 |
CONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/rsyslog |
847 | 84 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
85 |
# libgcrypt is not approved. |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
86 |
CONFIGURE_OPTIONS += --disable-libgcrypt |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
87 |
CONFIGURE_OPTIONS += --enable-extended-tests |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
88 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
89 |
# There are man pages in the tarball, which will require modification for |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
90 |
# content. Also, building them from here requires python-docutils. |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --disable-generate-man-pages |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
92 |
|
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
93 |
# common targets |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
94 |
PROTODOCDIR= $(PROTOUSRSHAREDOCDIR)/$(COMPONENT_NAME) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
95 |
# Docs to install are the tree under docs/build with some exceptions. |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2149
diff
changeset
|
96 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
97 |
COMPONENT_POST_INSTALL_ACTION += \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
98 |
($(MKDIR) $(PROTODOCDIR) ; \ |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
99 |
cd $(COMPONENT_SRC_DOC)/build ; \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
100 |
find . \( -name '_sources' \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
101 |
-o -name '.doctrees' \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
102 |
-o -name '.buildinfo' \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
103 |
-o -name 'objects.inv' \) \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
104 |
-prune -o -print0 \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
105 |
| cpio -pd0u $(PROTODOCDIR)) |
847 | 106 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
107 |
REQUIRED_PACKAGES += library/gnutls |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
108 |
REQUIRED_PACKAGES += library/json-c |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
109 |
REQUIRED_PACKAGES += library/libestr |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
110 |
REQUIRED_PACKAGES += library/liblogging |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
111 |
REQUIRED_PACKAGES += library/zlib |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
112 |
REQUIRED_PACKAGES += shell/ksh93 |