summaryrefslogtreecommitdiffstats
path: root/source/a/aaa_base
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/aaa_base')
-rw-r--r--source/a/aaa_base/_aaa_base/install/doinst.sh12
-rwxr-xr-xsource/a/aaa_base/aaa_base.SlackBuild2
2 files changed, 13 insertions, 1 deletions
diff --git a/source/a/aaa_base/_aaa_base/install/doinst.sh b/source/a/aaa_base/_aaa_base/install/doinst.sh
index 3f26c6706..0c88db2b7 100644
--- a/source/a/aaa_base/_aaa_base/install/doinst.sh
+++ b/source/a/aaa_base/_aaa_base/install/doinst.sh
@@ -1,3 +1,15 @@
+# Prevent/fix bad permissions on /var/spool/mail/root:
+if [ ! -r var/spool/mail/root ]; then
+ touch var/spool/mail/root
+ chown root:mail var/spool/mail/root
+ chmod 660 var/spool/mail/root
+fi
+# If there is a previous root mailbox that is world readable, then
+# fix the ownership/permissions:
+if /bin/ls -l var/spool/mail/root | grep -q rw-r--r ; then
+ chown root:mail var/spool/mail/root
+ chmod 660 var/spool/mail/root
+fi
# Send root a welcome email unless we detect that it's there already:
if ! grep -q "Welcome to Linux (Slackware 15.0)" var/spool/mail/root 2> /dev/null ; then
cat var/spool/mail/root.new >> var/spool/mail/root
diff --git a/source/a/aaa_base/aaa_base.SlackBuild b/source/a/aaa_base/aaa_base.SlackBuild
index dbedb6134..c269f61b2 100755
--- a/source/a/aaa_base/aaa_base.SlackBuild
+++ b/source/a/aaa_base/aaa_base.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=aaa_base
VERSION=15.1
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then