components/ntp/Makefile
author Brian Utterback <brian.utterback@oracle.com>
Fri, 29 Jul 2016 12:35:09 -0700
branchs11u3-sru
changeset 6563 73ec673adbc1
parent 5422 caa00be8185e
child 6565 b587f1e64418
permissions -rw-r--r--
20123766 NTP should be 64-bit
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     1
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     3
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     7
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    12
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    18
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    20
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    21
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    22
#
5422
caa00be8185e 22517673 Update NTP to 4.2.8p6
Brian Utterback <brian.utterback@oracle.com>
parents: 5011
diff changeset
    23
# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    24
#
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    25
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    27
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    28
COMPONENT_NAME=		ntp
3573
7e043dae7c72 20248611 Update ntp to 4.2.8
Brian Utterback <brian.utterback@oracle.com>
parents: 3412
diff changeset
    29
COMPONENT_VERSION=	4.2.8
5422
caa00be8185e 22517673 Update NTP to 4.2.8p6
Brian Utterback <brian.utterback@oracle.com>
parents: 5011
diff changeset
    30
COMPONENT_PATCH_VERSION=	6
3925
49fdcf040780 20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 3573
diff changeset
    31
COMPONENT_RC_VERSION=	1
49fdcf040780 20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 3573
diff changeset
    32
HUMAN_VERSION=		$(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION)
49fdcf040780 20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 3573
diff changeset
    33
IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 582
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.ntp.org/
3573
7e043dae7c72 20248611 Update ntp to 4.2.8
Brian Utterback <brian.utterback@oracle.com>
parents: 3412
diff changeset
    35
COMPONENT_SRC_NAME=	ntp
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_SRC=		$(COMPONENT_SRC_NAME)-$(HUMAN_VERSION)
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
3925
49fdcf040780 20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 3573
diff changeset
    38
COMPONENT_ARCHIVE_HASH=	 \
5422
caa00be8185e 22517673 Update NTP to 4.2.8p6
Brian Utterback <brian.utterback@oracle.com>
parents: 5011
diff changeset
    39
    sha256:583d0e1c573ace30a9c6afbea0fc52cae9c8c916dbc15c026e485a0dda4ba048
3925
49fdcf040780 20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 3573
diff changeset
    40
COMPONENT_ARCHIVE_URL=	http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
49fdcf040780 20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 3573
diff changeset
    41
COMPONENT_BUGDB= service/ntp
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    42
3573
7e043dae7c72 20248611 Update ntp to 4.2.8
Brian Utterback <brian.utterback@oracle.com>
parents: 3412
diff changeset
    43
TPNO=			20866
3412
7b3ae70aaf84 19078604 ntp version 4.2.7 needs a TPNO when the moment is right
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 2789
diff changeset
    44
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    45
PATCH_LEVEL = 0
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    46
5011
f82ed461353b 16756358 Enable ASLR for NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 4213
diff changeset
    47
ASLR_MODE= $(ASLR_ENABLE)
f82ed461353b 16756358 Enable ASLR for NTP
Brian Utterback <brian.utterback@oracle.com>
parents: 4213
diff changeset
    48
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    49
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    50
include $(WS_MAKE_RULES)/configure.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    51
include $(WS_MAKE_RULES)/ips.mk
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    52
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 172
diff changeset
    53
CFLAGS +=	$(studio_C99_ENABLE) -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 172
diff changeset
    54
6563
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    55
CONFIGURE_BINDIR.64 = /usr/sbin
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    56
CONFIGURE_SBINDIR.64 = /usr/sbin
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    57
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 172
diff changeset
    58
CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    59
CONFIGURE_OPTIONS +=	--with-binsubdir=sbin
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    60
CONFIGURE_OPTIONS +=	--libexecdir=/usr/lib/inet
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    61
CONFIGURE_OPTIONS +=	--sysconfdir=/etc/inet
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    62
CONFIGURE_OPTIONS +=	--enable-all-clocks
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    63
CONFIGURE_OPTIONS +=	--enable-debugging
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    64
CONFIGURE_OPTIONS +=	--enable-debug-timing
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    65
CONFIGURE_OPTIONS +=	--disable-optional-args
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    66
CONFIGURE_OPTIONS +=	--enable-parse-clocks
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    67
CONFIGURE_OPTIONS +=	--enable-ignore-dns-errors
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    68
CONFIGURE_OPTIONS +=	--without-ntpsnmpd
6563
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    69
CONFIGURE_OPTIONS +=	--with-openssl-libdir=$(LIBDIR)/$(MACH64)
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    70
6563
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    71
configure:	$(CONFIGURE_64)
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    72
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    73
build:		$(BUILD_64)
73ec673adbc1 20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents: 5422
diff changeset
    74
install:	$(INSTALL_64)
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 172
diff changeset
    75
test:		$(NO_TESTS)
172
093198acf7d4 7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff changeset
    76
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    77
REQUIRED_PACKAGES += library/libedit
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    78
REQUIRED_PACKAGES += library/security/openssl
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    79
REQUIRED_PACKAGES += runtime/perl-512
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    80
REQUIRED_PACKAGES += service/network/dns/mdns
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    81
REQUIRED_PACKAGES += shell/ksh93
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    82
REQUIRED_PACKAGES += system/core-os
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    83
REQUIRED_PACKAGES += system/library
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3925
diff changeset
    84
REQUIRED_PACKAGES += system/library/math