From 68a5cd7330f629fcbfcc35b2d609069f42c403cb Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 25 Dec 2016 11:11:37 -0600 Subject: network/opensmtpd: Fixup some spooldir ownership and perms This should ease the transition for upgrades of earlier versions. Signed-off-by: Robby Workman --- network/opensmtpd/opensmtpd.SlackBuild | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/network/opensmtpd/opensmtpd.SlackBuild b/network/opensmtpd/opensmtpd.SlackBuild index d147445a98b4..686547af9710 100644 --- a/network/opensmtpd/opensmtpd.SlackBuild +++ b/network/opensmtpd/opensmtpd.SlackBuild @@ -140,6 +140,19 @@ sed -i "s,/etc/mail/,/etc/opensmtpd/,g" $PKG/etc/opensmtpd/smtpd.conf.new # Create (but don't clobber) the aliases file cat $CWD/aliases > $PKG/etc/opensmtpd/aliases.new +# Create some other required directories with proper ownership and permissions +mkdir -p $PKG/var/spool/smtpd/corrupt $PKG/var/spool/smtpd/incoming \ + $PKG/var/spool/smtpd/offline $PKG/var/spool/smtpd/purge \ + $PKG/var/spool/smtpd/queue $PKG/var/spool/smtpd/temporary +chown root:smtpq $PKG/var/spool/smtpd/offline +chown smtpq:root $PKG/var/spool/smtpd/corrupt $PKG/var/spool/smtpd/incoming \ + $PKG/var/spool/smtpd/purge $PKG/var/spool/smtpd/queue \ + $PKG/var/spool/smtpd/temporary +chmod 0700 $PKG/var/spool/smtpd/corrupt $PKG/var/spool/smtpd/incoming \ + $PKG/var/spool/smtpd/queue $PKG/var/spool/smtpd/temporary +chmod 0770 $PKG/var/spool/smtpd/offline +chmod 0750 $PKG/var/spool/smtpd/purge + find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -- cgit v1.2.3