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) 2012, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2021 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
27 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_NAME
= sg3_utils
30 COMPONENT_VERSION
= 1.48
31 COMPONENT_SUMMARY
= Utilities for devices that use SCSI command sets
32 COMPONENT_DESCRIPTION
= Collection of utilities for devices that use the SCSI command set. Includes utilities to copy data based \
33 on
"dd" syntax and semantics
(called sg_dd
, sgp_dd and sgm_dd
); check INQUIRY data and VPD pages
(sg_inq
); \
34 check mode and log pages
(sginfo
, sg_modes and sg_logs
); spin up and down disks
(sg_start
); do self tests \
35 (sg_senddiag
); and various other functions. Warning
: Some of these tools access the internals of your \
36 system and the incorrect usage of them may render your system inoperable.
37 COMPONENT_PROJECT_URL
= https
://sg.danny.cz
/sg
/sg3_utils.html
38 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
39 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).tgz
40 COMPONENT_ARCHIVE_HASH
= sha256
:d62b6c3cf20390fa7357044390084166d25f1d932a1135c450b69fe5c283d773
41 COMPONENT_ARCHIVE_URL
= https
://sg.danny.cz
/sg
/p
/$(COMPONENT_ARCHIVE
)
42 COMPONENT_FMRI
= system
/storage
/$(COMPONENT_NAME
)
43 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
44 COMPONENT_LICENSE
= GPLv2
+ and BSD
46 include $(WS_MAKE_RULES
)/common.mk
48 CPPFLAGS
+= -I
$(COMPONENT_DIR
)/$(COMPONENT_SRC
)/include
49 CFLAGS
+= -std
=c99
$(XPG6MODE
)
51 CONFIGURE_OPTIONS
+= --disable-static
52 CONFIGURE_OPTIONS
+= CPPFLAGS
="$(CPPFLAGS)"
53 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
56 COMPONENT_POST_CONFIGURE_ACTION
= \
57 (cd
$(BUILD_DIR_64
) ; \
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
)
61 PKG_PROTO_DIRS
+= $(COMPONENT_DIR
)/files
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES
+= shell/bash
65 REQUIRED_PACKAGES
+= system
/library