diff options
author | Yixun Lan <dlan@gentoo.org> | 2023-08-09 12:58:44 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2023-08-09 12:58:44 +0000 |
commit | 5b8f297ce1ff70fdd6300a95ab38eccfb81fc1cc (patch) | |
tree | 62f6ac64dd9a28e07f0a00907e2d6cac5e5fb60c /app-admin/sshguard | |
parent | app-backup/snapper: drop 0.10.4, 0.10.5 (diff) | |
download | gentoo-5b8f297ce1ff70fdd6300a95ab38eccfb81fc1cc.tar.gz gentoo-5b8f297ce1ff70fdd6300a95ab38eccfb81fc1cc.tar.bz2 gentoo-5b8f297ce1ff70fdd6300a95ab38eccfb81fc1cc.zip |
app-admin/sshguard: add 2.4.3
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-admin/sshguard')
-rw-r--r-- | app-admin/sshguard/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sshguard/sshguard-2.4.3.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest index ad5c04e8077a..6ae9b598b69f 100644 --- a/app-admin/sshguard/Manifest +++ b/app-admin/sshguard/Manifest @@ -1 +1,2 @@ DIST sshguard-2.4.2.tar.gz 835431 BLAKE2B f76cbe41ced4d23448ba09750d073a47dae263616c34ec2e2efd7d6367339d352925958b5d9d711a3c4a8c2da10fae2474384a3de14434c0dff19bd645325058 SHA512 f2fe35180af8698d4b2053e9ffbf17df9f033b0c2fcc045caa085467d14174e17aa266d2ef3ce9536037e54f7d3ea42de9e32e7faee65612894294793082862a +DIST sshguard-2.4.3.tar.gz 1118756 BLAKE2B 8e3bd297c5712b4a411de6581e96a21db03203974cedba443bf16dd042e3b1b54c68cbacfa5af1610e738e1f847f1f0fae4792b52b618946f8b13fb0f5d4e338 SHA512 eeecea1007c1a21a28835a6d29c2cbffc647b3ab09a3525600e91b978d4ebdda9e6a7e2884da26bb1d7f64de561ac8bd1788bb776730d37b7a4fa49b22885b4a diff --git a/app-admin/sshguard/sshguard-2.4.3.ebuild b/app-admin/sshguard/sshguard-2.4.3.ebuild new file mode 100644 index 000000000000..35ac2d2df817 --- /dev/null +++ b/app-admin/sshguard/sshguard-2.4.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~riscv ~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 +} |