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>
This commit is contained in:
parent
c499c90723
commit
6f83e83be9
2
GIDs
2
GIDs
@ -470,7 +470,7 @@ dkimproxy:*:525:
|
||||
# free: 527
|
||||
# free: 528
|
||||
# free: 529
|
||||
# free: 530
|
||||
_bgplgd:*:530:
|
||||
# free: 531
|
||||
# free: 532
|
||||
# free: 533
|
||||
|
||||
2
UIDs
2
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
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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
|
||||
|
||||
31
net/openbgpd8/files/openbgplgd.in
Normal file
31
net/openbgpd8/files/openbgplgd.in
Normal file
@ -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"
|
||||
21
net/openbgpd8/files/patch-bgplgd.8.in
Normal file
21
net/openbgpd8/files/patch-bgplgd.8.in
Normal file
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user