network/frr: Use /var/lib/frr instead of /var/run/frr

This looks to be the path of least resistance to getting
a statedir that doesn't have to be recreated every time
frr is started.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Robby Workman 2021-07-16 00:28:04 -05:00 committed by Willy Sudiarto Raharjo
parent 5030b1eb96
commit 3184a61e59
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ Before running this script, please add them with the following commands:
groupadd -g 357 frr
groupadd -g 358 frrvty
useradd -c "FRR FRRouting suite" -d /var/run/frr -s /bin/false -u 357 -g frr -G frrvty frr
useradd -c "FRR FRRouting suite" -d /var/lib/frr -s /bin/false -u 357 -g frr -G frrvty frr
EOF
exit 1
@ -94,7 +94,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sbindir=/usr/sbin \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/frr \
--localstatedir=/var/run/frr \
--localstatedir=/var/lib/frr \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--infodir=/usr/info \
@ -121,7 +121,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
install -d -m 750 -o frr -g frr $PKG/etc/frr $PKG/var/log/frr $PKG/var/run/frr
install -d -m 750 -o frr -g frr $PKG/etc/frr $PKG/var/log/frr $PKG/var/lib/frr
install -D -m 640 -o frr -g frr tools/etc/frr/daemons $PKG/etc/frr/daemons.new
install -D -m 640 -o frr -g frrvty tools/etc/frr/vtysh.conf $PKG/etc/frr/vtysh.conf.new