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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4e2a801d Include Apache compliance files in binary packages (#81)
4e2a801d is described below

commit 4e2a801dc5f035575577c29bbb0b6317d16d933e
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