|
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) 2012, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= sg3_utils |
|
29 COMPONENT_VERSION= 1.28 |
|
30 COMPONENT_PROJECT_URL= http://sg.danny.cz/sg/sg3_utils.html |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
|
34 sha256:da8bd627a6246b709e2a0321fa9d5ca09a33354a1ae40c74cd37efb69b9f8118 |
|
35 COMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE) |
|
36 |
|
37 COMPONENT_ARCHIVE_1 = rescan-scsi-bus.sh-1.35 |
|
38 COMPONENT_ARCHIVE_HASH_1 = \ |
|
39 sha256:324630d65ef85480f3fc57e8c1648dba2c79fa1927e26e6dfd1b64c7b8aba0b1 |
|
40 COMPONENT_ARCHIVE_URL_1 = http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh-1.35 |
|
41 |
|
42 COMPONENT_POST_UNPACK_ACTION = \ |
|
43 $(CP) $(COMPONENT_DIR)/rescan-scsi-bus.sh-1.35 \ |
|
44 $(COMPONENT_SRC)/rescan-scsi-bus.sh |
|
45 |
|
46 include ../../make-rules/prep.mk |
|
47 include ../../make-rules/configure.mk |
|
48 include ../../make-rules/ips.mk |
|
49 |
|
50 CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include |
|
51 |
|
52 CONFIGURE_OPTIONS += --disable-static |
|
53 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
54 |
|
55 # Don't use rpath! |
|
56 COMPONENT_POST_CONFIGURE_ACTION = \ |
|
57 (cd $(BUILD_DIR_32) ; \ |
|
58 $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \ |
|
59 $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool) |
|
60 |
|
61 # Move the section 8 man pages into section 1m. |
|
62 COMPONENT_POST_INSTALL_ACTION = \ |
|
63 for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \ |
|
64 mv $$f $${f%.8}.1m; \ |
|
65 done ; \ |
|
66 $(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m |
|
67 |
|
68 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
69 |
|
70 # common targets |
|
71 build: $(BUILD_32) |
|
72 |
|
73 install: $(INSTALL_32) |
|
74 |
|
75 test: $(TEST_32) |
|
76 |
|
77 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
78 |
|
79 include ../../make-rules/depend.mk |