author | Brian Utterback <brian.utterback@oracle.com> |
Mon, 09 May 2016 19:08:07 -0700 | |
changeset 5959 | 252103d8ad49 |
parent 5958 | 8e562647e7c5 |
child 6482 | d5493015b12e |
permissions | -rw-r--r-- |
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 |
# |
5360
af56e129673d
22517673 Update NTP to 4.2.8p6
Brian Utterback <brian.utterback@oracle.com>
parents:
4746
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 |
# |
5957
c5fa57b940a5
20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents:
5797
diff
changeset
|
25 |
BUILD_BITS= 64 |
172
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 |
|
1048
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
28 |
COMPONENT_NAME= ntp |
3572
2f22f425382c
20248611 Update ntp to 4.2.8
Brian Utterback <brian.utterback@oracle.com>
parents:
2225
diff
changeset
|
29 |
COMPONENT_VERSION= 4.2.8 |
5958
8e562647e7c5
23216678 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents:
5957
diff
changeset
|
30 |
COMPONENT_PATCH_VERSION= 7 |
3839
dece34b8bbeb
20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents:
3817
diff
changeset
|
31 |
COMPONENT_RC_VERSION= 1 |
dece34b8bbeb
20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents:
3817
diff
changeset
|
32 |
HUMAN_VERSION= $(COMPONENT_VERSION)p$(COMPONENT_PATCH_VERSION) |
dece34b8bbeb
20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents:
3817
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/ |
3572
2f22f425382c
20248611 Update ntp to 4.2.8
Brian Utterback <brian.utterback@oracle.com>
parents:
2225
diff
changeset
|
35 |
COMPONENT_SRC_NAME= ntp |
1048
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
36 |
COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(HUMAN_VERSION) |
1467
f14b6c5766ca
15705382 SUNBT7031289 Update ntp to 4.2.7
Brian Utterback <brian.utterback@oracle.com>
parents:
1058
diff
changeset
|
37 |
COMPONENT_ARCHIVE_HASH= \ |
5958
8e562647e7c5
23216678 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents:
5957
diff
changeset
|
38 |
sha256:81d20c06a0b01abe3b84fac092185bf014252d38fe5e7b2758f604680a0220dc |
3839
dece34b8bbeb
20472041 problem in SERVICE/NTP
Brian Utterback <brian.utterback@oracle.com>
parents:
3817
diff
changeset
|
39 |
COMPONENT_ARCHIVE_URL= http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE) |
1467
f14b6c5766ca
15705382 SUNBT7031289 Update ntp to 4.2.7
Brian Utterback <brian.utterback@oracle.com>
parents:
1058
diff
changeset
|
40 |
COMPONENT_BUGDB= service/ntp |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1048
diff
changeset
|
41 |
|
5959
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
42 |
# NTP tests log results in separate files. Instead of geting the output |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
43 |
# of the build and test and deleting the extra lines, it is easier to just |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
44 |
# cat together all of the logs. The test TEST_PROGNAME3 tests the system |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
45 |
# log facility, so we have to get rid of the output because the pid is |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
46 |
# different every time. |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
47 |
# |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
48 |
# In addition, we append the config.h file so we know if the configuration |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
49 |
# ever changes. We get rid of the version number which changes every time |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
50 |
# we upgrade and the system string and endian info which is different between |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
51 |
# intel and SPARC. |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
52 |
|
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
53 |
COMPONENT_TEST_CREATE_TRANSFORMS = \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
54 |
@if [ -e $(COMPONENT_TEST_MASTER) ]; \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
55 |
then \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
56 |
print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
57 |
print '$(FIND) $(BUILD_DIR_64) -name test-\*.log | sort |\\' \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
58 |
>> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
59 |
print ' xargs cat | grep -v TEST_PROGNAME3 \\' \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
60 |
>> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
61 |
print '> $(COMPONENT_TEST_SNAPSHOT)' \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
62 |
>> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
63 |
print 'cat $(BUILD_DIR_64)/config.h | \\' \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
64 |
>> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
65 |
print 'grep -v VERSION | grep -v STR_SYSTEM | grep -v ENDIAN \\' \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
66 |
>> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
67 |
print '>> $(COMPONENT_TEST_SNAPSHOT)' \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
68 |
>> $(COMPONENT_TEST_TRANSFORM_CMD); \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
69 |
else \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
70 |
print 'Cannot find $(COMPONENT_TEST_MASTER)'; \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
71 |
exit 2; \ |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
72 |
fi |
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
73 |
|
3572
2f22f425382c
20248611 Update ntp to 4.2.8
Brian Utterback <brian.utterback@oracle.com>
parents:
2225
diff
changeset
|
74 |
TPNO= 20866 |
2158
bbf95c342386
19078604 ntp version 4.2.7 needs a TPNO when the moment is right
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
1467
diff
changeset
|
75 |
|
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
76 |
PATCH_LEVEL = 0 |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
77 |
|
5959
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
78 |
TEST_TARGET= build $(TEST_64) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
79 |
include $(WS_MAKE_RULES)/common.mk |
1467
f14b6c5766ca
15705382 SUNBT7031289 Update ntp to 4.2.7
Brian Utterback <brian.utterback@oracle.com>
parents:
1058
diff
changeset
|
80 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
81 |
CFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
82 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
83 |
studio_C99MODE= $(studio_C99_ENABLE) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
84 |
CFLAGS.studio.i386 = -preserve_argvalues=complete |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
172
diff
changeset
|
85 |
|
5957
c5fa57b940a5
20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents:
5797
diff
changeset
|
86 |
CONFIGURE_BINDIR.64 = $(USRSBINDIR) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
87 |
|
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
88 |
CONFIGURE_OPTIONS += --with-binsubdir=sbin |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
89 |
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/inet |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5360
diff
changeset
|
90 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --enable-all-clocks |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
92 |
CONFIGURE_OPTIONS += --enable-debugging |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
93 |
CONFIGURE_OPTIONS += --enable-debug-timing |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
94 |
CONFIGURE_OPTIONS += --disable-optional-args |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
95 |
CONFIGURE_OPTIONS += --enable-parse-clocks |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
96 |
CONFIGURE_OPTIONS += --enable-ignore-dns-errors |
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
diff
changeset
|
97 |
CONFIGURE_OPTIONS += --without-ntpsnmpd |
5957
c5fa57b940a5
20123766 NTP should be 64-bit
Brian Utterback <brian.utterback@oracle.com>
parents:
5797
diff
changeset
|
98 |
CONFIGURE_OPTIONS += --with-openssl-libdir=$(LIBDIR)/$(MACH64) |
5959
252103d8ad49
20745333 NTP build should have test target
Brian Utterback <brian.utterback@oracle.com>
parents:
5958
diff
changeset
|
99 |
CONFIGURE_OPTIONS += --disable-problem-tests |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
100 |
|
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
101 |
REQUIRED_PACKAGES += library/libedit |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
102 |
REQUIRED_PACKAGES += library/security/openssl |
5797
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5682
diff
changeset
|
103 |
REQUIRED_PACKAGES += $(PERL_PKG) |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
104 |
REQUIRED_PACKAGES += service/network/dns/mdns |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
105 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
106 |
REQUIRED_PACKAGES += system/core-os |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
107 |
REQUIRED_PACKAGES += system/library/math |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3572
diff
changeset
|
108 |
REQUIRED_PACKAGES += system/library/security/crypto |