6498N/A#
6498N/A# CDDL HEADER START
6498N/A#
6498N/A# The contents of this file are subject to the terms of the
6498N/A# Common Development and Distribution License (the "License").
6498N/A# You may not use this file except in compliance with the License.
6498N/A#
6498N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6498N/A# or http://www.opensolaris.org/os/licensing.
6498N/A# See the License for the specific language governing permissions
6498N/A# and limitations under the License.
6498N/A#
6498N/A# When distributing Covered Code, include this CDDL HEADER in each
6498N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6498N/A# If applicable, add the following below this CDDL HEADER, with the
6498N/A# fields enclosed by brackets "[]" replaced with your own identifying
6498N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6498N/A#
6498N/A# CDDL HEADER END
6498N/A#
6498N/A
6498N/A#
6498N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6498N/A#
6498N/ABUILD_BITS= 64
6498N/Ainclude ../../make-rules/shared-macros.mk
6498N/Ainclude $(WS_MAKE_RULES)/shared-targets.mk
6498N/A
6498N/ACOMPONENT_NAME= pdsh
6498N/ACOMPONENT_VERSION= 2.29
6498N/ACOMPONENT_PROJECT_URL= https://code.google.com/archive/p/pdsh
6498N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6498N/ACOMPONENT_ARCHIVE_HASH= \
6498N/A sha256:57f0903bf782afe00874267b59e0f4adefa79da4c48d0257c5ae2bef02f87fcf
6498N/ACOMPONENT_ARCHIVE_URL= https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
6498N/A
6498N/ATPNO= 29495
6498N/A
6498N/A# Old version in SFW was not version-locked, so cannot be upgraded to, so
6498N/A# do not publish.
6498N/Aifeq ($(BUILD_TYPE), evaluation)
6498N/ABUILD_64=
6498N/AINSTALL_64=
6498N/APUBLISH_STAMP=
6498N/Aendif
6498N/A
6498N/Ainclude $(WS_MAKE_RULES)/common.mk
6498N/A
6498N/A# Needed to make the tests work successfully.
6498N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
6498N/A
6498N/A# Prevent libtool from embedding runpath (via -R) and other such annoyances.
6498N/ACOMPONENT_POST_CONFIGURE_ACTION += \
6498N/A (cd $(BUILD_DIR_$(BITS)) ; \
6498N/A $(GSED) -i \
6498N/A -e 's|hardcode_into_libs=yes|hardcode_into_libs=no|g' \
6498N/A -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
6498N/A -e 's|need_relink=yes|need_relink=not_on_solaris|g' \
6498N/A libtool)
6498N/A
6498N/A# Delete this when build servers are installed with genders
6498N/AGENDERS_BASE = $(WS_COMPONENTS)/genders/build/prototype/$(MACH)
6498N/AGENDERS_INC_DIR += -I$(GENDERS_BASE)/usr/include
6498N/AGENDERS_LD_OPTIONS += -L$(GENDERS_BASE)/usr/lib/$(MACH64)
6498N/A
6498N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) $(GENDERS_INC_DIR)"
6498N/ACONFIGURE_ENV += GENDERS_LD_OPTIONS="$(GENDERS_LD_OPTIONS)"
6498N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS) $(GENDERS_LD_OPTIONS)"
6498N/A
6498N/ACONFIGURE_OPTIONS += --with-genders
6498N/ACONFIGURE_OPTIONS += --with-readline
6498N/ACONFIGURE_OPTIONS += --with-ssh
6498N/ACONFIGURE_OPTIONS += --without-rsh
6498N/A
6498N/ACOMPONENT_TEST_ENV += PATH="/usr/gnu/bin:/usr/bin"
6498N/ACOMPONENT_TEST_DIR = $(@D)/tests
6498N/A
6498N/ACOMPONENT_TEST_TRANSFORMS += \
6498N/A '-n ' \
6498N/A '-e "/^Makefile/d" ' \
6498N/A '-e "/^ok /p" ' \
6498N/A '-e "/^not ok /p" ' \
6498N/A '-e "/still have/p" ' \
6498N/A '-e "/complete/p" ' \
6498N/A '-e "/^\*\*\* /p" ' \
6498N/A '-e "/^===/p" ' \
6498N/A '-e "/skipped/p" ' \
6498N/A '-e "/passed/p" ' \
6498N/A '-e "/failed/p" ' \
6498N/A '-e "/^FAIL/p" '
6498N/A
6498N/AREQUIRED_PACKAGES += library/libgenders
6498N/AREQUIRED_PACKAGES += library/ncurses
6498N/AREQUIRED_PACKAGES += library/readline
6498N/AREQUIRED_PACKAGES += runtime/perl-522
6498N/AREQUIRED_PACKAGES += system/library