From 3184a61e596468f60eea6640902f99a62be09310 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Fri, 16 Jul 2021 00:28:04 -0500 Subject: 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 --- network/frr/frr.SlackBuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'network') diff --git a/network/frr/frr.SlackBuild b/network/frr/frr.SlackBuild index bc4612dd324b2..e7c997f653c2d 100644 --- a/network/frr/frr.SlackBuild +++ b/network/frr/frr.SlackBuild @@ -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 -- cgit v1.2.3