dma: fix permissions and misc issues (close #4044).
This commit is contained in:
parent
b0d8617a1e
commit
953b5eb0f7
2 changed files with 16 additions and 3 deletions
12
srcpkgs/dma/INSTALL
Normal file
12
srcpkgs/dma/INSTALL
Normal 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
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Template file for 'dma'
|
# Template file for 'dma'
|
||||||
pkgname=dma
|
pkgname=dma
|
||||||
version=0.11
|
version=0.11
|
||||||
revision=2
|
revision=3
|
||||||
conf_files="/etc/dma/dma.conf /etc/dma/auth.conf"
|
conf_files="/etc/dma/*.conf"
|
||||||
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"
|
||||||
|
@ -11,12 +11,13 @@ license="BSD"
|
||||||
homepage="https://github.com/corecode/dma"
|
homepage="https://github.com/corecode/dma"
|
||||||
distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
|
distfiles="https://github.com/corecode/dma/archive/v${version}.tar.gz"
|
||||||
checksum=288bd57f17aba696b6423b1fa0cd0f7d9b7228d32811f1cd7b821d5f020051b8
|
checksum=288bd57f17aba696b6423b1fa0cd0f7d9b7228d32811f1cd7b821d5f020051b8
|
||||||
|
system_accounts="mail"
|
||||||
|
|
||||||
provides="smtp-server-0_1 smtp-forwarder-0_1"
|
provides="smtp-server-0_1 smtp-forwarder-0_1"
|
||||||
replaces="smtp-server>=0 smtp-forwarder>=0"
|
replaces="smtp-server>=0 smtp-forwarder>=0"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make CC=$CC LEX=flex ${makejobs}
|
make PREFIX=/usr SBIN=/usr/bin CC=$CC LEX=flex ${makejobs}
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
|
|
Loading…
Reference in a new issue