mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
75 lines
2.5 KiB
Text
75 lines
2.5 KiB
Text
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
pkgname=chasquid
|
|
pkgver=1.15.0
|
|
pkgrel=3
|
|
pkgdesc="SMTP server with a focus on simplicity, security, and ease of operation"
|
|
url="https://blitiri.com.ar/p/chasquid/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="go gzip"
|
|
checkdepends="util-linux-misc coreutils bash python3 msmtp exim dovecot haproxy"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-openrc $pkgname-doc"
|
|
options="net"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/albertito/chasquid/archive/refs/tags/v$pkgver.tar.gz
|
|
chasquid.initd
|
|
chasquid.confd
|
|
"
|
|
|
|
build() {
|
|
ldflags="-X main.version=$pkgver -X main.sourceDateTs=$SOURCE_DATE_EPOCH"
|
|
mkdir build
|
|
go build -ldflags "$ldflags" -v -o build
|
|
go build -v -o build ./cmd/chasquid-util/
|
|
go build -v -o build ./cmd/smtp-check/
|
|
go build -v -o build ./cmd/mda-lmtp/
|
|
gzip docs/man/*.1
|
|
gzip docs/man/*.5
|
|
}
|
|
|
|
check() {
|
|
go test
|
|
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 -m755 -D build/chasquid \
|
|
"$pkgdir"/usr/bin/chasquid
|
|
install -m755 -D build/chasquid-util \
|
|
"$pkgdir"/usr/bin/chasquid-util
|
|
install -m755 -D build/smtp-check \
|
|
"$pkgdir"/usr/bin/smtp-check
|
|
install -m755 -D build/mda-lmtp \
|
|
"$pkgdir"/usr/bin/mda-lmtp
|
|
install -m755 -D "$srcdir"/$pkgname.initd \
|
|
"$pkgdir"/etc/init.d/$pkgname
|
|
install -m644 -D "$srcdir"/$pkgname.confd \
|
|
"$pkgdir"/etc/conf.d/$pkgname
|
|
install -m644 -D etc/chasquid/chasquid.conf \
|
|
"$pkgdir"/etc/chasquid/chasquid.conf
|
|
install -m644 -D etc/chasquid/README \
|
|
"$pkgdir"/etc/chasquid/README
|
|
install -m755 -D etc/chasquid/hooks/post-data \
|
|
"$pkgdir"/etc/chasquid/hooks/post-data
|
|
install -m755 -d "$pkgdir"/etc/chasquid/domains
|
|
install -m755 -d "$pkgdir"/etc/chasquid/certs
|
|
for f in docs/man/*.1.gz
|
|
do
|
|
install -m644 -D $f "$pkgdir"/usr/share/man/man1/"$(basename $f)"
|
|
done
|
|
for f in docs/man/*.5.gz
|
|
do
|
|
install -m644 -D $f "$pkgdir"/usr/share/man/man5/"$(basename $f)"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
35811819c7cdf4a52b67a154b1c928eebaa6dcbaa6a5cbb07cc567ce126a70de7281de347ac8972d664324d6a8648f94d368aa5f4562f03bd7713841d2a2e662 chasquid-1.15.0.tar.gz
|
|
bba20a7b37711ef75b853c3fc4cf448c01b07aa536d066c551937b920c4efc84a19d753f58fa2dafa8959905dc0b17ae2b129b8d18bd7ccdc29b6112df9b03b9 chasquid.initd
|
|
5a74f3a136de29eaf5cf9347cdcb2d19b8b3608c57ad4e6876f174abc484d721b4fe3a2b4be563505f9469b93c66e7923a443afa3c02ba40bf64b73e8aa8730f chasquid.confd
|
|
"
|