Skip to content
Snippets Groups Projects
Commit ddc76976 authored by omni's avatar omni Committed by omni
Browse files

testing/chasquid: new aport

parent 1bbad1b2
No related branches found
No related tags found
No related merge requests found
Pipeline #74414 passed
# Maintainer: omni <omni+alpine@hack.org>
pkgname=chasquid
pkgver=1.6
pkgrel=0
pkgdesc="SMTP server with focus on simplicity, security, and ease of operation"
arch="all"
url="https://blitiri.com.ar/p/chasquid/"
license="Apache-2.0"
makedepends="go"
#checkdepends="bash python3 util-linux msmtp" # test script dependencies
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/albertito/chasquid/archive/v$pkgver.tar.gz"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
build() {
go build -v .
go build -v ./cmd/chasquid-util/
go build -v ./cmd/smtp-check/
go build -v ./cmd/spf-check/
go build -v ./cmd/mda-lmtp/
go build -v ./cmd/dovecot-auth-cli/
}
check() {
go test -v ./...
# https://blitiri.com.ar/p/chasquid/tests/
#setsid -w ./test/run.sh
#setsid -w ./test/stress.sh
#setsid -w ./cmd/chasquid-util/test.sh
#setsid -w ./cmd/mda-lmtp/test.sh
#setsid -w ./cmd/dovecot-auth-cli/test.sh
}
package() {
install -Dm755 -t "$pkgdir"/usr/bin/$pkgname \
"$pkgname" \
"$pkgname"-util \
smtp-check \
mda-lmtp
install -Dm0644 -t "$pkgdir"/etc/chasquid \
etc/chasquid/README \
etc/chasquid/chasquid.conf
install -Dm0644 -t "$pkgdir"/etc/chasquid/hooks \
etc/chasquid/hooks/post-data
install -dm0755 "$pkgdir"/etc/chasquid/domains
install -Dm0644 -t "$pkgdir"/usr/share/man/man1 docs/man/*.1
install -Dm0644 -t "$pkgdir"/usr/share/man/man5 docs/man/*.5
install -Dm0644 -t "$pkgdir"/usr/share/doc/$pkgname docs/*.md
install -Dm0644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
sha512sums="97a02a5c0fb000a0293bdd7b67e619b57d01c7d32e5f8a56036a55a20be114f94a970f07315c1c309e0c5786a4fb301bb5a8d005f04ec0a4f3feb15374dfebd3 chasquid-1.6.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment