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