Name: system/management/oracle-cloud-agent Summary: oracle-cloud-agent package Publisher: solaris Version: 1.52.0 Build Release: 11.4 Branch: 11.4.90.0.0.212.0 Packaging Date: Wed Dec 17 21:37:53 2025 Size: 88.80 MB Compressed Size: 43.60 MB FMRI: pkg://solaris/system/management/oracle-cloud-agent@1.52.0,11.4-11.4.90.0.0.212.0:20251217T213753Z License: # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 2025, Oracle and/or its affiliates. # BUILD_BITS= 64 BUILD_ARCH= i386 include ../../../make-rules/shared-macros.mk COMPONENT_NAME= oracle-cloud-agent COMPONENT_VERSION= 1.52.0 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE_URL= COMPONENT_ARCHIVE_HASH= \ sha256:f9dc927e6e045a71c1b4fdc1b31adf386fb0a787f499d95776ae7390726762c9 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip COMPONENT_ANITYA_ID= N/A COMPONENT_BUGDB= UTILITY/CLOUD-AGENT # See the comments below about 'gmake source-cache' COMPONENT_ARCHIVE_CACHE=oca-source-cache-0db056943eca86e2.tar.bz2 COMPONENT_SRC_CACHE= goproxy-download COMPONENT_ARCHIVE_HASH_CACHE=sha256:0db056943eca86e2239d7d73486c63e03db2fa1ffc6dd48af60ea7a9e1270885 COMPONENT_ARCHIVE_URL_CACHE= BUILD_STYLE= justmake TEST_TARGET= $(NO_TESTS) ITERATION= 9999 include $(WS_MAKE_RULES)/common.mk PYTHON_VERSION = 3.13 COMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)" CLONEY = true # By default we build the component offline (no access to internet). This is # overridden in 'source-cache' target when we update the cache. OFFLINE_BUILD=\# # Location where our offline cache is unpacked GOPROXY=file://$(COMPONENT_DIR)/$(COMPONENT_SRC_CACHE) COMPONENT_BUILD_ACTION = \ cd $(COMPONENT_SRC); PATH="$(GNUBIN):$(PATH)" gmake SHELL='sh -x' -f Makefile.in OSDISTRO=solaris PLUGINS="gomon runcommand"; COMPONENT_BUILD_ACTION += \ cd $(COMPONENT_SRC); PATH="$(GNUBIN):$(PATH)" gmake SHELL='sh -x' build GOPROXY=$(GOPROXY) GOPATH=$(BUILD_DIR_64)/gopath OSDISTRO=solaris ITERATION=$(ITERATION) OFFLINE_BUILD=$(OFFLINE_BUILD); # The libraries unpacked by go are read only. That is making problems when # clearing the directory COMPONENT_BUILD_ACTION += \ chmod -R +w $(BUILD_DIR_64) || :; COMPONENT_INSTALL_ACTION = $(RM) -rf $(PROTO_DIR); COMPONENT_INSTALL_ACTION += $(MKDIR) -p $(PROTO_DIR); COMPONENT_INSTALL_ACTION += $(CP) -r $(COMPONENT_SRC)/package/build/* $(PROTO_DIR)/; # This is how OCA generates IPS package. We want to make sure that our p5m # file is equal to what OCA generates. So we let it build the package and then compare its manifest to # our p5m file. COMPONENT_INSTALL_ACTION += \ ( \ cd $(COMPONENT_SRC); \ PATH="$(GNUBIN):$(PATH)" gmake SHELL='sh -x' package GOPATH=$(BUILD_DIR_64)/gopath OSDISTRO=solaris ITERATION=$(ITERATION) \ ) POST_CHECK_ACTION = \ echo "Comparing package generated by original archive to package created by userland incorporation:"; \ set -x; \ pkgrepo contents -s $(SOURCE_DIR)/package/oracle-cloud-agent.p5p | \ pkgmogrify /dev/fd/0 $(COMPONENT_DIR)/manifest-compare-transforms.mog | \ pkgfmt > $(BUILD_DIR)/manifest-to-compare.origial; \ cp $(COMPONENT_DIR)/oracle-cloud-agent.p5m $(BUILD_DIR)/manifest-to-compare.userland; \ perl -ni -e ' \ next if /^license/; \ next if /^\#/; \ next if /^