280a8a0544b4aeb52414d20e8c6e6c5b1108562eTinderbox User#
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# The contents of this file are subject to the terms of the
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Common Development and Distribution License (the "License").
2fee8782a6fd57d86a67949092ab9197111af390Evan Hunt# You may not use this file except in compliance with the License.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
969eaf7df8ac651946f76b6631ff5db568c11ef6Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# or http://www.opensolaris.org/os/licensing.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# See the License for the specific language governing permissions
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# and limitations under the License.
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User#
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# If applicable, add the following below this CDDL HEADER, with the
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_NAME= ntp
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_VERSION= 4.2.8
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_PATCH_VERSION= 8
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCOMPONENT_RC_VERSION= 1
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntHUMAN_VERSION= $(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_PROJECT_URL= http://www.ntp.org/
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_SRC_NAME= ntp
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(HUMAN_VERSION)
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_HASH= \
415d630b6309922caee8469384a6fab75cf05032Mark Andrews sha256:2ab3d0b5f0456e6311dda1cc27ab75da108762773a19e46abd938bd9407b97ee
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_BUGDB= service/ntp
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntTPNO= 20866
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserPATCH_LEVEL = 0
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntASLR_MODE= $(ASLR_ENABLE)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude $(WS_MAKE_RULES)/configure.mk
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsinclude $(WS_MAKE_RULES)/ips.mk
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCFLAGS += $(studio_C99_ENABLE) -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_BINDIR.64 = /usr/sbin
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_SBINDIR.64 = /usr/sbin
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --with-binsubdir=sbin
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --libexecdir=/usr/lib/inet
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --sysconfdir=/etc/inet
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --enable-all-clocks
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCONFIGURE_OPTIONS += --enable-debugging
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCONFIGURE_OPTIONS += --enable-debug-timing
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntCONFIGURE_OPTIONS += --disable-optional-args
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --enable-parse-clocks
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --enable-ignore-dns-errors
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --without-ntpsnmpd
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-openssl-libdir=$(LIBDIR)/$(MACH64)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Huntconfigure: $(CONFIGURE_64)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsbuild: $(BUILD_64)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinstall: $(INSTALL_64)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewstest: $(NO_TESTS)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsREQUIRED_PACKAGES += library/libedit
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntREQUIRED_PACKAGES += library/security/openssl
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += runtime/perl-512
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserREQUIRED_PACKAGES += service/network/dns/mdns
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsREQUIRED_PACKAGES += shell/ksh93
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsREQUIRED_PACKAGES += system/core-os
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark AndrewsREQUIRED_PACKAGES += system/library
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark AndrewsREQUIRED_PACKAGES += system/library/math
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews