Browse Source

a/davfs2: Fixed default configuration file; do not remove

template files in /usr/share; make doinst.sh create the
  home directory for davfs2 user if it does not exist.
slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
6052db7911
  1. 10
      a/davfs2/davfs2.SlackBuild
  2. 3
      a/davfs2/doinst.sh

10
a/davfs2/davfs2.SlackBuild

@ -33,7 +33,7 @@ WGET=${WGET:-http://mirrors.linhub.com/savannah/davfs2/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-davfs2}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
@ -103,14 +103,14 @@ find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
# in the wrong place (despite --mandir)...
mv $PKG/usr/share/man $PKG/usr/man
# What remains in /usr/share seems unnecessary (it's a copy of the
# configuration files already installed in /etc/davfs2)
rm -rf $PKG/usr/share
# Protect existing configuration files
mv $PKG/etc/davfs2/davfs2.conf $PKG/etc/davfs2/davfs2.conf.new
mv $PKG/etc/davfs2/secrets $PKG/etc/davfs2/secrets.new
# Make davfs2 ignore system users whose home directory is /
sed -i 's/^# ignore_home/ignore_home mail,rpc,sshd,pop,nobody/' \
$PKG/etc/davfs2/davfs2.conf.new
# Fix symlinks in /sbin
rm $PKG/sbin/{,u}mount.davfs
ln -sv /usr/sbin/mount.davfs $PKG/sbin/mount.davfs

3
a/davfs2/doinst.sh

@ -19,4 +19,7 @@ fi
if ! grep ^davfs2 /etc/passwd > /dev/null ; then
/usr/sbin/useradd -c WebDAV -d /var/cache/davfs2 -g davfs2 davfs2 \
-s /bin/false
if [ -d /var/cache/davfs2 ]; then
mkdir -p /var/cache/davfs2
fi
fi

Loading…
Cancel
Save