Commit 3e45ccf7 authored by Patrycja Rosa's avatar Patrycja Rosa 🐱
Browse files

testing/maddy: upgrade to 0.6.1

parent 85be8cfd
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=maddy
pkgver=0.5.4
pkgrel=4
pkgver=0.6.1
pkgrel=0
pkgdesc="Composable all-in-one mail server"
url="https://maddy.email/"
license="GPL-3.0-or-later"
......@@ -15,7 +15,6 @@ install="$pkgname.pre-install"
source="https://github.com/foxcpp/maddy/archive/v$pkgver/maddy-$pkgver.tar.gz
$pkgname.initd
use-syslog.patch
acme-default-hostname.patch
"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw -tags=libsqlite3"
......@@ -27,13 +26,8 @@ build() {
"
go build -ldflags="$ldflags" -v -o bin/maddy ./cmd/maddy
go build -ldflags="$ldflags" -v -o bin/maddyctl ./cmd/maddyctl
msg "Building man pages..."
for f in docs/man/*.scd; do
echo "$f -> ${f%.scd}"
scdoc <"$f" >"${f%.scd}"
done
scdoc <docs/man/maddy.1.scd >maddy.1
}
check() {
......@@ -43,14 +37,12 @@ check() {
package() {
install -Dm755 bin/maddy "$pkgdir"/usr/bin/maddy
setcap cap_net_bind_service=+ep "$pkgdir"/usr/bin/maddy
install -Dm755 bin/maddyctl "$pkgdir"/usr/bin/maddyctl
install -Dm644 maddy.conf "$pkgdir"/etc/maddy/maddy.conf
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 docs/man/*.1 -t "$pkgdir"/usr/share/man/man1
install -Dm644 docs/man/*.5 -t "$pkgdir"/usr/share/man/man5
install -Dm644 maddy.1 -t "$pkgdir"/usr/share/man/man1
}
vim() {
......@@ -63,8 +55,7 @@ vim() {
}
sha512sums="
46ae7ecd91bc4664486e05eb86f67a49192aed3d9fa798c95bf177ed23c73f285df88de340f0238ae599145e70b631bcfcceaaa93a26c2539f47a6803166d99f maddy-0.5.4.tar.gz
a5b919e1fbecb570123e567ca0e78499efe25e4ae01abbba3221fc54cd35d12f194da847377a0fd00823733817922fae163e247f5b92edad498bb89d14b1bee0 maddy.initd
25faf228d0a76b052446365cc5ba7cda775a2829b60c3795783be6d48fe3f5c7b7afc434c4bde058583c3b0a8466f46560fa72255a10af1eac795b3c2315f935 maddy-0.6.1.tar.gz
3eb6829c9e0c078e35db611a82aac0323c2f2633cf5d1ad216cd862465cbcb191b067ab5e57e1748f9d5693351beba6053642d6e1481cd1536c2f53117fce09e maddy.initd
76dbb8d7f4b389f2fc1e4e9ecbf93bd7e9a002a8520d93067e39b7a8d35e74e92af7151c116d38aa9d7548747cdd107b38392204f7d3a8944914aee236f7934e use-syslog.patch
6701d74e0bf160b17ee7b4c6335e02d4e1f87e71ff832021f62298c7c5baee73dac96d691c5be9013a3df22f3dba683e5614a473df625d3592313fbea455f253 acme-default-hostname.patch
"
......@@ -7,6 +7,7 @@ description_log_reopen="Reopen log files"
description_reload="Reload some files from disk (but without main configuration)"
command=/usr/bin/maddy
command_args="run $maddy_opts"
command_user=maddy:maddy
# make relative paths in config relative to the state directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment