From 497dbd5c34c3c50e4861767a5ae0a72da60fe04b Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Fri, 6 Sep 2019 17:08:27 +0200
Subject: [PATCH] New recipe: opensmtpd (should be configured at post-install).
---
opensmtpd/recipe.spec | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 opensmtpd/recipe.spec
diff --git a/opensmtpd/recipe.spec b/opensmtpd/recipe.spec
new file mode 100644
index 0000000..d40c316
--- /dev/null
+++ b/opensmtpd/recipe.spec
@@ -0,0 +1,16 @@
+name: opensmtpd
+release: 1
+version: 6.4.2p1
+sources: https://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz
+
+build-dependencies: bison, libasr
+
+
+# TODO: add this to a future install script
+# (from alpine)
+#
+# addgroup -S smtpd 2>/dev/null
+# addgroup -S smtpq 2>/dev/null
+# adduser -S -D -H -h /dev/null -s /sbin/nologin -G smtpd -g 'SMTP Daemon' smtpd 2>/dev/null
+# adduser -S -D -H -h /dev/null -s /sbin/nologin -G smtpq -g 'SMTPD Queue' smtpq 2>/dev/null
+# mkdir -p /var/mail