components/ntp/Makefile
changeset 5959 252103d8ad49
parent 5958 8e562647e7c5
child 6482 d5493015b12e
equal deleted inserted replaced
5958:8e562647e7c5 5959:252103d8ad49
    37 COMPONENT_ARCHIVE_HASH=	 \
    37 COMPONENT_ARCHIVE_HASH=	 \
    38     sha256:81d20c06a0b01abe3b84fac092185bf014252d38fe5e7b2758f604680a0220dc
    38     sha256:81d20c06a0b01abe3b84fac092185bf014252d38fe5e7b2758f604680a0220dc
    39 COMPONENT_ARCHIVE_URL=	http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
    39 COMPONENT_ARCHIVE_URL=	http://archive.ntp.org/ntp4/ntp-4.2/$(COMPONENT_ARCHIVE)
    40 COMPONENT_BUGDB= service/ntp
    40 COMPONENT_BUGDB= service/ntp
    41 
    41 
       
    42 # NTP tests log results in separate files. Instead of geting the output
       
    43 # of the build and test and deleting the extra lines, it is easier to just
       
    44 # cat together all of the logs. The test TEST_PROGNAME3 tests the system
       
    45 # log facility, so we have to get rid of the output because the pid is
       
    46 # different every time.
       
    47 #
       
    48 # In addition, we append the config.h file so we know if the configuration
       
    49 # ever changes. We get rid of the version number which changes every time
       
    50 # we upgrade and the system string and endian info which is different between
       
    51 # intel and SPARC.
       
    52 
       
    53 COMPONENT_TEST_CREATE_TRANSFORMS = \
       
    54         @if [ -e $(COMPONENT_TEST_MASTER) ]; \
       
    55         then \
       
    56 		print "\#!/bin/sh" > $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    57 		print '$(FIND) $(BUILD_DIR_64) -name test-\*.log | sort |\\' \
       
    58 		    >> $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    59 		print ' xargs cat  | grep -v TEST_PROGNAME3 \\' \
       
    60 		    >> $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    61 		print '> $(COMPONENT_TEST_SNAPSHOT)' \
       
    62 		    >> $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    63 		print 'cat $(BUILD_DIR_64)/config.h | \\' \
       
    64 		    >> $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    65 		print 'grep -v VERSION | grep -v STR_SYSTEM | grep -v ENDIAN \\' \
       
    66 		    >> $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    67 		print '>> $(COMPONENT_TEST_SNAPSHOT)' \
       
    68 		    >> $(COMPONENT_TEST_TRANSFORM_CMD); \
       
    69 	else \
       
    70 		print 'Cannot find $(COMPONENT_TEST_MASTER)'; \
       
    71 		exit 2; \
       
    72 	fi
       
    73 
    42 TPNO=			20866
    74 TPNO=			20866
    43 
    75 
    44 PATCH_LEVEL = 0
    76 PATCH_LEVEL = 0
    45 
    77 
    46 TEST_TARGET= $(NO_TESTS)
    78 TEST_TARGET= build $(TEST_64)
    47 include $(WS_MAKE_RULES)/common.mk
    79 include $(WS_MAKE_RULES)/common.mk
    48 
    80 
    49 CFLAGS +=	 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
    81 CFLAGS +=	 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
    50 
    82 
    51 studio_C99MODE= $(studio_C99_ENABLE)
    83 studio_C99MODE= $(studio_C99_ENABLE)
    62 CONFIGURE_OPTIONS +=	--disable-optional-args
    94 CONFIGURE_OPTIONS +=	--disable-optional-args
    63 CONFIGURE_OPTIONS +=	--enable-parse-clocks
    95 CONFIGURE_OPTIONS +=	--enable-parse-clocks
    64 CONFIGURE_OPTIONS +=	--enable-ignore-dns-errors
    96 CONFIGURE_OPTIONS +=	--enable-ignore-dns-errors
    65 CONFIGURE_OPTIONS +=	--without-ntpsnmpd
    97 CONFIGURE_OPTIONS +=	--without-ntpsnmpd
    66 CONFIGURE_OPTIONS +=	--with-openssl-libdir=$(LIBDIR)/$(MACH64)
    98 CONFIGURE_OPTIONS +=	--with-openssl-libdir=$(LIBDIR)/$(MACH64)
       
    99 CONFIGURE_OPTIONS +=	--disable-problem-tests
    67 
   100 
    68 REQUIRED_PACKAGES += library/libedit
   101 REQUIRED_PACKAGES += library/libedit
    69 REQUIRED_PACKAGES += library/security/openssl
   102 REQUIRED_PACKAGES += library/security/openssl
    70 REQUIRED_PACKAGES += $(PERL_PKG)
   103 REQUIRED_PACKAGES += $(PERL_PKG)
    71 REQUIRED_PACKAGES += service/network/dns/mdns
   104 REQUIRED_PACKAGES += service/network/dns/mdns