Commit 3a8fecac authored by Adam Weinberger's avatar Adam Weinberger
Browse files

sysutils/beats7: Remove, and point users to beats8

beats7 uses symbols from Go that were removed in go1.23, making it
unbuildable with anything beyond go1.22. Both go1.22 and go1.23 are EOL,
and I don't know of any way to fix it. It's going to become unsupported
upstream in 13 days, so its time has come.

This commit also includes a MOVED entry that directs users to the
more-modern beats8.
parent 537c2838
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5063,3 +5063,4 @@ security/php81-filter|security/php82-filter|2025-12-31|Has expired: Security sup
lang/go120||2026-01-01|Has expired: Old version, unsupported upstream
net/gwhois||2026-01-01|Has expired: source and WWW is gone. Hasn't been updated for 12yrs
lang/go121||2026-01-01|Has expired: Old version, unsupported upstream
sysutils/beats7|sysutils/beats8|2026-01-02|Has expired: Only works with expired go1.22
+0 −1
Original line number Diff line number Diff line
@@ -119,7 +119,6 @@
    SUBDIR += battray
    SUBDIR += bchunk
    SUBDIR += beadm
    SUBDIR += beats7
    SUBDIR += beats8
    SUBDIR += bfs
    SUBDIR += bhyve-firmware

sysutils/beats7/Makefile

deleted100644 → 0
+0 −448

File deleted.

Preview size limit exceeded, changes collapsed.

sysutils/beats7/distinfo

deleted100644 → 0
+0 −569

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −50
Original line number Diff line number Diff line
#!/bin/sh

# PROVIDE: auditbeat
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable auditbeat:
#
# auditbeat_enable (bool):	Set to YES to enable auditbeat
# 				Default: NO
# auditbeat_flags (str):	Extra flags passed to auditbeat
# auditbeat_config (str):	auditbeat configuration directory
#				Default: ${PREFIX}/etc/beats
# auditbeat_conffile (str):	auditbeat configuration file
#				relative to ${auditbeat_conf}
#				Default: auditbeat.yml

. /etc/rc.subr

name="auditbeat"
rcvar=${name}_enable
load_rc_config $name

: ${auditbeat_enable:="NO"}
: ${auditbeat_config:="%%ETCDIR%%"}
: ${auditbeat_conffile:="auditbeat.yml"}
: ${auditbeat_home:="%%DATADIR%%/auditbeat"}
: ${auditbeat_logs:="/var/log/beats"}
: ${auditbeat_data:="/var/db/beats/auditbeat"}

# daemon
start_precmd=auditbeat_prestart
command=/usr/sbin/daemon
pidfile="/var/run/${name}"
command_args="-frP ${pidfile} %%PREFIX%%/sbin/${name} ${auditbeat_flags} --path.config ${auditbeat_config} --path.home ${auditbeat_home} --path.data ${auditbeat_data} --path.logs ${auditbeat_logs} -c ${auditbeat_conffile}"
auditbeat_prestart() {
# Have to empty rc_flags so they don't get passed to daemon(8)
	rc_flags=""
}

# auditbeat will refuse to quit if linprocfs is mounted, and sadly requires -9
[ -f /compat/linux/proc/cpuinfo ] && stop_cmd=auditbeat_stop

auditbeat_stop() {
	pkill -9 -F ${pidfile} > /dev/null 2>&1
	pkill -9 -F ${pidfile}.child > /dev/null 2>&1
}

run_rc_command "$1"
Loading