From 953b5eb0f759d1fdc8f8180bda03195e3a11b813 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 18 Apr 2016 18:07:59 +0200 Subject: [PATCH] dma: fix permissions and misc issues (close #4044). --- srcpkgs/dma/INSTALL | 12 ++++++++++++ srcpkgs/dma/template | 7 ++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/dma/INSTALL diff --git a/srcpkgs/dma/INSTALL b/srcpkgs/dma/INSTALL new file mode 100644 index 00000000000..3bddc741b19 --- /dev/null +++ b/srcpkgs/dma/INSTALL @@ -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 + diff --git a/srcpkgs/dma/template b/srcpkgs/dma/template index e3a912b46b7..a834755d7ee 100644 --- a/srcpkgs/dma/template +++ b/srcpkgs/dma/template @@ -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