Date: Fri, 30 Jun 2023 05:22:41 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 161d758f8036 - main - sysutils/mnrpes: Remove expired port Message-ID: <202306300522.35U5Mfub078374@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=161d758f803667f547e3c2027e719f4ac99964c1 commit 161d758f803667f547e3c2027e719f4ac99964c1 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-30 05:21:44 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-30 05:21:50 +0000 sysutils/mnrpes: Remove expired port 2023-06-30 sysutils/mnrpes: Depends on broken sysutils/mcollective Approved by: portmgr (blanket) --- MOVED | 1 + sysutils/Makefile | 1 - sysutils/mnrpes/Makefile | 49 ------------- sysutils/mnrpes/distinfo | 2 - sysutils/mnrpes/files/mnrpes_receiver.in | 112 ---------------------------- sysutils/mnrpes/files/mnrpes_scheduler.in | 117 ------------------------------ sysutils/mnrpes/pkg-descr | 3 - sysutils/mnrpes/pkg-plist | 14 ---- 8 files changed, 1 insertion(+), 298 deletions(-) diff --git a/MOVED b/MOVED index 33ca210afb9c..a990e3802312 100644 --- a/MOVED +++ b/MOVED @@ -7696,3 +7696,4 @@ sysutils/mcollective-nrpe-common||2023-06-30|Has expired: Depends on broken sysu sysutils/mcollective-service-common||2023-06-30|Has expired: Depends on broken sysutils/mcollective sysutils/mcollective-puppet-common||2023-06-30|Has expired: Depends on broken sysutils/mcollective sysutils/mcollective-nettest-common||2023-06-30|Has expired: Depends on broken sysutils/mcollective +sysutils/mnrpes||2023-06-30|Has expired: Depends on broken sysutils/mcollective diff --git a/sysutils/Makefile b/sysutils/Makefile index dbda1552b9d4..89db157689a8 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -756,7 +756,6 @@ SUBDIR += mkntpwd SUBDIR += mmc-utils SUBDIR += mmve - SUBDIR += mnrpes SUBDIR += modman SUBDIR += modules SUBDIR += mog diff --git a/sysutils/mnrpes/Makefile b/sysutils/mnrpes/Makefile deleted file mode 100644 index 4c49cd19bb5d..000000000000 --- a/sysutils/mnrpes/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -PORTNAME= mnrpes -PORTVERSION= 2014041501 -CATEGORIES= sysutils - -MAINTAINER= robak@FreeBSD.org -COMMENT= MCollective and Rufus scheduler wrapper -WWW= https://github.com/nullDowntimeLtd/mnrpes - -LICENSE= APACHE20 - -DEPRECATED= Depends on broken sysutils/mcollective -EXPIRATION_DATE= 2023-06-30 - -RUN_DEPENDS= mcollective>=2:sysutils/mcollective \ - rubygem-rufus-scheduler>=0.1:devel/rubygem-rufus-scheduler - -USES= ruby -USE_GITHUB= yes -GH_ACCOUNT= nullDowntimeLtd -GH_TAGNAME= 3f9942c - -USE_RC_SUBR= mnrpes_receiver \ - mnrpes_scheduler - -PLIST_SUB+= PORTNAME=${PORTNAME} - -NO_ARCH= yes -NO_BUILD= yes - -do-install: - ${MKDIR} ${STAGEDIR}${ETCDIR} - ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME} - ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME}/output - ${INSTALL_SCRIPT} ${WRKSRC}/bin/mnrpes-receiver.rb ${STAGEDIR}${PREFIX}/bin/ - ${INSTALL_SCRIPT} ${WRKSRC}/bin/mnrpes-scheduler.rb ${STAGEDIR}${PREFIX}/bin/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes/receiver.rb ${STAGEDIR}${RUBY_SITELIBDIR}/mnrpes/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes/scheduler.rb ${STAGEDIR}${RUBY_SITELIBDIR}/mnrpes/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes/output/flapjack.rb ${STAGEDIR}${RUBY_SITELIBDIR}/mnrpes/output/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes/output/nagios.rb ${STAGEDIR}${RUBY_SITELIBDIR}/mnrpes/output/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes/output/redis_status.rb ${STAGEDIR}${RUBY_SITELIBDIR}/mnrpes/output/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/mnrpes/output/stdout.rb ${STAGEDIR}${RUBY_SITELIBDIR}/mnrpes/output/ - ${INSTALL_DATA} ${WRKSRC}/etc/checks.txt.dist ${STAGEDIR}${ETCDIR} - ${INSTALL_DATA} ${WRKSRC}/etc/mnrpes-receiver.cfg.dist ${STAGEDIR}${ETCDIR} - ${INSTALL_DATA} ${WRKSRC}/etc/mnrpes-scheduler.cfg.dist ${STAGEDIR}${ETCDIR} - ${MKDIR} ${STAGEDIR}/var/run/${PORTNAME} - ${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} - -.include <bsd.port.mk> diff --git a/sysutils/mnrpes/distinfo b/sysutils/mnrpes/distinfo deleted file mode 100644 index d9eb0c25fb2d..000000000000 --- a/sysutils/mnrpes/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (nullDowntimeLtd-mnrpes-2014041501-3f9942c_GH0.tar.gz) = 5366c6d891005e28c93e67b5ee074d635285d0bdbb36e6f89bec3eb8dd4b8c65 -SIZE (nullDowntimeLtd-mnrpes-2014041501-3f9942c_GH0.tar.gz) = 83658 diff --git a/sysutils/mnrpes/files/mnrpes_receiver.in b/sysutils/mnrpes/files/mnrpes_receiver.in deleted file mode 100644 index 4be6136ffa44..000000000000 --- a/sysutils/mnrpes/files/mnrpes_receiver.in +++ /dev/null @@ -1,112 +0,0 @@ -#!/bin/sh - -# mnrpes_receiver startup script -# -# PROVIDE: mnrpes_receiver -# REQUIRE: LOGIN -# KEYWORD: shutdown -# -# Add the following to /etc/rc.conf[.local] to enable this service -# -# mnrpes_receiver_enable="YES" -# -# You can fine tune others variables too: -# mnrpes_receiver_config= -# Use mnrpes_receiver_user to run mnrpes_receiver as user - -# mnrpes_receiver rc.d script supports multiple profiles (a-la rc.d/nginx) -# When profiles are specified, the non-profile specific parameters become defaults. -# -# Example: -# -# mnrpes_receiver_enable="YES" -# mnrpes_receiver_profiles="myserver myotherserver" -# mnrpes_receiver_config="/usr/local/etc/mnrpes/mnrpes-receiver.cfg" -# mnrpes_receiver_myserver_user="myuser" -# mnrpes_receiver_myotherserver_user="myotheruser" -# mnrpes_receiver_myotherserver_config="/usr/local/etc/mnrpes/mnrpes-receiver-myotherserver.cfg" - -. /etc/rc.subr - -name="mnrpes_receiver" -rcvar=mnrpes_receiver_enable - -mnrpes_receiver_setfib() { - if command -v check_namevarlist > /dev/null 2>&1; then - check_namevarlist fib && return 0 - fi - - ${SYSCTL} net.fibs >/dev/null 2>&1 || return 0 - - mnrpes_receiver_fib=${mnrpes_receiver_fib:-"NONE"} - case "$mnrpes_receiver_fib" in - [Nn][Oo][Nn][Ee]) - ;; - *) - command="setfib -F ${mnrpes_receiver_fib} ${command}" - ;; - esac -} - -mnrpes_receiver_precmd() { - user="$1" - piddir="$2" - logdir="$3" - mnrpes_receiver_setfib - install -d -o $user -g wheel -m 1750 "${piddir}" - install -d -o $user -g wheel -m 1750 "${logdir}" -} - -command_interpreter="ruby" - -piddir="/var/run/mnrpes/receiver" -pidname="receiver" -logdir="/var/log/mnrpes/receiver" - -load_rc_config $name - -# These are just the defaults, they might get overriden for a specific profile. -mnrpes_receiver_enable=${mnrpes_receiver_enable:-"NO"} -mnrpes_receiver_user=${mnrpes_receiver_user:-"nobody"} -mnrpes_receiver_config=${mnrpes_receiver_config:-"/usr/local/etc/mnrpes/mnrpes-receiver.cfg"} - -# This handles profile specific vars. -if [ -n "$2" ]; then - profile="$2" - if [ -n "${mnrpes_receiver_profiles}" ]; then - piddir="${piddir}.${profile}" - pidname="${pidname}.${profile}" - logdir="${logdir}.${profile}" - eval mnrpes_receiver_enable="\${mnrpes_receiver_${profile}_enable:-${mnrpes_receiver_enable}}" - eval mnrpes_receiver_fib="\${mnrpes_receiver_${profile}_fib:-${mnrpes_receiver_fib}}" - eval mnrpes_receiver_user="\${mnrpes_receiver_${profile}_user:-${mnrpes_receiver_user}}" - eval mnrpes_receiver_config="\${mnrpes_receiver_${profile}_config:-${mnrpes_receiver_config}}" - else - echo "$0: extra argument ignored" - fi -else - if [ -n "${mnrpes_receiver_profiles}" -a -n "$1" ]; then - for profile in ${mnrpes_receiver_profiles}; do - echo "===> mnrpes_receiver profile: ${profile}" - /usr/local/etc/rc.d/mnrpes_receiver $1 ${profile} - retcode="$?" - if [ "0${retcode}" -ne 0 ]; then - failed="${profile} (${retcode}) ${failed:-}" - else - success="${profile} ${success:-}" - fi - done - # It exits so that non-profile rc.d is not started when there are profiles. - exit 0 - fi -fi - -pidfile="${piddir}/${pidname}.pid" - -command="/usr/local/bin/mnrpes-receiver.rb" - -start_precmd="mnrpes_receiver_precmd ${mnrpes_receiver_user} ${piddir} ${logdir}" - -command_args="--pid ${pidfile} --config ${mnrpes_receiver_config}" - -run_rc_command "$1" diff --git a/sysutils/mnrpes/files/mnrpes_scheduler.in b/sysutils/mnrpes/files/mnrpes_scheduler.in deleted file mode 100644 index 91569bb0851a..000000000000 --- a/sysutils/mnrpes/files/mnrpes_scheduler.in +++ /dev/null @@ -1,117 +0,0 @@ -#!/bin/sh - -# mnrpes_scheduler startup script -# -# PROVIDE: mnrpes_scheduler -# REQUIRE: LOGIN -# KEYWORD: shutdown -# -# Add the following to /etc/rc.conf[.local] to enable this service -# -# mnrpes_scheduler_enable="YES" -# -# You can fine tune others variables too: -# mnrpes_scheduler_config= -# mnrpes_scheduler_checks= -# Use mnrpes_scheduler_user to run mnrpes_scheduler as user - -# mnrpes_scheduler rc.d script supports multiple profiles (a-la rc.d/nginx) -# When profiles are specified, the non-profile specific parameters become defaults. -# -# Example: -# -# mnrpes_scheduler_enable="YES" -# mnrpes_scheduler_profiles="myserver myotherserver" -# mnrpes_scheduler_config="/usr/local/etc/mnrpes/mnrpes-scheduler.cfg" -# mnrpes_scheduler_checks="/usr/local/etc/mnrpes/checks.txt" -# mnrpes_scheduler_myserver_user="myuser" -# mnrpes_scheduler_myotherserver_user="myotheruser" -# mnrpes_scheduler_myotherserver_config="/usr/local/etc/mnrpes/mnrpes-scheduler-myotherserver.cfg" -# mnrpes_scheduler_myotherserver_checks="/usr/local/etc/mnrpes/checks-myotherserver.txt" - -. /etc/rc.subr - -name="mnrpes_scheduler" -rcvar=mnrpes_scheduler_enable - -mnrpes_scheduler_setfib() { - if command -v check_namevarlist > /dev/null 2>&1; then - check_namevarlist fib && return 0 - fi - - ${SYSCTL} net.fibs >/dev/null 2>&1 || return 0 - - mnrpes_scheduler_fib=${mnrpes_scheduler_fib:-"NONE"} - case "$mnrpes_scheduler_fib" in - [Nn][Oo][Nn][Ee]) - ;; - *) - command="setfib -F ${mnrpes_scheduler_fib} ${command}" - ;; - esac -} - -mnrpes_scheduler_precmd() { - user="$1" - piddir="$2" - logdir="$3" - mnrpes_scheduler_setfib - install -d -o $user -g wheel -m 1750 "${piddir}" - install -d -o $user -g wheel -m 1750 "${logdir}" -} - -command_interpreter="ruby" - -piddir="/var/run/mnrpes/scheduler" -pidname="scheduler" -logdir="/var/log/mnrpes/scheduler" - -load_rc_config $name - -# These are just the defaults, they might get overriden for a specific profile. -mnrpes_scheduler_enable=${mnrpes_scheduler_enable:-"NO"} -mnrpes_scheduler_user=${mnrpes_scheduler_user:-"nobody"} -mnrpes_scheduler_config=${mnrpes_scheduler_config:-"/usr/local/etc/mnrpes/mnrpes-scheduler.cfg"} -mnrpes_scheduler_checks=${mnrpes_scheduler_checks:-"/usr/local/etc/mnrpes/checks.txt"} - -# This handles profile specific vars. -if [ -n "$2" ]; then - profile="$2" - if [ -n "${mnrpes_scheduler_profiles}" ]; then - piddir="${piddir}.${profile}" - pidname="${pidname}.${profile}" - logdir="${logdir}.${profile}" - eval mnrpes_scheduler_enable="\${mnrpes_scheduler_${profile}_enable:-${mnrpes_scheduler_enable}}" - eval mnrpes_scheduler_fib="\${mnrpes_scheduler_${profile}_fib:-${mnrpes_scheduler_fib}}" - eval mnrpes_scheduler_user="\${mnrpes_scheduler_${profile}_user:-${mnrpes_scheduler_user}}" - eval mnrpes_scheduler_config="\${mnrpes_scheduler_${profile}_config:-${mnrpes_scheduler_config}}" - eval mnrpes_scheduler_checks="\${mnrpes_scheduler_${profile}_checks:-${mnrpes_scheduler_checks}}" - else - echo "$0: extra argument ignored" - fi -else - if [ -n "${mnrpes_scheduler_profiles}" -a -n "$1" ]; then - for profile in ${mnrpes_scheduler_profiles}; do - echo "===> mnrpes_scheduler profile: ${profile}" - /usr/local/etc/rc.d/mnrpes_scheduler $1 ${profile} - retcode="$?" - if [ "0${retcode}" -ne 0 ]; then - failed="${profile} (${retcode}) ${failed:-}" - else - success="${profile} ${success:-}" - fi - done - # It exits so that non-profile rc.d is not started when there are profiles. - exit 0 - fi -fi - -pidfile="${piddir}/${pidname}.pid" - -command="/usr/local/bin/mnrpes-scheduler.rb" - -start_precmd="mnrpes_scheduler_precmd ${mnrpes_scheduler_user} ${piddir} ${logdir}" - -command_args="--pid ${pidfile} --config ${mnrpes_scheduler_config} --checks ${mnrpes_scheduler_checks}" - -run_rc_command "$1" diff --git a/sysutils/mnrpes/pkg-descr b/sysutils/mnrpes/pkg-descr deleted file mode 100644 index 1e670326f57f..000000000000 --- a/sysutils/mnrpes/pkg-descr +++ /dev/null @@ -1,3 +0,0 @@ -Mnrpes is a system that uses MCollective and the Rufus scheduler -to build a distributed async scheduler and checker for Nagios -based on the Passive mode. diff --git a/sysutils/mnrpes/pkg-plist b/sysutils/mnrpes/pkg-plist deleted file mode 100644 index 3fee47c4b6b3..000000000000 --- a/sysutils/mnrpes/pkg-plist +++ /dev/null @@ -1,14 +0,0 @@ -bin/mnrpes-receiver.rb -bin/mnrpes-scheduler.rb -%%ETCDIR%%/checks.txt.dist -%%ETCDIR%%/mnrpes-receiver.cfg.dist -%%ETCDIR%%/mnrpes-scheduler.cfg.dist -%%RUBY_SITELIBDIR%%/mnrpes.rb -%%RUBY_SITELIBDIR%%/%%PORTNAME%%/receiver.rb -%%RUBY_SITELIBDIR%%/%%PORTNAME%%/scheduler.rb -%%RUBY_SITELIBDIR%%/%%PORTNAME%%/output/flapjack.rb -%%RUBY_SITELIBDIR%%/%%PORTNAME%%/output/nagios.rb -%%RUBY_SITELIBDIR%%/%%PORTNAME%%/output/redis_status.rb -%%RUBY_SITELIBDIR%%/%%PORTNAME%%/output/stdout.rb -@dir /var/run/%%PORTNAME%% -@dir /var/log/%%PORTNAME%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306300522.35U5Mfub078374>