Makefile revision 5957
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterBUILD_BITS= 64
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/shared-macros.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_NAME= ntp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_VERSION= 4.2.8
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PATCH_VERSION= 7
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_RC_VERSION= 1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsHUMAN_VERSION= $(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCOMPONENT_PROJECT_URL= http://www.ntp.org/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC_NAME= ntp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(HUMAN_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:81d20c06a0b01abe3b84fac092185bf014252d38fe5e7b2758f604680a0220dc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUGDB= service/ntp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# NTP tests log results in separate files. Instead of geting the output
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# of the build and test and deleting the extra lines, it is easier to just
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# cat together all of the logs. The test TEST_PROGNAME3 tests the system
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# log facility, so we have to get rid of the output because the pid is
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# different every time.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# In addition, we append the config.h file so we know if the configuration
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ever changes. We get rid of the version number which changes every time
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# we upgrade and the system string and endian info which is different between
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# intel and SPARC.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterCOMPONENT_TEST_CREATE_TRANSFORMS = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews @if [ -e $(COMPONENT_TEST_MASTER) ]; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews then \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print '$(FIND) $(BUILD_DIR_64) -name test-\*.log | sort |\\' \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews >> $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print ' xargs cat | grep -v TEST_PROGNAME3 \\' \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews >> $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print '> $(COMPONENT_TEST_SNAPSHOT)' \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews >> $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print 'cat $(BUILD_DIR_64)/config.h | \\' \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater >> $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print 'grep -v VERSION | grep -v STR_SYSTEM | grep -v ENDIAN \\' \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews >> $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print '>> $(COMPONENT_TEST_SNAPSHOT)' \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews >> $(COMPONENT_TEST_TRANSFORM_CMD); \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews else \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print 'Cannot find $(COMPONENT_TEST_MASTER)'; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews exit 2; \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews fi
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterTPNO= 20866
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterPATCH_LEVEL = 0
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterTEST_TARGET= build $(TEST_64)
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updaterinclude $(WS_MAKE_RULES)/common.mk
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterCFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterstudio_C99MODE= $(studio_C99_ENABLE)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCFLAGS.studio.i386 = -preserve_argvalues=complete
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_BINDIR.64 = $(USRSBINDIR)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --with-binsubdir=sbin
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/inet
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --enable-all-clocks
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --enable-debugging
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --enable-debug-timing
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --disable-optional-args
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --enable-parse-clocks
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --enable-ignore-dns-errors
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --without-ntpsnmpd
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCONFIGURE_OPTIONS += --with-openssl-libdir=$(LIBDIR)/$(MACH64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS += --disable-problem-tests
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += library/libedit
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += library/security/openssl
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += $(PERL_PKG)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += service/network/dns/mdns
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += shell/ksh93
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += system/core-os
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += system/library/math
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += system/library/security/crypto
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews