commit 09dcf27aee0af3e2463642c3873647b3626bfce4 Author: Steffen Nurpmeso <steffen@sdaoden.eu> Date: Wed Dec 30 22:27:06 2020 +0100 dma: new port diff --git a/dma/.footprint b/dma/.footprint new file mode 100644 index 000000000..08c1f504a --- /dev/null +++ b/dma/.footprint @@ -0,0 +1,17 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/etc/ +-rw-r----- root/mail usr/etc/auth.conf +-rw-r--r-- root/mail usr/etc/dma.conf +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/dma/ +-rwsr-xr-- root/mail usr/lib/dma/dma-mbox-create +drwxr-xr-x root/root usr/sbin/ +-rwxr-sr-x root/mail usr/sbin/dma +lrwxrwxrwx root/root usr/sbin/sendmail -> dma +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/dma.8.gz +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/spool/ +drwxrws--- root/mail var/spool/dma/ diff --git a/dma/.signature b/dma/.signature new file mode 100644 index 000000000..b00b5230a --- /dev/null +++ b/dma/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/stenur.pub +RWQEMWjN1NA4333L+RLoquJZY5jAXbsNgkYjwSXu3ASBJ6Qn5vGkI64v7la5Gm2uluDYhn9QWoHy8CrSnAcKu/ovK1bSkLm1EQE= +SHA256 (Pkgfile) = 27fa8677742923c7cc40a67d73fa312183e836bfeb21458a8250fbd51f6d2d39 +SHA256 (.footprint) = 6c5a4e68ba5e38ef8a273560b907e1fac541f0c30c4f80e0c4b31c4318add08f +SHA256 (dma-20200904.tar.gz) = 164f7be5eebd61370cc3cc7268b7163922187e3273c25238553424df0f03b2b2 +SHA256 (post-install) = bbacf33124c2663ffafd8f86986bf5e10e7c18754ff19a1e2197d1cf895cd677 diff --git a/dma/Pkgfile b/dma/Pkgfile new file mode 100644 index 000000000..74c34c61a --- /dev/null +++ b/dma/Pkgfile @@ -0,0 +1,27 @@ +# Description: DragonFly Mail Agent, a local MTA (not listening, but sending) +# URL: https://github.com/corecode/dma +# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu +# Depends on: openssl + +name=dma +version=20200904 +gitver=e09aa9e0a3a0f91a06d12008b9d8fbfa4ec355bd +release=1 +source=(https://github.com/corecode/$name/archive/$gitver/$name-$version.tar.gz + post-install) + +build() { + cd $name-$gitver + + make PREFIX=/usr LIBEXEC=/usr/lib/dma CONFDIR=/usr/etc/ \ + DESTDIR=$PKG \ + all install install-etc + + ln -s -f dma "$PKG"/usr/sbin/sendmail + + mkdir -p "$PKG"/var/spool/dma + chown root:mail "$PKG"/var/spool/dma + chmod 2770 "$PKG"/var/spool/dma +} + +# s-sh-mode diff --git a/dma/README b/dma/README new file mode 100644 index 000000000..8ccf69dcd --- /dev/null +++ b/dma/README @@ -0,0 +1,16 @@ +README for dma + + The DragonFly Mail Agent does not listen on ports and therefore + does not handle incoming mail. It can handle a local system + and will send out mails when online. Queue as below. + Aliases can reside in /etc/aliases (by default). + + MBOX mailboxes will be created with mode 0620. + Dma does not provide a daemon, so in order to get messages + flushed out a crontab entry is used (via post-install). + + You can add a sendmail prt-get alias, too: + + $ echo dma: sendmail >> /var/lib/pkg/prt-get.aliases + +# s-tm-mode diff --git a/dma/post-install b/dma/post-install new file mode 100644 index 000000000..789683ba9 --- /dev/null +++ b/dma/post-install @@ -0,0 +1,8 @@ +#!/bin/sh - + +getent group mail || groupadd -r mail + +grep -q dma /etc/crontab || + echo '*/15 * * * * exec dma -q' >> /etc/crontab + +exit 0