Makefile revision 4909
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#
3817N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
905N/A#
3817N/A
905N/Ainclude ../../make-rules/shared-macros.mk
905N/A
905N/ACOMPONENT_NAME= rsyslog
4429N/ACOMPONENT_VERSION= 8.4.2
905N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4429N/ACOMPONENT_PROJECT_URL= http://www.rsyslog.com/
905N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4429N/ACOMPONENT_ARCHIVE_HASH= sha256:71c3c6dac74fba2692f9fefb092cd3d22e2bd71eb702e0da06648de51b8b7b9a
905N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1326N/ACOMPONENT_BUGDB= service/rsyslog
905N/A
4429N/ATPNO= 22636
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
4429N/ACOMPONENT_ARCHIVE_HASH_DOC= sha256:21862b046b3504f136f9b8961466f2b248ac315c67de8742bd4a35c599f3dd48
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
4429N/Ainclude ../../make-rules/prep.mk
4429N/Ainclude ../../make-rules/configure.mk
4429N/Ainclude ../../make-rules/ips.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
4429N/ACOMPILER = gcc
905N/A
905N/A# This is needed for things to be built correctly.
4429N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS) -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)
1601N/A
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
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
1601N/AASLR_MODE = $(ASLR_ENABLE)
905N/A
1601N/A# common targets
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
1601N/Abuild: $(BUILD_64)
905N/A
4429N/APROTODOCDIR= $(PROTOUSRSHAREDIR)/doc/$(COMPONENT_NAME)
4429N/A# Docs to install are the tree under docs/build with some exceptions.
1601N/Ainstall: $(INSTALL_64)
4429N/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 \
4429N/A | cpio -pd0u $(PROTODOCDIR)
905N/A
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
4429N/A# There are tests, but gmake test is currently broken.
4429N/A# It was working in the previous version, but not sure why
4429N/A# it breaks now. Leaving it at no tests for now.
4429N/Atest: $(NO_TESTS)
4429N/A
905N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
3313N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
905N/A
3817N/AREQUIRED_PACKAGES += library/gnutls
4429N/AREQUIRED_PACKAGES += library/json-c
3817N/AREQUIRED_PACKAGES += library/libestr
4429N/AREQUIRED_PACKAGES += library/liblogging
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library