components/rsyslog/Makefile
branchs11-update
changeset 4450 423f06e4bc35
parent 3996 20c0f21bbe1e
child 4452 bc200c1feed4
equal deleted inserted replaced
4449:7824aa88c6b2 4450:423f06e4bc35
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 
    23 
    24 COMPILER = gcc3
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
    24 include ../../make-rules/shared-macros.mk
    27 
    25 
    28 COMPONENT_NAME=		rsyslog
    26 COMPONENT_NAME=		rsyslog
    29 COMPONENT_VERSION=	6.2.0
    27 COMPONENT_VERSION=	8.4.2
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    28 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_PROJECT_URL=	http://rsyslog.com/
    29 COMPONENT_PROJECT_URL=	http://www.rsyslog.com/
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE_HASH=	sha256:f8869a1c25d0dd9ff04468743969ffc9ff89c6f7afa3046f77f91c3982543cc1
    31 COMPONENT_ARCHIVE_HASH=	sha256:71c3c6dac74fba2692f9fefb092cd3d22e2bd71eb702e0da06648de51b8b7b9a
    34 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_BUGDB=	utility/logger
    33 COMPONENT_BUGDB=	service/rsyslog
    36 
    34 
    37 TPNO=			7585
    35 TPNO=                   22636
    38 
    36 
    39 include $(WS_MAKE_RULES)/prep.mk
    37 # The documentation is in a separate download
    40 include $(WS_MAKE_RULES)/configure.mk
    38 COMPONENT_SRC_DOC=		$(COMPONENT_NAME)-doc-$(COMPONENT_VERSION)
    41 include $(WS_MAKE_RULES)/ips.mk
    39 COMPONENT_ARCHIVE_DOC=		$(COMPONENT_SRC_DOC).tar.gz
       
    40 COMPONENT_ARCHIVE_HASH_DOC=	sha256:21862b046b3504f136f9b8961466f2b248ac315c67de8742bd4a35c599f3dd48
       
    41 COMPONENT_ARCHIVE_URL_DOC=	$(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC)
       
    42 
       
    43 UNPACK_ARGS_DOC=		-r $(COMPONENT_SRC_DOC)
       
    44 
       
    45 include ../../make-rules/prep.mk
       
    46 include ../../make-rules/configure.mk
       
    47 include ../../make-rules/ips.mk
       
    48 
       
    49 # Note: the following document unpacking directory may not be the same as those
       
    50 # in other branches due to differences in build tools.
       
    51 # In case the docs ever need patching, they are extracted before patching takes
       
    52 # place.The doc tarball does not unpack cleanly into its own directory.
       
    53 # Also, we only want the "build" directory inside of it.
       
    54 CLEAN_PATHS +=			$(COMPONENT_SRC_DOC)
       
    55 COMPONENT_POST_UNPACK_ACTION=	$(MKDIR) $(COMPONENT_SRC_DOC) ; \
       
    56 				cd $(COMPONENT_SRC_DOC) ; \
       
    57 				tar xf ../$(COMPONENT_ARCHIVE_DOC) build
       
    58 
       
    59 # Automake fix, regenerates configure file to get rid of the
       
    60 # automake 'probably too old' error. This fixes gmake test
       
    61 # needing more than one try to run. This does not fix the
       
    62 # fact that gmake test runs no tests.
       
    63 COMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \
       
    64 				aclocal; \
       
    65 				autoconf; \
       
    66 				automake -a;
       
    67 
       
    68 # gmake test will generate different outputs if run multiple
       
    69 # times. This gets rid of all the unimportant output
       
    70 COMPONENT_TEST_TRANSFORMS += '-e "/\(CC\).*/d" '
       
    71 COMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" '
       
    72 COMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" '
       
    73 COMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" '
       
    74 COMPONENT_TEST_TRANSFORMS += '-e "/\(usr\).*/d" '
       
    75 COMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" '
       
    76 
       
    77 COMPILER =	gcc
    42 
    78 
    43 # This is needed for things to be built correctly.
    79 # This is needed for things to be built correctly.
    44 CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
    80 CONFIGURE_ENV +=	CFLAGS="$(CFLAGS) -std=c99"
       
    81 
       
    82 # A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we
       
    83 # have a self-contained eco-system, simplify things for customers and just use
       
    84 # /usr/lib/rsyslog .
       
    85 CONFIGURE_LIBDIR.64 =	$(CONFIGURE_LIBDIR.32)
    45 
    86 
    46 CONFIGURE_OPTIONS +=    --enable-imsolaris
    87 CONFIGURE_OPTIONS +=    --enable-imsolaris
    47 CONFIGURE_OPTIONS +=    --enable-mail
    88 CONFIGURE_OPTIONS +=    --enable-mail
    48 CONFIGURE_OPTIONS +=    --enable-gssapi_krb5
    89 CONFIGURE_OPTIONS +=    --enable-gssapi_krb5
    49 CONFIGURE_OPTIONS +=    --enable-gnutls
    90 CONFIGURE_OPTIONS +=    --enable-gnutls
    50 CONFIGURE_OPTIONS +=    --disable-klog
    91 CONFIGURE_OPTIONS +=    --disable-klog
    51 CONFIGURE_OPTIONS +=    --sbindir=/usr/lib/rsyslog
    92 CONFIGURE_OPTIONS +=    --sbindir=/usr/lib/rsyslog
    52 
    93 
       
    94 # libgcrypt is not approved.
       
    95 CONFIGURE_OPTIONS +=	--disable-libgcrypt
       
    96 CONFIGURE_OPTIONS +=	--enable-extended-tests
       
    97 
       
    98 # There are man pages in the tarball, which will require modification for
       
    99 # content. Also, building them from here requires python-docutils.
       
   100 CONFIGURE_OPTIONS +=	--disable-generate-man-pages
       
   101 
       
   102 ASLR_MODE = $(ASLR_ENABLE)
       
   103 
    53 # common targets
   104 # common targets
    54 build:		$(BUILD_32)
   105 configure:	$(CONFIGURE_64)
    55 
   106 
    56 install:	$(INSTALL_32)
   107 build:		$(BUILD_64)
    57 
   108 
    58 test:		$(TEST_32)
   109 PROTODOCDIR=	$(PROTOUSRSHAREDIR)/doc/$(COMPONENT_NAME)
       
   110 # Docs to install are the tree under docs/build with some exceptions.
       
   111 install:	$(INSTALL_64)
       
   112 	$(MKDIR) $(PROTODOCDIR)
       
   113 	cd $(COMPONENT_SRC_DOC)/build ; \
       
   114 	find . \(    -name '_sources' \
       
   115 	          -o -name '.doctrees' \
       
   116 	          -o -name '.buildinfo' \
       
   117 	          -o -name 'objects.inv' \) \
       
   118 	     -prune -o -print0 \
       
   119 	| cpio -pd0u $(PROTODOCDIR)
    59 
   120 
       
   121 # There are tests, but gmake test is currently broken. 
       
   122 # It was working in the previous version, but not sure why
       
   123 # it breaks now. Leaving it at no tests for now.
       
   124 test:		$(NO_TESTS)
    60 
   125 
    61 PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
   126 PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
    62 PKG_PROTO_DIRS +=	$(COMPONENT_SRC)
   127 PKG_PROTO_DIRS +=	$(COMPONENT_SRC)
    63 
   128 
    64 REQUIRED_PACKAGES += file/gnu-coreutils
       
    65 REQUIRED_PACKAGES += library/gnutls
   129 REQUIRED_PACKAGES += library/gnutls
    66 REQUIRED_PACKAGES += library/libee
   130 REQUIRED_PACKAGES += library/json-c
    67 REQUIRED_PACKAGES += library/libestr
   131 REQUIRED_PACKAGES += library/libestr
       
   132 REQUIRED_PACKAGES += library/liblogging
    68 REQUIRED_PACKAGES += library/zlib
   133 REQUIRED_PACKAGES += library/zlib
    69 REQUIRED_PACKAGES += shell/ksh93
   134 REQUIRED_PACKAGES += shell/ksh93
    70 REQUIRED_PACKAGES += system/library
   135 REQUIRED_PACKAGES += system/library
    71 REQUIRED_PACKAGES += system/library/gcc-3-runtime
       
    72 REQUIRED_PACKAGES += system/library/gcc-45-runtime
       
    73 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime