Makefile revision 6480
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 64
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= ntp
0N/ACOMPONENT_VERSION= 4.2.8
0N/ACOMPONENT_PATCH_VERSION= 8
0N/ACOMPONENT_RC_VERSION= 1
0N/AHUMAN_VERSION= $(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION)
0N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
0N/ACOMPONENT_PROJECT_URL= http://www.ntp.org/
0N/ACOMPONENT_SRC_NAME= ntp
0N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(HUMAN_VERSION)
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:2ab3d0b5f0456e6311dda1cc27ab75da108762773a19e46abd938bd9407b97ee
0N/ACOMPONENT_ARCHIVE_URL= http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= service/ntp
0N/A
0N/A# NTP tests log results in separate files. Instead of geting the output
0N/A# of the build and test and deleting the extra lines, it is easier to just
0N/A# cat together all of the logs. The test TEST_PROGNAME3 tests the system
0N/A# log facility, so we have to get rid of the output because the pid is
0N/A# different every time.
0N/A#
0N/A# In addition, we append the config.h file so we know if the configuration
0N/A# ever changes. We get rid of the version number which changes every time
0N/A# we upgrade and the system string and endian info which is different between
0N/A# intel and SPARC.
0N/A
0N/ACOMPONENT_TEST_CREATE_TRANSFORMS = \
0N/A @if [ -e $(COMPONENT_TEST_MASTER) ]; \
then \
print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \
print '$(FIND) $(BUILD_DIR_64) -name test-\*.log | sort |\\' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print ' xargs cat | grep -v TEST_PROGNAME3 | \\' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print 'sed -e "s/4.2..p[0-9]*//" \\' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print '> $(COMPONENT_TEST_SNAPSHOT)' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print 'cat $(BUILD_DIR_64)/config.h | \\' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print 'grep -v ENDIAN | grep -v STR_SYSTEM | \\' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print 'grep -v VERSION | grep -v PACKAGE_STRING \\' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
print '>> $(COMPONENT_TEST_SNAPSHOT)' \
>> $(COMPONENT_TEST_TRANSFORM_CMD); \
else \
print 'Cannot find $(COMPONENT_TEST_MASTER)'; \
exit 2; \
fi
TPNO= 20866
PATCH_LEVEL = 0
TEST_TARGET= build $(TEST_64)
include $(WS_MAKE_RULES)/common.mk
CFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
studio_C99MODE= $(studio_C99_ENABLE)
CFLAGS.studio.i386 = -preserve_argvalues=complete
CONFIGURE_BINDIR.64 = $(USRSBINDIR)
CONFIGURE_OPTIONS += --with-binsubdir=sbin
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/inet
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet
CONFIGURE_OPTIONS += --enable-all-clocks
CONFIGURE_OPTIONS += --enable-debugging
CONFIGURE_OPTIONS += --enable-debug-timing
CONFIGURE_OPTIONS += --disable-optional-args
CONFIGURE_OPTIONS += --enable-parse-clocks
CONFIGURE_OPTIONS += --enable-ignore-dns-errors
CONFIGURE_OPTIONS += --without-ntpsnmpd
CONFIGURE_OPTIONS += --with-openssl-libdir=$(LIBDIR)/$(MACH64)
CONFIGURE_OPTIONS += --disable-problem-tests
REQUIRED_PACKAGES += library/libedit
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += $(PERL_PKG)
REQUIRED_PACKAGES += service/network/dns/mdns
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/crypto