summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2021-03-30 23:25:30 +0800
committerYixun Lan <dlan@gentoo.org>2021-03-30 23:25:53 +0800
commitca73616f559b8f49d51c3bf8c6e4e772cfe1afa3 (patch)
treea36ba34d8e9808d8de84a802492c697f6afcdee3 /app-admin/sshguard
parentsys-auth/pam_blue: fix build with slibtool (diff)
downloadgentoo-ca73616f559b8f49d51c3bf8c6e4e772cfe1afa3.tar.gz
gentoo-ca73616f559b8f49d51c3bf8c6e4e772cfe1afa3.tar.bz2
gentoo-ca73616f559b8f49d51c3bf8c6e4e772cfe1afa3.zip
app-admin/sshguard: version bump 2.4.2
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-admin/sshguard')
-rw-r--r--app-admin/sshguard/Manifest1
-rw-r--r--app-admin/sshguard/sshguard-2.4.2.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest
index c01af9f3c964..7fbac4e3d7c5 100644
--- a/app-admin/sshguard/Manifest
+++ b/app-admin/sshguard/Manifest
@@ -1 +1,2 @@
DIST sshguard-2.4.1.tar.gz 723940 BLAKE2B 04e72b9959ef3ead418d2a6fe8029b0806a4d91c91f7cd36c236c7203cca1afc67305b21de0b1dee1594b188564f201ff2770d54d4c57c54b4d23db15e0298a0 SHA512 bae7485d963454f2a6dc4b7d96506b03fb49013fe3ab3d81e315ea88bd8067e7a2305cdf25e411720ac014a68ee9635cdbcef65a7dc806b7fc942f099a9d5ba8
+DIST sshguard-2.4.2.tar.gz 835431 BLAKE2B f76cbe41ced4d23448ba09750d073a47dae263616c34ec2e2efd7d6367339d352925958b5d9d711a3c4a8c2da10fae2474384a3de14434c0dff19bd645325058 SHA512 f2fe35180af8698d4b2053e9ffbf17df9f033b0c2fcc045caa085467d14174e17aa266d2ef3ce9536037e54f7d3ea42de9e32e7faee65612894294793082862a
diff --git a/app-admin/sshguard/sshguard-2.4.2.ebuild b/app-admin/sshguard/sshguard-2.4.2.ebuild
new file mode 100644
index 000000000000..ee4653a215e3
--- /dev/null
+++ b/app-admin/sshguard/sshguard-2.4.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools systemd
+DESCRIPTION="protects hosts from brute force attacks against ssh"
+HOMEPAGE="https://www.sshguard.net/"
+
+if [[ "${PV}" == 99999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://bitbucket.org/${PN}/${PN}"
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+DEPEND="
+ sys-devel/flex
+"
+RDEPEND="
+ virtual/logger
+"
+DOCS=(
+ CHANGELOG.rst
+ CONTRIBUTING.rst
+ README.rst
+ examples/net.sshguard.plist
+ examples/whitelistfile.example
+)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.4.1-conf.patch
+)
+
+src_prepare() {
+ default
+ sed -i -e "/ExecStartPre/s:/usr/sbin:/sbin:g" \
+ -e "/ExecStart/s:/usr/local/sbin:/usr/sbin:g" \
+ "${S}"/examples/${PN}.service || die
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ insinto /etc
+ newins examples/sshguard.conf.sample sshguard.conf
+
+ systemd_dounit "${S}"/examples/sshguard.service
+}