Browse Source

l/unbound: Fix default location of config file.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
cb4ab082f0
  1. 6
      n/unbound/doinst.sh
  2. 8
      n/unbound/unbound.SlackBuild

6
n/unbound/doinst.sh

@ -19,7 +19,5 @@ if ! grep ^unbound /etc/passwd > /dev/null ; then
/usr/sbin/useradd -u 281 -c Unbound -d /var/lib/unbound -g unbound unbound
fi
if [ ! -d var/lib/unbound ]; then
mkdir -p var/lib/unbound
chown unbound:unbound var/lib/unbound
fi
[ -d var/lib/unbound ] || mkdir -p var/lib/unbound
chown unbound:unbound var/lib/unbound

8
n/unbound/unbound.SlackBuild

@ -94,7 +94,7 @@ CXXFLAGS=$CPUOPT \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--with-conf-file=/etc/unbound.conf \
--with-conf-file=/var/lib/unbound/unbound.conf \
--with-run-dir=/var/lib/unbound \
--with-pidfile=/var/run/unbound.pid
make -j $JOBS
@ -118,8 +118,10 @@ mkdir -p $PKG/usr/doc/$NAME
# Install control script
install -D -m 644 $CWD/rc.unbound $PKG/etc/rc.d/rc.unbound
# Protect configuration file
mv $PKG/etc/unbound.conf $PKG/etc/unbound.conf.new
# Move configuration file to etc and install a symlink
# in the daemon's chroot directory
mv $PKG/var/lib/unbound/unbound.conf $PKG/etc/unbound.conf.new
ln -s /etc/unbound.conf $PKG/var/lib/unbound/unbound.conf
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save