2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2021 Gary Mills
13 # Copyright (c) 2014 Alexander Pyhalov
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= DTraceToolkit
22 COMPONENT_VERSION
= 0.99
24 COMPONENT_PROJECT_URL
= http
://www.brendangregg.com
/dtracetoolkit.html
25 COMPONENT_SUMMARY
= A collection of opensource dtrace scripts
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= \
29 sha256
:f4f5df564b79103088731813cbc5c1bab0cb4dec98d2700b8583af190c695266
30 COMPONENT_ARCHIVE_URL
= http
://www.brendangregg.com
/DTraceToolkit
/$(COMPONENT_ARCHIVE
)
31 COMPONENT_FMRI
= developer
/dtrace
/toolkit
32 COMPONENT_CLASSIFICATION
= Development
/System
33 COMPONENT_LICENSE
= CDDL-1.0
34 COMPONENT_LICENSE_FILE
= License
36 BUILD_TARGET
= $(BUILD_
$(MK_BITS
))
37 INSTALL_TARGET
= $(INSTALL_
$(MK_BITS
))
39 include $(WS_TOP
)/make-rules
/common.mk
41 # Do not create patch backup files so they do not appear in the manifest
44 $(BUILD_
$(MK_BITS
)): $(SOURCE_DIR
)/.prep
48 $(INSTALL_
$(MK_BITS
)): $(BUILD_
$(MK_BITS
))
49 $(MKDIR
) $(PROTO_DIR
)/opt
/DTT
50 $(GTAR
) cpf
- -C
$(SOURCE_DIR
) --exclude
'./.*' . |
$(GTAR
) xpvf
- -C
$(PROTO_DIR
)/opt
/DTT
51 $(RM
) $(PROTO_DIR
)/opt
/DTT
/install
55 $(RM
) -r
$(BUILD_DIR
) $(PROTO_DIR
)
57 # Auto-generated dependencies
58 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
59 REQUIRED_PACKAGES
+= SUNWcs
60 REQUIRED_PACKAGES
+= developer
/dtrace
61 REQUIRED_PACKAGES
+= runtime
/perl
62 REQUIRED_PACKAGES
+= runtime
/ruby
63 REQUIRED_PACKAGES
+= shell/ksh93