1536N/A#
1536N/A# CDDL HEADER START
1536N/A#
1536N/A# The contents of this file are subject to the terms of the
1536N/A# Common Development and Distribution License (the "License").
1536N/A# You may not use this file except in compliance with the License.
1536N/A#
1536N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1536N/A# or http://www.opensolaris.org/os/licensing.
1536N/A# See the License for the specific language governing permissions
1536N/A# and limitations under the License.
1536N/A#
1536N/A# When distributing Covered Code, include this CDDL HEADER in each
1536N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1536N/A# If applicable, add the following below this CDDL HEADER, with the
1536N/A# fields enclosed by brackets "[]" replaced with your own identifying
1536N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1536N/A#
1536N/A# CDDL HEADER END
1536N/A#
1536N/A
1536N/A#
5547N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1536N/A#
5680N/ABUILD_BITS= 64
1536N/Ainclude ../../make-rules/shared-macros.mk
1536N/A
1536N/ACOMPONENT_NAME= mlocate
5547N/ACOMPONENT_VERSION= 0.26
1536N/ACOMPONENT_PROJECT_URL= https://fedorahosted.org/mlocate
1536N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
1536N/ACOMPONENT_ARCHIVE_HASH= \
5547N/A sha256:3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
1536N/ACOMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/m/l/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1536N/A
5547N/ATPNO= 27159
1536N/A
5680N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
1536N/A
4940N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4940N/A
5680N/ACONFIGURE_OPTIONS += --localstatedir="$(VARDIR)/cache"
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
1536N/A
1536N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
1536N/ACOMPONENT_POST_INSTALL_ACTION= \
1536N/A @$(MKDIR) -p $(PROTO_DIR)/etc/; \
4922N/A $(CP) files/updatedb.conf $(PROTO_DIR)/etc/
4922N/A
4922N/ACOMPONENT_TEST_TRANSFORMS += \
4922N/A '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
4922N/A '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
4922N/A '-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \
4922N/A '-e "s|^/usr/gnu/bin/make.*$$|XXX_REMOVE_XXX|g" ' \
4922N/A '-e "/^XXX_REMOVE_XXX$$/d" '
1536N/A
4940N/A# Test 41 needs to be able to open at least 950 fds. Bump up the limit.
4940N/ACOMPONENT_TEST_ENV_CMD = ulimit -n 1000; env
4940N/A
4940N/A# Need /usr/gnu/bin before /usr/bin for GNU diff.
4940N/ACOMPONENT_TEST_ENV += PATH="$(@D)/src:$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)"
4940N/A
4940N/ACOMPONENT_TEST_CMD = $(SOURCE_DIR)/tests/testsuite
4922N/ACOMPONENT_TEST_TARGETS =
4922N/A
4940N/ACOMPONENT_SYSTEM_TEST_ENV_CMD = ulimit -n 1000; env
4940N/ACOMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)"
4922N/ACOMPONENT_SYSTEM_TEST_CMD = $(SHELL) $(SOURCE_DIR)/tests/testsuite
4940N/ACOMPONENT_SYSTEM_TEST_ARGS = AUTOTEST_PATH=$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)
4922N/ACOMPONENT_SYSTEM_TEST_TARGETS =