This is an automated email from the ASF dual-hosted git repository.

tuhaihe pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry-backup.git

commit 955ed6b1187ad0085808be5553b0f7e319e8f8fe
Author: Dianjin Wang <[email protected]>
AuthorDate: Wed Apr 8 15:16:33 2026 +0800

    Include Apache compliance files in binary packages (#81)
    
    Add LICENSE, NOTICE, and DISCLAIMER files to the package target
    in Makefile to ensure Apache project compliance requirements are
    met when distributing binary releases.
    
    These files are now copied to the package directory alongside the
    binaries and install script, and will be included in the final
    tar.gz distribution.
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index c1f8cf05..9ec10c47 100644
--- a/Makefile
+++ b/Makefile
@@ -184,6 +184,10 @@ package:
        @GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=$(CGO) go build -tags 
'$(HELPER)' -o 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/bin/$(HELPER) 
--ldflags '-X $(HELPER_VERSION_STR)'
        @GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=$(CGO) go build -tags 
'$(S3PLUGIN)' -o 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/bin/$(S3PLUGIN)
 --ldflags '-X $(S3PLUGIN_VERSION_STR)'
        @GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=$(CGO) go build -tags 
'$(GPBACKMAN)' -o 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/bin/$(GPBACKMAN)
 --ldflags '-X $(GPBACKMAN_VERSION_STR)'
+       @echo "Copying Apache compliance files..."
+       @cp LICENSE 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/
+       @cp NOTICE 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/
+       @cp DISCLAIMER 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/
        @echo "Creating install script..."
        @echo '#!/bin/bash' > 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/install.sh
        @echo 'set -e' >> 
$(BUILD_DIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(GOOS)-$(GOARCH)/install.sh


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to