- add stalwart: main mail server with systemd integration and user management - add stalwart-cli: command line interface tool for server administration - add stalwart-foundationdb: FoundationDB-enabled version with proper dependencies - add libfoundationdb: FoundationDB client library (libfdb_c.so) package All packages include proper conflict resolution, systemd services, and follow repository packaging conventions. stalwart and stalwart-foundationdb are mutually exclusive to prevent installation conflicts.
13 lines
421 B
Bash
Executable File
13 lines
421 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# Download the required files
|
|
curl -L -o /app/stalwart-cli.tar.gz https://github.com/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-cli-x86_64-unknown-linux-gnu.tar.gz
|
|
|
|
# Extract the binary
|
|
tar -xzf /app/stalwart-cli.tar.gz -C /app
|
|
|
|
# Make the binary executable
|
|
chmod +x /app/stalwart-cli
|
|
|
|
# Build the RPM
|
|
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm |