mirror of
https://github.com/hanzoai/s3.git
synced 2026-10-30 14:59:09 +00:00
hanzoai/s3 was an AGPL-3.0 MinIO fork whose network-copyleft blocks embedding
and reselling as a managed service. Replace it wholesale with a fork of
SeaweedFS (github.com/seaweedfs/seaweedfs, Apache-2.0, Go) which ships a
built-in S3 gateway + Filer.
- License: AGPL-3.0 -> Apache-2.0 (upstream LICENSE kept verbatim, incl.
"Copyright 2025 Chris Lu"); NOTICE added crediting SeaweedFS. No AGPL/BUSL/
SSPL/GPL or enterprise ("ee") files remain.
- Module: go.mod path set to github.com/hanzoai/s3 with a self-replace
(replace github.com/seaweedfs/seaweedfs => ./) so the ~1800 internal Go files
keep their upstream import paths with zero churn. Internal identifiers and
import paths are intentionally NOT renamed.
- CLI rebrand: the binary is built as `s3` (was `weed`); root usage, per-command
help/usage/flag strings, shell autocomplete program name, and the product name
in CLI output now read "Hanzo S3" / `s3`. Users never see `weed`.
(e.g. `s3 server`, `s3 filer`, `s3 master`, `s3 volume`, `s3 s3`, `s3 mount`.)
- Build: `make` (or `go build -o s3 ./weed`) builds the `s3` binary green;
`cmd/weed-db` and `cmd/weed-sql` also build; `go vet ./weed/command/` clean.
- README/LLM.md rewritten for Hanzo S3; AGENTS.md/CLAUDE.md symlinks preserved.
- Dropped a 33MB prebuilt Mach-O `stress` binary upstream had committed; `.gitignore`
updated to ignore the `s3` build output.
62 lines
1.6 KiB
Bash
Executable File
62 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# Helper script to get SHA256 checksum for FoundationDB client package
|
|
# Usage: ./get_fdb_checksum.sh <version> [arch]
|
|
# Example: ./get_fdb_checksum.sh 7.4.5 amd64
|
|
# Example: ./get_fdb_checksum.sh 7.4.5 arm64
|
|
|
|
set -euo pipefail
|
|
|
|
if [ $# -lt 1 ] || [ $# -gt 2 ]; then
|
|
echo "Usage: $0 <fdb_version> [arch]" >&2
|
|
echo "Example: $0 7.4.5" >&2
|
|
echo "Example: $0 7.4.5 arm64" >&2
|
|
exit 1
|
|
fi
|
|
|
|
FDB_VERSION="$1"
|
|
FDB_ARCH="${2:-amd64}"
|
|
|
|
case "$FDB_ARCH" in
|
|
"amd64")
|
|
CANONICAL_ARCH="amd64"
|
|
PACKAGE_ARCH="amd64"
|
|
;;
|
|
"arm64"|"aarch64")
|
|
CANONICAL_ARCH="arm64"
|
|
PACKAGE_ARCH="aarch64"
|
|
;;
|
|
*)
|
|
echo "Error: Architecture must be 'amd64', 'arm64', or 'aarch64'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
PACKAGE="foundationdb-clients_${FDB_VERSION}-1_${PACKAGE_ARCH}.deb"
|
|
URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/${PACKAGE}"
|
|
|
|
echo "Downloading FoundationDB ${FDB_VERSION} client package for ${FDB_ARCH}..."
|
|
echo "URL: ${URL}"
|
|
echo ""
|
|
|
|
# Download to temp directory
|
|
TEMP_DIR=$(mktemp -d)
|
|
trap 'rm -rf "${TEMP_DIR}"' EXIT
|
|
|
|
cd "${TEMP_DIR}"
|
|
if wget --timeout=30 --tries=3 -q "${URL}"; then
|
|
CHECKSUM=$(sha256sum "${PACKAGE}" | awk '{print $1}')
|
|
echo "✓ Download successful"
|
|
echo ""
|
|
echo "SHA256 Checksum:"
|
|
echo "${CHECKSUM}"
|
|
echo ""
|
|
echo "Add this to Dockerfile.foundationdb_large:"
|
|
echo " \"${FDB_VERSION}_${CANONICAL_ARCH}\") \\"
|
|
echo " EXPECTED_SHA256=\"${CHECKSUM}\" ;; \\"
|
|
else
|
|
echo "✗ Failed to download package from ${URL}" >&2
|
|
echo "Please verify the version number, architecture, and URL" >&2
|
|
exit 1
|
|
fi
|
|
|