void-packages/srcpkgs/dma/template
2020-07-03 11:07:26 +02:00

32 lines
944 B
Bash

# Template file for 'dma'
pkgname=dma
version=0.13
revision=2
conf_files="/etc/dma/*.conf"
make_dirs="/var/spool/dma 2775 root mail"
hostmakedepends="flex"
makedepends="libressl-devel"
short_desc="Small Mail Transport Agent (MTA), designed for home and office use"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/corecode/dma"
distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
checksum=9d4b903f2b750d888f51d668d08d2ea18404dedb0a52cffeb3c81376023c1946
system_accounts="mail"
provides="smtp-server-0_1 smtp-forwarder-0_1"
replaces="smtp-server>=0 smtp-forwarder>=0"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
do_build() {
make PREFIX=/usr SBIN=/usr/bin CC=$CC LEX=flex ${makejobs}
}
do_install() {
vmkdir usr/bin
make PREFIX=/usr SBIN=/usr/bin DESTDIR=${DESTDIR} sendmail-link mailq-link install-etc install
vlicense LICENSE
}