dma: fix permissions, add license

Fixes #5312
This commit is contained in:
Alain Kalker 2016-12-07 23:04:35 +01:00
parent a2d04f9c18
commit 089e8ab4e6
2 changed files with 9 additions and 9 deletions

View file

@ -1,12 +1,10 @@
case ${ACTION} in case ${ACTION} in
post) post)
# fix permissions and owners # fix permissions and owners
mkdir -p /var/spool/dma # -p avoids error if dir exists chown root:mail usr/bin/dma
chown root:mail var/spool/dma chmod 2755 usr/bin/dma
chmod g+sw var/spool/dma chown root:mail usr/lib/dma-mbox-create
chown root:mail usr/bin/dma chmod 4754 usr/lib/dma-mbox-create
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 esac

View file

@ -1,8 +1,9 @@
# Template file for 'dma' # Template file for 'dma'
pkgname=dma pkgname=dma
version=0.11 version=0.11
revision=4 revision=5
conf_files="/etc/dma/*.conf" conf_files="/etc/dma/*.conf"
make_dirs="/var/spool/dma 2775 root mail"
hostmakedepends="flex" hostmakedepends="flex"
makedepends="libressl-devel" makedepends="libressl-devel"
short_desc="Small Mail Transport Agent (MTA), designed for home and office use" short_desc="Small Mail Transport Agent (MTA), designed for home and office use"
@ -22,4 +23,5 @@ do_build() {
do_install() { do_install() {
vmkdir usr/bin vmkdir usr/bin
make PREFIX=/usr SBIN=/usr/bin DESTDIR=${DESTDIR} sendmail-link mailq-link install-etc install make PREFIX=/usr SBIN=/usr/bin DESTDIR=${DESTDIR} sendmail-link mailq-link install-etc install
vlicense LICENSE
} }