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