2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# CDDL HEADER START
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# The contents of this file are subject to the terms of the
2fcbc377041d659446ded306a92901b4b0753b68yt# Common Development and Distribution License (the "License").
2fcbc377041d659446ded306a92901b4b0753b68yt# You may not use this file except in compliance with the License.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2fcbc377041d659446ded306a92901b4b0753b68yt# or http://www.opensolaris.org/os/licensing.
2fcbc377041d659446ded306a92901b4b0753b68yt# See the License for the specific language governing permissions
2fcbc377041d659446ded306a92901b4b0753b68yt# and limitations under the License.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# When distributing Covered Code, include this CDDL HEADER in each
2fcbc377041d659446ded306a92901b4b0753b68yt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2fcbc377041d659446ded306a92901b4b0753b68yt# If applicable, add the following below this CDDL HEADER, with the
2fcbc377041d659446ded306a92901b4b0753b68yt# fields enclosed by brackets "[]" replaced with your own identifying
2fcbc377041d659446ded306a92901b4b0753b68yt# information: Portions Copyright [yyyy] [name of copyright owner]
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# CDDL HEADER END
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht#
2fcbc377041d659446ded306a92901b4b0753b68yt# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytBUILD_BITS= 64
2fcbc377041d659446ded306a92901b4b0753b68ytinclude ../../make-rules/shared-macros.mk
2fcbc377041d659446ded306a92901b4b0753b68ytinclude $(WS_MAKE_RULES)/shared-targets.mk
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_NAME= pdsh
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_VERSION= 2.29
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_PROJECT_URL= https://code.google.com/archive/p/pdsh
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_ARCHIVE_HASH= \
2fcbc377041d659446ded306a92901b4b0753b68yt sha256:57f0903bf782afe00874267b59e0f4adefa79da4c48d0257c5ae2bef02f87fcf
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_ARCHIVE_URL= https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytTPNO= 29495
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt# Old version in SFW was not version-locked, so cannot be upgraded to, so
2fcbc377041d659446ded306a92901b4b0753b68yt# do not publish.
2fcbc377041d659446ded306a92901b4b0753b68ytifeq ($(BUILD_TYPE), evaluation)
2fcbc377041d659446ded306a92901b4b0753b68ytBUILD_64=
2fcbc377041d659446ded306a92901b4b0753b68ytINSTALL_64=
2fcbc377041d659446ded306a92901b4b0753b68ytPUBLISH_STAMP=
2fcbc377041d659446ded306a92901b4b0753b68ytendif
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytinclude $(WS_MAKE_RULES)/common.mk
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt# Needed to make the tests work successfully.
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt# Prevent libtool from embedding runpath (via -R) and other such annoyances.
2fcbc377041d659446ded306a92901b4b0753b68ytCOMPONENT_POST_CONFIGURE_ACTION += \
2fcbc377041d659446ded306a92901b4b0753b68yt (cd $(BUILD_DIR_$(BITS)) ; \
2fcbc377041d659446ded306a92901b4b0753b68yt $(GSED) -i \
2fcbc377041d659446ded306a92901b4b0753b68yt -e 's|hardcode_into_libs=yes|hardcode_into_libs=no|g' \
2fcbc377041d659446ded306a92901b4b0753b68yt -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
2fcbc377041d659446ded306a92901b4b0753b68yt -e 's|need_relink=yes|need_relink=not_on_solaris|g' \
2fcbc377041d659446ded306a92901b4b0753b68yt libtool)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt# Delete this when build servers are installed with genders
2fcbc377041d659446ded306a92901b4b0753b68ytGENDERS_BASE = $(WS_COMPONENTS)/genders/build/prototype/$(MACH)
2fcbc377041d659446ded306a92901b4b0753b68ytGENDERS_INC_DIR += -I$(GENDERS_BASE)/usr/include
2fcbc377041d659446ded306a92901b4b0753b68ytGENDERS_LD_OPTIONS += -L$(GENDERS_BASE)/usr/lib/$(MACH64)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) $(GENDERS_INC_DIR)"
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_ENV += GENDERS_LD_OPTIONS="$(GENDERS_LD_OPTIONS)"
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_ENV += LDFLAGS="$(LDFLAGS) $(GENDERS_LD_OPTIONS)"
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_OPTIONS += --with-genders
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_OPTIONS += --with-readline
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_OPTIONS += --with-ssh
2fcbc377041d659446ded306a92901b4b0753b68ytCONFIGURE_OPTIONS += --without-rsh
2fcbc377041d659446ded306a92901b4b0753b68yt
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCOMPONENT_TEST_ENV += PATH="/usr/gnu/bin:/usr/bin"
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCOMPONENT_TEST_DIR = $(@D)/tests
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCOMPONENT_TEST_TRANSFORMS += \
2fcbc377041d659446ded306a92901b4b0753b68yt '-n ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/^Makefile/d" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/^ok /p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/^not ok /p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/still have/p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/complete/p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/^\*\*\* /p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/^===/p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/skipped/p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/passed/p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/failed/p" ' \
2fcbc377041d659446ded306a92901b4b0753b68yt '-e "/^FAIL/p" '
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytREQUIRED_PACKAGES += library/libgenders
2fcbc377041d659446ded306a92901b4b0753b68ytREQUIRED_PACKAGES += library/ncurses
2fcbc377041d659446ded306a92901b4b0753b68ytREQUIRED_PACKAGES += library/readline
2fcbc377041d659446ded306a92901b4b0753b68ytREQUIRED_PACKAGES += runtime/perl-522
2fcbc377041d659446ded306a92901b4b0753b68ytREQUIRED_PACKAGES += system/library
2fcbc377041d659446ded306a92901b4b0753b68yt