905N/A#
905N/A# CDDL HEADER START
905N/A#
905N/A# The contents of this file are subject to the terms of the
905N/A# Common Development and Distribution License (the "License").
905N/A# You may not use this file except in compliance with the License.
905N/A#
905N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
905N/A# or http://www.opensolaris.org/os/licensing.
905N/A# See the License for the specific language governing permissions
905N/A# and limitations under the License.
905N/A#
905N/A# When distributing Covered Code, include this CDDL HEADER in each
905N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
905N/A# If applicable, add the following below this CDDL HEADER, with the
905N/A# fields enclosed by brackets "[]" replaced with your own identifying
905N/A# information: Portions Copyright [yyyy] [name of copyright owner]
905N/A#
905N/A# CDDL HEADER END
905N/A#
7049N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
905N/A#
3996N/A
905N/Ainclude ../../make-rules/shared-macros.mk
905N/A
905N/ACOMPONENT_NAME= rsyslog
4448N/ACOMPONENT_VERSION= 8.4.2
905N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4448N/ACOMPONENT_PROJECT_URL= http://www.rsyslog.com/
905N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4448N/ACOMPONENT_ARCHIVE_HASH= sha256:71c3c6dac74fba2692f9fefb092cd3d22e2bd71eb702e0da06648de51b8b7b9a
905N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
4448N/ACOMPONENT_BUGDB= service/rsyslog
4448N/A
4448N/ATPNO= 22636
905N/A
4448N/A# The documentation is in a separate download
4448N/ACOMPONENT_SRC_DOC= $(COMPONENT_NAME)-doc-$(COMPONENT_VERSION)
4450N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_DOC).tar.gz
4448N/ACOMPONENT_ARCHIVE_DOC= $(COMPONENT_SRC_DOC).tar.gz
4450N/ACOMPONENT_ARCHIVE_HASH_1= sha256:21862b046b3504f136f9b8961466f2b248ac315c67de8742bd4a35c599f3dd48
4450N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC)
4448N/A
4448N/AUNPACK_ARGS_DOC= -r $(COMPONENT_SRC_DOC)
4448N/A
4448N/Ainclude ../../make-rules/prep.mk
4448N/Ainclude ../../make-rules/configure.mk
4448N/Ainclude ../../make-rules/ips.mk
3661N/A
4448N/A# Note: the following document unpacking directory may not be the same as those
4448N/A# in other branches due to differences in build tools.
4448N/A# In case the docs ever need patching, they are extracted before patching takes
4448N/A# place.The doc tarball does not unpack cleanly into its own directory.
4448N/A# Also, we only want the "build" directory inside of it.
4448N/ACLEAN_PATHS += $(COMPONENT_SRC_DOC)
4448N/ACOMPONENT_POST_UNPACK_ACTION= $(MKDIR) $(COMPONENT_SRC_DOC) ; \
4448N/A cd $(COMPONENT_SRC_DOC) ; \
4448N/A tar xf ../$(COMPONENT_ARCHIVE_DOC) build
4448N/A
4448N/A# Automake fix, regenerates configure file to get rid of the
4448N/A# automake 'probably too old' error. This fixes gmake test
4448N/A# needing more than one try to run. This does not fix the
4448N/A# fact that gmake test runs no tests.
4448N/ACOMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \
4448N/A aclocal; \
4448N/A autoconf; \
4448N/A automake -a;
4448N/A
4448N/A# gmake test will generate different outputs if run multiple
4448N/A# times. This gets rid of all the unimportant output
4448N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(CC\).*/d" '
4448N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" '
4448N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" '
4448N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" '
4448N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(usr\).*/d" '
4448N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" '
4448N/A
4448N/ACOMPILER = gcc
905N/A
905N/A# This is needed for things to be built correctly.
4448N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS) -std=c99"
4448N/A
4448N/A# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we
4448N/A# have a self-contained eco-system, simplify things for customers and just use
4448N/A# /usr/lib/rsyslog .
4448N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32)
905N/A
7049N/A# Rsyslog sources contain __FILE__ macros which contain full path to the workspace
7049N/A# This may appear in debug output which is not nice. By specifying the source
7049N/A# path relative we force the macro to be relative path too.
7049N/ACONFIGURE_OPTIONS += --srcdir=../../$(COMPONENT_NAME)-$(COMPONENT_VERSION)
905N/ACONFIGURE_OPTIONS += --enable-imsolaris
905N/ACONFIGURE_OPTIONS += --enable-mail
905N/ACONFIGURE_OPTIONS += --enable-gssapi_krb5
905N/ACONFIGURE_OPTIONS += --enable-gnutls
905N/ACONFIGURE_OPTIONS += --disable-klog
905N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/rsyslog
905N/A
4448N/A# libgcrypt is not approved.
4448N/ACONFIGURE_OPTIONS += --disable-libgcrypt
4448N/ACONFIGURE_OPTIONS += --enable-extended-tests
4448N/A
4448N/A# There are man pages in the tarball, which will require modification for
4448N/A# content. Also, building them from here requires python-docutils.
4448N/ACONFIGURE_OPTIONS += --disable-generate-man-pages
4448N/A
4448N/AASLR_MODE = $(ASLR_ENABLE)
4448N/A
905N/A# common targets
4448N/Aconfigure: $(CONFIGURE_64)
4448N/A
4448N/Abuild: $(BUILD_64)
905N/A
4448N/APROTODOCDIR= $(PROTOUSRSHAREDIR)/doc/$(COMPONENT_NAME)
4448N/A# Docs to install are the tree under docs/build with some exceptions.
4448N/Ainstall: $(INSTALL_64)
4448N/A $(MKDIR) $(PROTODOCDIR)
4448N/A cd $(COMPONENT_SRC_DOC)/build ; \
4448N/A find . \( -name '_sources' \
4448N/A -o -name '.doctrees' \
4448N/A -o -name '.buildinfo' \
4448N/A -o -name 'objects.inv' \) \
4448N/A -prune -o -print0 \
4448N/A | cpio -pd0u $(PROTODOCDIR)
905N/A
4448N/A# There are tests, but gmake test is currently broken.
4448N/A# It was working in the previous version, but not sure why
4448N/A# it breaks now. Leaving it at no tests for now.
4448N/Atest: $(NO_TESTS)
905N/A
905N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
3319N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
905N/A
3996N/AREQUIRED_PACKAGES += library/gnutls
4448N/AREQUIRED_PACKAGES += library/json-c
3996N/AREQUIRED_PACKAGES += library/libestr
4448N/AREQUIRED_PACKAGES += library/liblogging
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library