Makefile revision 6377
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#
5680N/A
905N/A#
5680N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64
5680N/ACOMPILER= gcc
905N/Ainclude ../../make-rules/shared-macros.mk
905N/A
905N/ACOMPONENT_NAME= rsyslog
6302N/ACOMPONENT_VERSION= 8.15.0
4429N/ACOMPONENT_PROJECT_URL= http://www.rsyslog.com/
6302N/ACOMPONENT_ARCHIVE_HASH= sha256:9ed6615a8503964290471e98ed363f3975b964a34c2d4610fb815a432aadaf59
905N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1326N/ACOMPONENT_BUGDB= service/rsyslog
905N/A
6302N/ATPNO= 28284
4429N/A
4429N/A# The documentation is in a separate download
4429N/ACOMPONENT_SRC_DOC= $(COMPONENT_NAME)-doc-$(COMPONENT_VERSION)
4429N/ACOMPONENT_ARCHIVE_DOC= $(COMPONENT_SRC_DOC).tar.gz
6302N/ACOMPONENT_ARCHIVE_HASH_DOC= sha256:3462402165a3ff34ceff23db20382a14bd3727131994f140a004f4872a01c12a
4429N/ACOMPONENT_ARCHIVE_URL_DOC= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC)
4429N/A
4429N/AUNPACK_ARGS_DOC= -r $(COMPONENT_SRC_DOC)
4429N/A
6047N/A# There are tests, but gmake test is currently broken.
5680N/A# It was working in the previous version, but not sure why
5680N/A# it breaks now. Leaving it at no tests for now.
5680N/ATEST_TARGET= $(NO_TESTS)
6374N/A
6374N/A# Requires mysql-57 not available on S11.
6374N/Aifeq ($(BUILD_TYPE), evaluation)
6374N/ABUILD_64=
6374N/AINSTALL_64=
6374N/APUBLISH_STAMP=
6374N/Aendif
6374N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
2899N/A
4429N/A# Automake fix, regenerates configure file to get rid of the
4429N/A# automake 'probably too old' error. This fixes gmake test
4429N/A# needing more than one try to run. This does not fix the
4429N/A# fact that gmake test runs no tests.
4429N/ACOMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \
4429N/A aclocal; \
4429N/A autoconf; \
4429N/A automake -a;
4429N/A
4429N/A# gmake test will generate different outputs if run multiple
4429N/A# times. This gets rid of all the unimportant output
4429N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(CC\).*/d" '
4429N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" '
4429N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" '
4429N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" '
4429N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(usr\).*/d" '
4429N/ACOMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" '
4429N/A
905N/A# This is needed for things to be built correctly.
5680N/ACFLAGS += -std=c99
905N/A
1601N/A# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we
1601N/A# have a self-contained eco-system, simplify things for customers and just use
1601N/A# /usr/lib/rsyslog .
1601N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32)
6303N/APKG_CONFIG_PATH = /usr/lib/pkgconfig/gnutls-3
6303N/A
6303N/A# The configure script runs the pkg-config command. This allows it to
6303N/A# find the non-default GnuTLS v3 library.
6303N/APKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
6303N/ALDFLAGS += -L$(USRLIBDIR64)/gnutls-3
1601N/A
6302N/A# Rsyslog sources contain __FILE__ macros which contain full path to the workspace
6302N/A# This may appear in debug output which is not nice. By specifying the source
6302N/A# path relative we force the macro to be relative path too.
6302N/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
5680N/ACONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/rsyslog
905N/A
6305N/ACONFIGURE_OPTIONS += --enable-imfile
6305N/ACONFIGURE_OPTIONS += --enable-impstats
6305N/ACONFIGURE_OPTIONS += --enable-mysql
6305N/ACONFIGURE_ENV += "MYSQL_CONFIG=/usr/mysql/5.7/bin/mysql_config"
6305N/ACONFIGURE_OPTIONS += --enable-omstdout
6305N/ACONFIGURE_OPTIONS += --enable-omuxsock
6305N/A
4429N/A# libgcrypt is not approved.
4429N/ACONFIGURE_OPTIONS += --disable-libgcrypt
4429N/ACONFIGURE_OPTIONS += --enable-extended-tests
4429N/A
4429N/A# There are man pages in the tarball, which will require modification for
4429N/A# content. Also, building them from here requires python-docutils.
4429N/ACONFIGURE_OPTIONS += --disable-generate-man-pages
4429N/A
6302N/A# Make the build verbose, show executed commands
6302N/ACOMPONENT_BUILD_ARGS += AM_DEFAULT_VERBOSITY=1
6302N/A
1601N/A# common targets
5680N/APROTODOCDIR= $(PROTOUSRSHAREDOCDIR)/$(COMPONENT_NAME)
5680N/A# Docs to install are the tree under docs/build with some exceptions.
3477N/A
5680N/ACOMPONENT_POST_INSTALL_ACTION += \
5680N/A ($(MKDIR) $(PROTODOCDIR) ; \
4429N/A cd $(COMPONENT_SRC_DOC)/build ; \
4429N/A find . \( -name '_sources' \
4429N/A -o -name '.doctrees' \
4429N/A -o -name '.buildinfo' \
4429N/A -o -name 'objects.inv' \) \
4429N/A -prune -o -print0 \
5680N/A | cpio -pd0u $(PROTODOCDIR))
905N/A
6377N/AREQUIRED_PACKAGES += database/mysql-57
6305N/AREQUIRED_PACKAGES += database/mysql-57/library
6303N/AREQUIRED_PACKAGES += library/gnutls-3
4429N/AREQUIRED_PACKAGES += library/json-c
3817N/AREQUIRED_PACKAGES += library/libestr
4429N/AREQUIRED_PACKAGES += library/liblogging
3817N/AREQUIRED_PACKAGES += library/zlib
6047N/AREQUIRED_PACKAGES += security/kerberos-5
3817N/AREQUIRED_PACKAGES += shell/ksh93
6221N/AREQUIRED_PACKAGES += system/core-os