author | John Beck <John.Beck@Oracle.COM> |
Fri, 02 Oct 2015 09:02:41 -0700 | |
changeset 4964 | 30f7741bb742 |
parent 4431 | d851c2eccfcc |
child 5463 | 245bdc05448a |
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 |
# |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
21 |
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
847 | 22 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
23 |
|
847 | 24 |
include ../../make-rules/shared-macros.mk |
25 |
||
26 |
COMPONENT_NAME= rsyslog |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
27 |
COMPONENT_VERSION= 8.4.2 |
847 | 28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
29 |
COMPONENT_PROJECT_URL= http://www.rsyslog.com/ |
847 | 30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= sha256:71c3c6dac74fba2692f9fefb092cd3d22e2bd71eb702e0da06648de51b8b7b9a |
847 | 32 |
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
|
33 |
COMPONENT_BUGDB= service/rsyslog |
847 | 34 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
35 |
TPNO= 22636 |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
36 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
37 |
# 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
|
38 |
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
|
39 |
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
|
40 |
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
|
41 |
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
|
42 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
43 |
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
|
44 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
45 |
include ../../make-rules/prep.mk |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
46 |
include ../../make-rules/configure.mk |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
47 |
include ../../make-rules/ips.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
|
48 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
49 |
# 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
|
50 |
# 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
|
51 |
# 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
|
52 |
# 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
|
53 |
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
|
54 |
aclocal; \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
55 |
autoconf; \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
56 |
automake -a; |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
57 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
58 |
# 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
|
59 |
# 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
|
60 |
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
|
61 |
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
|
62 |
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
|
63 |
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
|
64 |
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
|
65 |
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
|
66 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
67 |
COMPILER = gcc |
847 | 68 |
|
69 |
# This is needed for things to be built correctly. |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
70 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS) -std=c99" |
847 | 71 |
|
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
72 |
# 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
|
73 |
# 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
|
74 |
# /usr/lib/rsyslog . |
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
75 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32) |
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
76 |
|
847 | 77 |
CONFIGURE_OPTIONS += --enable-imsolaris |
78 |
CONFIGURE_OPTIONS += --enable-mail |
|
79 |
CONFIGURE_OPTIONS += --enable-gssapi_krb5 |
|
80 |
CONFIGURE_OPTIONS += --enable-gnutls |
|
81 |
CONFIGURE_OPTIONS += --disable-klog |
|
82 |
CONFIGURE_OPTIONS += --sbindir=/usr/lib/rsyslog |
|
83 |
||
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
84 |
# libgcrypt is not approved. |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
85 |
CONFIGURE_OPTIONS += --disable-libgcrypt |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
86 |
CONFIGURE_OPTIONS += --enable-extended-tests |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
87 |
|
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
88 |
# 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
|
89 |
# 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
|
90 |
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
|
91 |
|
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
92 |
ASLR_MODE = $(ASLR_ENABLE) |
847 | 93 |
|
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
94 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2149
diff
changeset
|
95 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2149
diff
changeset
|
96 |
|
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
97 |
build: $(BUILD_64) |
847 | 98 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
99 |
PROTODOCDIR= $(PROTOUSRSHAREDIR)/doc/$(COMPONENT_NAME) |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
100 |
# Docs to install are the tree under docs/build with some exceptions. |
1261
9aaa91c63cb9
16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
1095
diff
changeset
|
101 |
install: $(INSTALL_64) |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
102 |
$(MKDIR) $(PROTODOCDIR) |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
103 |
cd $(COMPONENT_SRC_DOC)/build ; \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
104 |
find . \( -name '_sources' \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
105 |
-o -name '.doctrees' \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
106 |
-o -name '.buildinfo' \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
107 |
-o -name 'objects.inv' \) \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
108 |
-prune -o -print0 \ |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
109 |
| cpio -pd0u $(PROTODOCDIR) |
847 | 110 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
111 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
112 |
|
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
113 |
# There are tests, but gmake test is currently broken. |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
114 |
# It was working in the previous version, but not sure why |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
115 |
# it breaks now. Leaving it at no tests for now. |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
116 |
test: $(NO_TESTS) |
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
117 |
|
847 | 118 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
2149
375b11f6f4bc
19789649 rsyslog complete documentation is missing
Michael Nestler <Michael.Nestler@Oracle.COM>
parents:
1948
diff
changeset
|
119 |
PKG_PROTO_DIRS += $(COMPONENT_SRC) |
847 | 120 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
121 |
REQUIRED_PACKAGES += library/gnutls |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
122 |
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
|
123 |
REQUIRED_PACKAGES += library/libestr |
4431
d851c2eccfcc
PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
124 |
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
|
125 |
REQUIRED_PACKAGES += library/zlib |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
126 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
127 |
REQUIRED_PACKAGES += system/library |