Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/endlessh/
Date: Wed, 01 May 2019 19:18:24
Message-Id: 1556738277.3eb912727e8848d9e3060d3502282c0ffee6abe4.gyakovlev@gentoo
1 commit: 3eb912727e8848d9e3060d3502282c0ffee6abe4
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 1 19:17:57 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed May 1 19:17:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3eb91272
7
8 net-misc/endlessh: sync live ebuild
9
10 Bug: https://bugs.gentoo.org/684848
11 Package-Manager: Portage-2.3.66, Repoman-2.3.12
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 net-misc/endlessh/endlessh-9999.ebuild | 40 +++++++++++++++-------------------
15 1 file changed, 17 insertions(+), 23 deletions(-)
16
17 diff --git a/net-misc/endlessh/endlessh-9999.ebuild b/net-misc/endlessh/endlessh-9999.ebuild
18 index 105c786b101..e0a840877f3 100644
19 --- a/net-misc/endlessh/endlessh-9999.ebuild
20 +++ b/net-misc/endlessh/endlessh-9999.ebuild
21 @@ -3,9 +3,7 @@
22
23 EAPI=7
24
25 -PYTHON_COMPAT=( python3_6 )
26 -
27 -inherit python-single-r1 systemd toolchain-funcs
28 +inherit systemd toolchain-funcs
29
30 DESCRIPTION="SSH tarpit that slowly sends and endless banner"
31 HOMEPAGE="https://github.com/skeeto/endlessh"
32 @@ -20,25 +18,12 @@ fi
33
34 LICENSE="Unlicense"
35 SLOT="0"
36 -IUSE="tools"
37 -REQUIRED_USE="tools? ( ${PYTHON_REQUIRED_USE} )"
38 +IUSE=""
39
40 DEPEND=""
41 -
42 -RDEPEND="${DEPEND}
43 - tools? (
44 - ${PYTHON_DEPS}
45 - dev-db/sqlite
46 - dev-python/pyrfc3339[${PYTHON_USEDEP}]
47 - )
48 -"
49 -
50 +RDEPEND=""
51 BDEPEND=""
52
53 -pkg_setup() {
54 - use tools && python-single-r1_pkg_setup
55 -}
56 -
57 src_prepare() {
58 default
59
60 @@ -49,6 +34,7 @@ src_prepare() {
61 -e 's/^CFLAGS =/CFLAGS +=/' \
62 -e 's/ -Os//' \
63 -e 's/^LDFLAGS/LDFLAGS?/' \
64 + -e 's/^PREFIX/PREFIX?/' \
65 Makefile || die
66
67 sed -i -e "/^ExecStart=/ s:=/opt/endlessh:=${EPREFIX}/usr/bin:" \
68 @@ -56,15 +42,23 @@ src_prepare() {
69 }
70
71 src_install() {
72 - dobin endlessh
73 + emake DESTDIR="${D}" PREFIX=/usr install
74
75 - newinitd "${FILESDIR}"/endlessh.initd endlessh
76 - newconfd "${FILESDIR}"/endlessh.confd endlessh
77 + einstalldocs
78 +
79 + newinitd "${FILESDIR}"/endlessh.initd-r1 endlessh
80 + newconfd "${FILESDIR}"/endlessh.confd-r1 endlessh
81
82 systemd_dounit util/endlessh.service
83
84 insinto /etc/logrotate.d
85 - newins "${FILESDIR}/logrotated" endlessh
86 + newins "${FILESDIR}/logrotated-r1" endlessh
87
88 - einstalldocs
89 + insinto /usr/share/"${PN}"
90 + doins util/{pivot.py,schema.sql}
91 +}
92 +
93 +pkg_postinst() {
94 + elog "Log parsing script installed to ${EPREFIX}/usr/share/${PN}"
95 + elog "Install dev-python/pyrfc3339 if you are going to use it"
96 }