diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2016-12-25 11:11:37 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-31 08:22:54 +0700 |
commit | 68a5cd7330f629fcbfcc35b2d609069f42c403cb (patch) | |
tree | b7146c5b3d4e8d138673f1b66fb74322ffd6e506 | |
parent | ac6fdf80613ef28d22ed9bed4f04d327c82b2f85 (diff) |
network/opensmtpd: Fixup some spooldir ownership and perms
This should ease the transition for upgrades of earlier versions.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | network/opensmtpd/opensmtpd.SlackBuild | 13 |
1 files changed, 13 insertions, 0 deletions
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 |