components/gzip/Makefile
changeset 4732 d072001cb0ea
parent 4339 6501cf9c29f9
child 4984 7145b15b7f0d
equal deleted inserted replaced
4731:88830c57334b 4732:d072001cb0ea
    54 # diffs failing due to script tracing in output files.
    54 # diffs failing due to script tracing in output files.
    55 unexport SHELLOPTS
    55 unexport SHELLOPTS
    56 
    56 
    57 COMPONENT_PREP_ACTION = (cd $(SOURCE_DIR); $(AUTORECONF) -if)
    57 COMPONENT_PREP_ACTION = (cd $(SOURCE_DIR); $(AUTORECONF) -if)
    58 
    58 
    59 # Get the binaries to test from the component build area.
       
    60 COMPONENT_TEST_ENV +=	PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:/usr/bin
       
    61 COMPONENT_TEST_TARGETS = check
       
    62 
       
    63 # Fix references to Solaris renamed programs (z*->gz*) in man pages, info
    59 # Fix references to Solaris renamed programs (z*->gz*) in man pages, info
    64 # pages and in wrapper scripts.
    60 # pages and in wrapper scripts.
    65 COMPONENT_PRE_INSTALL_ACTION = \
    61 COMPONENT_PRE_INSTALL_ACTION = \
    66 	(cd $(COMPONENT_SRC) ; \
    62 	(cd $(COMPONENT_SRC) ; \
    67 	 for file in `ls *.1 doc/*.info z*.in` ; do \
    63 	 for file in `ls *.1 doc/*.info z*.in` ; do \
    84 GZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzfgrep.1
    80 GZGREP_MAN_VARIANTS+=$(PROTOUSRSHAREMAN1DIR)/gzfgrep.1
    85 
    81 
    86 $(GZGREP_MAN_VARIANTS):
    82 $(GZGREP_MAN_VARIANTS):
    87 	$(RM) $@; echo ".so man1/gzgrep.1" > $@
    83 	$(RM) $@; echo ".so man1/gzgrep.1" > $@
    88 
    84 
       
    85 # Get the binaries to test from the component build area.
       
    86 COMPONENT_TEST_ENV +=	PATH=$(BUILD_DIR_$(BITS)):/usr/xpg4/bin:/usr/bin
       
    87 
       
    88 # Use the installed gzip binary from /usr/bin.
       
    89 COMPONENT_SYSTEM_TEST_ENV +=	PATH=/usr/xpg4/bin:/usr/bin
       
    90 
       
    91 COMPONENT_TEST_TRANSFORMS += \
       
    92 	'-n ' \
       
    93 	'-e "/PASS/p" ' \
       
    94 	'-e "/FAIL/p" '
       
    95 
    89 ASLR_MODE = $(ASLR_ENABLE)
    96 ASLR_MODE = $(ASLR_ENABLE)
    90 
    97 
    91 configure:	$(CONFIGURE_64)
    98 configure:	$(CONFIGURE_64)
    92 
    99 
    93 build:		$(BUILD_64)
   100 build:		$(BUILD_64)
    94 
   101 
    95 install:	$(INSTALL_64) $(GZGREP_MAN_VARIANTS)
   102 install:	$(INSTALL_64) $(GZGREP_MAN_VARIANTS)
    96 
   103 
    97 test:		$(TEST_64)
   104 test:		$(TEST_64)
    98 
   105 
    99 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
   106 system-test:    configure $(SYSTEM_TEST_64)
   100 
   107 
   101 
   108 
   102 REQUIRED_PACKAGES += runtime/python-26
   109 REQUIRED_PACKAGES += runtime/python-26
   103 REQUIRED_PACKAGES += runtime/python-27
   110 REQUIRED_PACKAGES += runtime/python-27
   104 REQUIRED_PACKAGES += shell/bash
   111 REQUIRED_PACKAGES += shell/bash