dma: fix permissions and misc issues (close #4044).

This commit is contained in:
Juan RP 2016-04-18 18:07:59 +02:00
parent b0d8617a1e
commit 953b5eb0f7
2 changed files with 16 additions and 3 deletions

12
srcpkgs/dma/INSTALL Normal file
View file

@ -0,0 +1,12 @@
case ${ACTION} in
post)
# fix permissions and owners
mkdir -p /var/spool/dma # -p avoids error if dir exists
chown root:mail var/spool/dma
chmod g+sw var/spool/dma
chown root:mail usr/bin/dma
chmod g+s usr/bin/dma
# do i need to care about /var/spool/mail, too? i don't think so, but i can't test it.
;;
esac

View file

@ -1,8 +1,8 @@
# Template file for 'dma'
pkgname=dma
version=0.11
revision=2
conf_files="/etc/dma/dma.conf /etc/dma/auth.conf"
revision=3
conf_files="/etc/dma/*.conf"
hostmakedepends="flex"
makedepends="libressl-devel"
short_desc="Small Mail Transport Agent (MTA), designed for home and office use"
@ -11,12 +11,13 @@ license="BSD"
homepage="https://github.com/corecode/dma"
distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
checksum=288bd57f17aba696b6423b1fa0cd0f7d9b7228d32811f1cd7b821d5f020051b8
system_accounts="mail"
provides="smtp-server-0_1 smtp-forwarder-0_1"
replaces="smtp-server>=0 smtp-forwarder>=0"
do_build() {
make CC=$CC LEX=flex ${makejobs}
make PREFIX=/usr SBIN=/usr/bin CC=$CC LEX=flex ${makejobs}
}
do_install() {
vmkdir usr/bin