summaryrefslogtreecommitdiff
path: root/net/openbgpd8
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net/openbgpd8/Makefile16
-rw-r--r--net/openbgpd8/distinfo6
-rw-r--r--net/openbgpd8/files/openbgplgd.in31
-rw-r--r--net/openbgpd8/files/patch-bgplgd.8.in21
-rw-r--r--net/openbgpd8/pkg-plist4
5 files changed, 71 insertions, 7 deletions
diff --git a/net/openbgpd8/Makefile b/net/openbgpd8/Makefile
index 6a6779aeffde..3008034d4aed 100644
--- a/net/openbgpd8/Makefile
+++ b/net/openbgpd8/Makefile
@@ -1,5 +1,5 @@
PORTNAME= openbgpd
-PORTVERSION= 8.6
+PORTVERSION= 8.8
CATEGORIES= net
MASTER_SITES= OPENBSD/OpenBGPD
PKGNAMESUFFIX= 8
@@ -14,16 +14,28 @@ LICENSE_FILE= ${FILESDIR}/COPYING
LIB_DEPENDS= libevent.so:devel/libevent
USES= autoreconf libtool localbase pathfix uidfix
-USE_RC_SUBR= ${PORTNAME}
+USE_RC_SUBR= ${PORTNAME} openbgplgd
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
+CONFIGURE_ARGS="--with-wwwrunstatedir=/var/run"
+
+OPTIONS_DEFINE= BGPLGD
+OPTIONS_SUB= BGPLGD
+OPTIONS_DEFAULT= BGPLGD
+
+BGPLGD_DESC= Build with Looking Glass Daemon
+BGPLGD_CONFIGURE_WITH= bgplgd
SUB_FILES= pkg-message
USERS= _bgpd
GROUPS= _bgpd
+BGPLGD_USERS+= _bgplgd
+BGPLGD_GROUPS+= _bgplgd
+
+
CONFLICTS= zebra quagga
.include <bsd.port.mk>
diff --git a/net/openbgpd8/distinfo b/net/openbgpd8/distinfo
index d3ce6957abc2..a207375d3729 100644
--- a/net/openbgpd8/distinfo
+++ b/net/openbgpd8/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1726850950
-SHA256 (openbgpd-8.6.tar.gz) = 6ca51db42a341858c5b91a66ca1ac0592812908febec8b1671df87014f471972
-SIZE (openbgpd-8.6.tar.gz) = 851232
+TIMESTAMP = 1742397943
+SHA256 (openbgpd-8.8.tar.gz) = b4e12f1ef1b570d7244d11903c597a0109a1aa246bd7b99d0a7069a2604f9cdf
+SIZE (openbgpd-8.8.tar.gz) = 860314
diff --git a/net/openbgpd8/files/openbgplgd.in b/net/openbgpd8/files/openbgplgd.in
new file mode 100644
index 000000000000..535ce580b561
--- /dev/null
+++ b/net/openbgpd8/files/openbgplgd.in
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# PROVIDE: bgplgd
+# REQUIRE: LOGIN abi
+# BEFORE: securelevel
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable openbgpd:
+#
+# openbgplgd_enable="YES"
+# openbgplgd_flags="<set as needed>"
+#
+# See bgplgd(8) for openbgplgd_flags
+
+. /etc/rc.subr
+
+name=openbgpdlgd
+rcvar=openbgplgd_enable
+
+extra_commands=reload
+command="%%PREFIX%%/sbin/bgplgd"
+
+: ${openbgplgd_enable=NO}
+
+check_process()
+{
+ /bin/pgrep -j none -U 0 -f %%PREFIX%%/sbin/bgplgd
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/openbgpd8/files/patch-bgplgd.8.in b/net/openbgpd8/files/patch-bgplgd.8.in
new file mode 100644
index 000000000000..325b2a1d8dd0
--- /dev/null
+++ b/net/openbgpd8/files/patch-bgplgd.8.in
@@ -0,0 +1,21 @@
+--- src/bgplgd/bgplgd.8.in.orig 2025-04-28 17:23:51.692826000 +0200
++++ src/bgplgd/bgplgd.8.in 2025-04-28 17:24:32.798038000 +0200
+@@ -180,7 +180,7 @@
+ .Dl socket \&"@RUNSTATEDIR@/bgpd.rsock\&" restricted
+ .Pp
+ An example setup in
+-.Xr httpd 8
++.Xr obhttpd 8
+ is:
+ .Bd -literal -offset indent
+ location "/bgplgd/*" {
+@@ -191,7 +191,7 @@
+ .Sh SEE ALSO
+ .Xr bgpctl 8 ,
+ .Xr bgpd 8 ,
+-.Xr httpd 8
++.Xr obhttpd 8
+ .Sh HISTORY
+ The
+ .Nm
+
diff --git a/net/openbgpd8/pkg-plist b/net/openbgpd8/pkg-plist
index dca577427c8d..99c99ebae8d2 100644
--- a/net/openbgpd8/pkg-plist
+++ b/net/openbgpd8/pkg-plist
@@ -1,8 +1,8 @@
sbin/bgpctl
sbin/bgpd
-sbin/bgplgd
+%%BGPLGD%%sbin/bgplgd
share/man/man5/bgpd.conf.5.gz
share/man/man8/bgpctl.8.gz
share/man/man8/bgpd.8.gz
-share/man/man8/bgplgd.8.gz
+%%BGPLGD%%share/man/man8/bgplgd.8.gz
@sample etc/bgpd.conf.sample