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