summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Oswald <sko@rostwald.de>2025-05-25 21:17:20 +0200
committerKurt Jaeger <pi@FreeBSD.org>2025-05-25 21:21:43 +0200
commit6f83e83be94d7e5f2a2d23144f23060715f32dba (patch)
tree9baab6d0eb60a95da1d043b0bf4397b79c891d2b
parentdevel/py-ruamel.yaml: update to 0.18.11 (diff)
net/openbgpd8: update 8.6 -> 8.8
- add BGPLGD option for the looking glass daemon PR: 285527 Changes: https://marc.info/?l=openbsd-announce&m=173444528418097&w=2 https://marc.info/?l=openbsd-announce&m=173887198302373&w=2 Reviewed-by: Tim Hogard <thogard@abnormal.com>
-rw-r--r--GIDs2
-rw-r--r--UIDs2
-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
7 files changed, 73 insertions, 9 deletions
diff --git a/GIDs b/GIDs
index 7a5d5b2872f2..125d6916544d 100644
--- a/GIDs
+++ b/GIDs
@@ -470,7 +470,7 @@ dkimproxy:*:525:
# free: 527
# free: 528
# free: 529
-# free: 530
+_bgplgd:*:530:
# free: 531
# free: 532
# free: 533
diff --git a/UIDs b/UIDs
index ff7189f34d25..84275c402fce 100644
--- a/UIDs
+++ b/UIDs
@@ -476,7 +476,7 @@ dkimproxy:*:525:525::0:0:DKIM Proxy Owner:/nonexistent:/usr/sbin/nologin
# free: 527
# free: 528
# free: 529
-# free: 530
+_bgplgd:*:530:530::0:0:OpenBGP Looking Glass Daemon user:/nonexistent:/usr/sbin/nologin
# free: 531
# free: 532
# free: 533
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