From d6a89e1270dee5054d3ee6fc1745479921a676df Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Thu, 6 Jul 2023 22:53:24 -0500 Subject: [PATCH] New package: maddy-0.7.0. --- srcpkgs/maddy/files/maddy/run | 4 ++++ srcpkgs/maddy/template | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/maddy/files/maddy/run create mode 100644 srcpkgs/maddy/template diff --git a/srcpkgs/maddy/files/maddy/run b/srcpkgs/maddy/files/maddy/run new file mode 100644 index 000000000000..ad2233b6694b --- /dev/null +++ b/srcpkgs/maddy/files/maddy/run @@ -0,0 +1,4 @@ +#!/bin/sh +umask 0027 +exec 2>&1 +exec chpst -u _maddy:_maddy -C /var/lib/maddy -o 131072 -p 512 /usr/bin/maddy run diff --git a/srcpkgs/maddy/template b/srcpkgs/maddy/template new file mode 100644 index 000000000000..1690d68fdc28 --- /dev/null +++ b/srcpkgs/maddy/template @@ -0,0 +1,27 @@ +# Template file for 'maddy' +pkgname=maddy +version=0.7.0 +revision=1 +build_style=go +go_import_path="github.com/foxcpp/maddy" +go_package="$go_import_path/cmd/maddy + $go_import_path/cmd/maddy-pam-helper + $go_import_path/cmd/maddy-shadow-helper" +makedepends="pam-devel" +short_desc="Composable all-in-one mail server" +maintainer="Michael Aldridge " +license="GPL-3.0-or-later" +homepage="https://maddy.email" +distfiles="https://github.com/foxcpp/maddy/archive/refs/tags/v$version.tar.gz" +checksum=d661a74a9a14e874610aba776a01aaeee742a32ef06592251d4a86306487dfa9 +make_dirs="/var/lib/maddy 0750 _maddy _maddy + /etc/maddy 0750 _maddy _maddy" +system_accounts="_maddy" +_maddy_homedir="/var/lib/maddy" +_maddy_shell="/bin/nologin" +_maddy_pgroup="_maddy" + +post_install() { + vsv maddy + vsconf maddy.conf +}