312e9245f8fa1331381b7676d9838777e1cfd10b
Replace the dpkg-buildpackage / debhelper rig with the same pattern
used in vpp-maglev and govpp-snmp-agentx: a Makefile that
cross-compiles CGO-free static binaries for amd64 and arm64, plus a
debian/build-deb.sh that stages the .deb directly with dpkg-deb. The
two arch packages drop into build/ and run on any glibc/musl Linux of
the matching arch.
VERSION is parsed once from debian/changelog and injected at link
time via -ldflags "-X 'main.Version=...' -X 'main.Commit=...' -X
'main.Date=...'", so 's3-genindex -version' is the source of truth
for which build is running. The Version constant in main.go becomes
a var to make this work; the old sync-version make target is gone.
Removes the now-unused debian/{control,rules,install,compat} files
and the matching debhelper artifact entries from .gitignore. build/
is added to .gitignore.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
s3-genindex
Generate HTML directory indexes with file type icons and responsive design for local directories and S3-compatible storage. This is particularly useful for S3 buckets that are publicly readable.
Features
- Local directory indexing with recursive traversal
- S3-compatible storage support (MinIO, AWS S3, etc.)
- Hierarchical directory structure for S3 buckets
- Responsive HTML design with file type icons
- Dry run mode for testing
- Flexible filtering with glob patterns and regex exclusion
- Hidden file control and index.html visibility options
Install
go install git.ipng.ch/ipng/s3-genindex/cmd/s3-genindex@latest
Quick Start
# Dry run to see what would be generated
s3-genindex -d /path/to/dir -n
# Local directory
s3-genindex -d /path/to/dir
# S3 bucket (requires AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
s3-genindex -s3 https://minio.example.com/bucket
Build
make build
make test
See docs/DETAILS.md for complete documentation and examples.
Description
Languages
Go
96.7%
Makefile
3.3%
