|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
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. |
|
7 # |
|
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. |
|
12 # |
|
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] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
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) |
|
36 |
|
37 COMPONENT_BUGDB = utility/mlocate |
|
38 |
|
39 include ../../make-rules/prep.mk |
|
40 include ../../make-rules/configure.mk |
|
41 include ../../make-rules/ips.mk |
|
42 |
|
43 CONFIGURE_OPTIONS.64 += CC="$(CC) -m64" |
|
44 CONFIGURE_OPTIONS += --localstatedir="/var/cache" |
|
45 CONFIGURE_OPTIONS += --sysconfdir="/etc" |
|
46 |
|
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/ |
|
51 |
|
52 # Enable aslr for this component |
|
53 ASLR_MODE = $(ASLR_ENABLE) |
|
54 |
|
55 # common targets |
|
56 build: $(BUILD_64) |
|
57 |
|
58 install: $(INSTALL_64) |
|
59 |
|
60 test: $(NO_TESTS) |
|
61 |
|
62 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
63 |
|
64 include ../../make-rules/depend.mk |