aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/opensmtpd/opensmtpd.SlackBuild13
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