From 90c88731bd036e5698b281fbc0a5f3aa4c9983ac Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 29 Jun 2020 11:38:31 +0100 Subject: gentoo resync : 29.06.2020 --- net-misc/endlessh/files/endlessh.confd | 29 ++++++++++++++++++++++++++ net-misc/endlessh/files/endlessh.confd-r1 | 34 ------------------------------- net-misc/endlessh/files/endlessh.confd-r2 | 29 -------------------------- net-misc/endlessh/files/endlessh.initd | 30 +++++++++++++++++++++++++++ net-misc/endlessh/files/endlessh.initd-r1 | 29 -------------------------- net-misc/endlessh/files/endlessh.initd-r2 | 30 --------------------------- net-misc/endlessh/files/logrotated-r1 | 9 -------- 7 files changed, 59 insertions(+), 131 deletions(-) create mode 100644 net-misc/endlessh/files/endlessh.confd delete mode 100644 net-misc/endlessh/files/endlessh.confd-r1 delete mode 100644 net-misc/endlessh/files/endlessh.confd-r2 create mode 100644 net-misc/endlessh/files/endlessh.initd delete mode 100644 net-misc/endlessh/files/endlessh.initd-r1 delete mode 100644 net-misc/endlessh/files/endlessh.initd-r2 delete mode 100644 net-misc/endlessh/files/logrotated-r1 (limited to 'net-misc/endlessh/files') diff --git a/net-misc/endlessh/files/endlessh.confd b/net-misc/endlessh/files/endlessh.confd new file mode 100644 index 000000000000..062e30f0c164 --- /dev/null +++ b/net-misc/endlessh/files/endlessh.confd @@ -0,0 +1,29 @@ +# /etc/conf.d/endlessh: config file for /etc/init.d/endlessh +# +#default options used by init.d if this is unset +#ENDLESSH_ARGS="-sv" +# +#Usage: endlessh [-vh] [-46] [-d MS] [-f CONFIG] [-l LEN] [-m LIMIT] [-p PORT] +# -4 Bind to IPv4 only +# -6 Bind to IPv6 only +# -d INT Message millisecond delay [10000] +# -f Set and load config file [/etc/endlessh/config] +# -h Print this help message and exit +# -l INT Maximum banner line length (3-255) [32] +# -m INT Maximum number of clients [4096] +# -p INT Listening port [2222] +# -v Print diagnostics to standard output (repeatable) +# -V Print version information and exit + +# EXAMPLE 1: listen on port 22, log all queries and errors in very verbose mode +#ENDLESSH_ARGS="-p 22 -vv" + +# EXAMPLE 2: load settings from config file +#ENDLESSH_ARGS="-f /etc/endlessh/config" + +# EXAMPLE 3: load settings from config file, but override port +#ENDLESSH_ARGS="-f /etc/endlessh/config -p 22" + +# LOGGING: by default is syslog +# You can add -v (or -vv) for verbosity +#ENDLESSH_ARGS="-s -v" diff --git a/net-misc/endlessh/files/endlessh.confd-r1 b/net-misc/endlessh/files/endlessh.confd-r1 deleted file mode 100644 index 13ba0ef55d2e..000000000000 --- a/net-misc/endlessh/files/endlessh.confd-r1 +++ /dev/null @@ -1,34 +0,0 @@ -# /etc/conf.d/endlessh: config file for /etc/init.d/endlessh -# -#ENDLESSH_ARGS="" -# Usage: [-vh] [-46] [-d MS] [-f CONFIG] [-l LEN] [-m LIMIT] [-p PORT] -# -4 Bind to IPv4 only -# -6 Bind to IPv6 only -# -d INT Message millisecond delay [10000] -# -f Set and load config file [/etc/endlessh/config] -# -h Print this help message and exit -# -l INT Maximum banner line length (3-255) [32] -# -m INT Maximum number of clients [4096] -# -p INT Listening port [2222] -# -v Print diagnostics to standard output (repeatable) -# -V Print version information and exit - -# EXAMPLE 1: listen on port 22, log all queries and errors in very verbose mode -#ENDLESSH_ARGS="-p 22 -vv" - -# EXAMPLE 2: load settings from config file -#ENDLESSH_ARGS="-f /etc/endlessh/config" - -# EXAMPLE 3: load settings from config file, but override port -#ENDLESSH_ARGS="-f /etc/endlessh/config -p 22" - - -# LOGGING: is disabled by default, enable this to actually redirect messages - -# plain file (preferred), change logrotate file as well if you change this. -#output_log=/var/log/"${RC_SVCNAME}.log" -#error_log=/var/log/"${RC_SVCNAME}.error.log" - -# syslog support via LOGGER(1). Note this spawns logger processes per io stream -#output_logger="logger -p daemon.none --" -#error_logger="logger -p daemon.err --" diff --git a/net-misc/endlessh/files/endlessh.confd-r2 b/net-misc/endlessh/files/endlessh.confd-r2 deleted file mode 100644 index 062e30f0c164..000000000000 --- a/net-misc/endlessh/files/endlessh.confd-r2 +++ /dev/null @@ -1,29 +0,0 @@ -# /etc/conf.d/endlessh: config file for /etc/init.d/endlessh -# -#default options used by init.d if this is unset -#ENDLESSH_ARGS="-sv" -# -#Usage: endlessh [-vh] [-46] [-d MS] [-f CONFIG] [-l LEN] [-m LIMIT] [-p PORT] -# -4 Bind to IPv4 only -# -6 Bind to IPv6 only -# -d INT Message millisecond delay [10000] -# -f Set and load config file [/etc/endlessh/config] -# -h Print this help message and exit -# -l INT Maximum banner line length (3-255) [32] -# -m INT Maximum number of clients [4096] -# -p INT Listening port [2222] -# -v Print diagnostics to standard output (repeatable) -# -V Print version information and exit - -# EXAMPLE 1: listen on port 22, log all queries and errors in very verbose mode -#ENDLESSH_ARGS="-p 22 -vv" - -# EXAMPLE 2: load settings from config file -#ENDLESSH_ARGS="-f /etc/endlessh/config" - -# EXAMPLE 3: load settings from config file, but override port -#ENDLESSH_ARGS="-f /etc/endlessh/config -p 22" - -# LOGGING: by default is syslog -# You can add -v (or -vv) for verbosity -#ENDLESSH_ARGS="-s -v" diff --git a/net-misc/endlessh/files/endlessh.initd b/net-misc/endlessh/files/endlessh.initd new file mode 100644 index 000000000000..1639c57348c4 --- /dev/null +++ b/net-misc/endlessh/files/endlessh.initd @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + after bootmisc + need localmount + use clock logger net +} + +description="Starts endlessh tarpit" + +command="/usr/bin/endlessh" +# NOTE: You will need to add -s to ENDLESSH_ARGS in /etc/conf.d/endlessh if modified to keep syslog +command_args="${ENDLESSH_ARGS:--sv}" +command_background="true" +extra_started_commands="dumpstats reload" +pidfile="/run/${RC_SVCNAME}.pid" + +dumpstats() { + ebegin "Dumping connection stats of ${RC_SVCNAME} to log" + start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}" + eend $? +} + +reload() { + ebegin "Reloading ${RC_SVCNAME} configuration" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} diff --git a/net-misc/endlessh/files/endlessh.initd-r1 b/net-misc/endlessh/files/endlessh.initd-r1 deleted file mode 100644 index ea8d830af439..000000000000 --- a/net-misc/endlessh/files/endlessh.initd-r1 +++ /dev/null @@ -1,29 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -depend() { - after bootmisc - need localmount - use clock logger net -} - -description="Starts endlessh tarpit" - -command="/usr/bin/endlessh" -command_args="${ENDLESSH_ARGS}" -command_background="true" -extra_started_commands="dumpstats reload" -pidfile="/run/${RC_SVCNAME}.pid" - -dumpstats() { - ebegin "Dumping connection stats of ${RC_SVCNAME} to log" - start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}" - eend $? -} - -reload() { - ebegin "Reloading ${RC_SVCNAME} configuration" - start-stop-daemon --signal HUP --pidfile "${pidfile}" - eend $? -} diff --git a/net-misc/endlessh/files/endlessh.initd-r2 b/net-misc/endlessh/files/endlessh.initd-r2 deleted file mode 100644 index 0b995f683d91..000000000000 --- a/net-misc/endlessh/files/endlessh.initd-r2 +++ /dev/null @@ -1,30 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -depend() { - after bootmisc - need localmount - use clock logger net -} - -description="Starts endlessh tarpit" - -command="/usr/bin/endlessh" -# NOTE: You will need to add -s to ENDLESSH_ARGS in /etc/conf.d/endlessh if modified to keep syslog -command_args="${ENDLESSH_ARGS:--sv}" -command_background="true" -extra_started_commands="dumpstats reload" -pidfile="/run/${RC_SVCNAME}.pid" - -dumpstats() { - ebegin "Dumping connection stats of ${RC_SVCNAME} to log" - start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}" - eend $? -} - -reload() { - ebegin "Reloading ${RC_SVCNAME} configuration" - start-stop-daemon --signal HUP --pidfile "${pidfile}" - eend $? -} diff --git a/net-misc/endlessh/files/logrotated-r1 b/net-misc/endlessh/files/logrotated-r1 deleted file mode 100644 index 896e89e6474f..000000000000 --- a/net-misc/endlessh/files/logrotated-r1 +++ /dev/null @@ -1,9 +0,0 @@ -/var/log/endlessh.log /var/log/endlessh.error.log { - copytruncate - missingok - notifempty - sharedscripts - prerotate - /etc/init.d/endlessh --ifstarted --quiet dumpstats - endscript -} -- cgit v1.2.3