Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 393168 Details for
Bug 534544
net-analyzer/fail2ban-version? - /etc/init.d/fail2ban: ?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to portage
file_534544.txt (text/plain), 4.21 KB, created by
mike
on 2015-01-04 20:36:24 UTC
(
hide
)
Description:
patch to portage
Filename:
MIME Type:
Creator:
mike
Created:
2015-01-04 20:36:24 UTC
Size:
4.21 KB
patch
obsolete
>diff --git a/net-analyzer/fail2ban/fail2ban-0.8.13.ebuild b/net-analyzer/fail2ban/fail2ban-0.8.13.ebuild >index b6b9e20..9e4f7b7 100644 >--- a/net-analyzer/fail2ban/fail2ban-0.8.13.ebuild >+++ b/net-analyzer/fail2ban/fail2ban-0.8.13.ebuild >@@ -39,9 +39,7 @@ src_install() { > > rm -rf "${D}"/usr/share/doc/${PN} > >- # not FILESDIR >- newconfd files/gentoo-confd ${PN} >- newinitd files/gentoo-initd ${PN} >+ newinitd ${FILESDIR}/${PN}.initrd ${PN} > systemd_dounit files/${PN}.service > systemd_dotmpfilesd files/${PN}-tmpfiles.conf > doman man/*.{1,5} >diff --git a/net-analyzer/fail2ban/fail2ban-0.8.14.ebuild b/net-analyzer/fail2ban/fail2ban-0.8.14.ebuild >index 31262e9..d69fee7 100644 >--- a/net-analyzer/fail2ban/fail2ban-0.8.14.ebuild >+++ b/net-analyzer/fail2ban/fail2ban-0.8.14.ebuild >@@ -39,9 +39,7 @@ src_install() { > > rm -rf "${D}"/usr/share/doc/${PN} > >- # not FILESDIR >- newconfd files/gentoo-confd ${PN} >- newinitd files/gentoo-initd ${PN} >+ newinitd ${FILESDIR}/${PN}.initrd ${PN} > systemd_dounit files/${PN}.service > systemd_dotmpfilesd files/${PN}-tmpfiles.conf > doman man/*.{1,5} >diff --git a/net-analyzer/fail2ban/fail2ban-0.9.1.ebuild b/net-analyzer/fail2ban/fail2ban-0.9.1.ebuild >index 81facd6..f6b5976 100644 >--- a/net-analyzer/fail2ban/fail2ban-0.9.1.ebuild >+++ b/net-analyzer/fail2ban/fail2ban-0.9.1.ebuild >@@ -44,9 +44,7 @@ src_install() { > > rm -rf "${D}"/usr/share/doc/${PN} > >- # not FILESDIR >- newconfd files/gentoo-confd ${PN} >- newinitd files/gentoo-initd ${PN} >+ newinitd ${FILESDIR}/${PN}.initrd ${PN} > systemd_dounit files/${PN}.service > systemd_dotmpfilesd files/${PN}-tmpfiles.conf > doman man/*.{1,5} >diff --git a/net-analyzer/fail2ban/fail2ban-99999999.ebuild b/net-analyzer/fail2ban/fail2ban-99999999.ebuild >index a06d1f0..c321981 100644 >--- a/net-analyzer/fail2ban/fail2ban-99999999.ebuild >+++ b/net-analyzer/fail2ban/fail2ban-99999999.ebuild >@@ -48,9 +48,7 @@ src_install() { > > rm -rf "${D}"/usr/share/doc/${PN} > >- # not FILESDIR >- newconfd files/gentoo-confd ${PN} >- newinitd files/gentoo-initd ${PN} >+ newinitd ${FILESDIR}/${PN}.initrd ${PN} > systemd_dounit files/${PN}.service > systemd_dotmpfilesd files/${PN}-tmpfiles.conf > doman man/*.{1,5} >diff --git a/net-analyzer/fail2ban/files/fail2ban.initrd b/net-analyzer/fail2ban/files/fail2ban.initrd >new file mode 100644 >index 0000000..6c77ffb >--- /dev/null >+++ b/net-analyzer/fail2ban/files/fail2ban.initrd >@@ -0,0 +1,57 @@ >+#!/sbin/runscript >+# Copyright 1999-2015 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+# $Header: $ >+ >+extra_commands="dumpcfg" >+extra_started_commands="reload short detailed" >+ >+description="Scans log files and bans IPs that show malicious signs" >+description_dumpcfg="dump configuration. For debugging" >+description_reload="reloads the configuration" >+description_short="short status" >+description_detailed="detailed status about all jails" >+ >+: ${pidfile:=/run/fail2ban/fail2ban.pid} >+: ${FAIL2BAN_SOCKFILE:=/run/fail2ban/fail2ban.sock} >+: ${FAIL2BAN_CONFDIR:=/etc/fail2ban} >+FAIL2BAN_OPTIONS="-c '${FAIL2BAN_CONFDIR}' -s '${FAIL2BAN_SOCKFILE}' -p '${pidfile}'" >+ >+required_files="${FAIL2BAN_CONFDIR}/fail2ban.conf" >+command="/usr/bin/fail2ban-client" >+command_args="${FAIL2BAN_OPTIONS} -b -x start" >+ >+depend() { >+ need net logger iptables >+} >+ >+start_pre() { >+ mkdir -p "$(dirname "${pidfile}")" "$(dirname "${FAIL2BAN_SOCKFILE}")" >+} >+ >+stop() { >+ ebegin "Stopping fail2ban" >+ eval ${command} ${FAIL2BAN_OPTIONS} stop >+ eend $? "Failed to stop fail2ban" >+} >+ >+reload() { >+ ebegin "Reloading fail2ban" >+ eval ${command} ${FAIL2BAN_OPTIONS} reload >+ eend $? "Failed to reload fail2ban" >+} >+ >+dumpcfg(){ >+ eval ${command} ${FAIL2BAN_OPTIONS} -d >+} >+ >+short(){ >+ LANG= eval ${command} ${FAIL2BAN_OPTIONS} status >+} >+ >+detailed(){ >+ local _j >+ for _j in $(short | sed -e 's/,//g' -nre 's/\S\S Jail list:[[:space:]]+(.*)$/\1/p'); do >+ eval ${command} ${FAIL2BAN_OPTIONS} status $_j >+ done >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 534544
:
393114
|
393164
| 393168