4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= mlocate
29 COMPONENT_VERSION
= 0.25
30 COMPONENT_PROJECT_URL
= https
://fedorahosted.org
/mlocate
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:ab95c111f9dba35b5690896180dd0a7639dbf07d70b862fcb0731264d9273951
35 COMPONENT_ARCHIVE_URL
= https
://fedorahosted.org
/releases
/m
/l
/$(COMPONENT_NAME
)/$(COMPONENT_ARCHIVE
)
37 COMPONENT_BUGDB
= utility
/mlocate
39 include ..
/..
/make-rules
/prep.mk
40 include ..
/..
/make-rules
/configure.mk
41 include ..
/..
/make-rules
/ips.mk
43 CONFIGURE_OPTIONS
.64 += CC
="$(CC) -m64"
44 CONFIGURE_OPTIONS
+= --localstatedir
="/var/cache"
45 CONFIGURE_OPTIONS
+= --sysconfdir
="/etc"
47 COMPONENT_PREP_ACTION
= (cd
$(@D
) ; autoreconf
-f
&& automake
)
48 COMPONENT_POST_INSTALL_ACTION
= \
49 @
$(MKDIR
) -p
$(PROTO_DIR
)/etc
/; \
50 $(CP
) files
/updatedb.conf
$(PROTO_DIR
)/etc
/
52 # Enable aslr for this component
53 ASLR_MODE
= $(ASLR_ENABLE
)
56 build
: $(BUILD_32_and_64
)
58 install: $(INSTALL_32_and_64
)
62 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
64 include ..
/..
/make-rules
/depend.mk