diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-16 00:28:04 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-17 09:50:25 +0700 |
commit | 3184a61e596468f60eea6640902f99a62be09310 (patch) | |
tree | 1ff2e88ee0a40ddccef77e91fd67565c26d04887 /network/frr | |
parent | 5030b1eb9685ff63840ec04fd5c01825a0dd00ea (diff) | |
download | slackbuilds-3184a61e596468f60eea6640902f99a62be09310.tar.gz |
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>
Diffstat (limited to 'network/frr')
-rw-r--r-- | network/frr/frr.SlackBuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/network/frr/frr.SlackBuild b/network/frr/frr.SlackBuild index bc4612dd32..e7c997f653 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 |