dma: new port

This commit is contained in:
Steffen Nurpmeso 2020-12-30 22:27:06 +01:00
parent 7826db4463
commit 09dcf27aee
5 changed files with 74 additions and 0 deletions

17
dma/.footprint Normal file
View File

@ -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/

6
dma/.signature Normal file
View File

@ -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

27
dma/Pkgfile Normal file
View File

@ -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

16
dma/README Normal file
View File

@ -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

8
dma/post-install Normal file
View File

@ -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