git: 52d896dde1b5 - main - net/frr10: Create the libstatedir
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Feb 2026 15:47:53 UTC
The branch main has been updated by olivier:
URL: https://cgit.FreeBSD.org/ports/commit/?id=52d896dde1b51cb979f08a48754bb8c3bd6556aa
commit 52d896dde1b51cb979f08a48754bb8c3bd6556aa
Author: Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-02-04 14:04:35 +0000
Commit: Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-02-04 15:47:06 +0000
net/frr10: Create the libstatedir
On some customized setup (poudriere-image, nanobsd) /var/lib could be missing
---
net/frr10/Makefile | 1 +
net/frr10/files/frr.in | 2 ++
2 files changed, 3 insertions(+)
diff --git a/net/frr10/Makefile b/net/frr10/Makefile
index 6dd8897bca83..0df81c2a67d3 100644
--- a/net/frr10/Makefile
+++ b/net/frr10/Makefile
@@ -1,6 +1,7 @@
PORTNAME= frr
DISTVERSIONPREFIX= frr-
DISTVERSION= 10.5.1
+PORTREVISION= 1
CATEGORIES= net
.if defined(PYTHONTOOLS)
PKGNAMESUFFIX= 10-pythontools
diff --git a/net/frr10/files/frr.in b/net/frr10/files/frr.in
index b17e61233bfc..559fc87a8194 100644
--- a/net/frr10/files/frr.in
+++ b/net/frr10/files/frr.in
@@ -195,6 +195,8 @@ case "${frr_cmd}" in
if [ -x %%PREFIX%%/etc/rc.d/watchfrr ]; then
echo "WARNING: Old rc.d/watchfrr detected, this file must be deleted"
fi
+ mkdir -p /var/lib/frr
+ chown -R frr:frr /var/lib/frr
if checkyesno frr_vtysh_boot; then
echo "Checking intergrated config..."
if ! [ -f %%ETCDIR%%/vtysh.conf ]; then