Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/atop/files/, sys-process/atop/
Date: Mon, 04 Nov 2019 10:04:33
Message-Id: 1572861863.54974377b44222662668f819bedb25f581e7224c.polynomial-c@gentoo
1 commit: 54974377b44222662668f819bedb25f581e7224c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 4 10:01:15 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 4 10:04:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54974377
7
8 sys-process/atop: Bump to version 2.5.0
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-process/atop/Manifest | 1 +
14 sys-process/atop/atop-2.5.0.ebuild | 69 ++++++++++++++++++++++
15 .../atop/files/atop-2.5.0-install_fix.patch | 31 ++++++++++
16 3 files changed, 101 insertions(+)
17
18 diff --git a/sys-process/atop/Manifest b/sys-process/atop/Manifest
19 index d65dc64336b..8c799a1f8b9 100644
20 --- a/sys-process/atop/Manifest
21 +++ b/sys-process/atop/Manifest
22 @@ -3,3 +3,4 @@ DIST atop-2.3.0-version_c.patch 1537 BLAKE2B eda9f0aa427e39ef12aa1584e6277de0057
23 DIST atop-2.3.0-version_h.patch 748 BLAKE2B 95aa0e819d35498436ddb2554f457e9bf74a70395f077d8f0625b52469d3f4a1f5793afc061aa1f7105fbea6223bb19bbcb999be4231b761523eb28cb5243542 SHA512 79ea49421e9bd82322cae26148d608560910a3d2e089228d2218d93744dcba8398058dd75255b64d15301c8bc4bde1dd6e15b6c6949a01534557b24b3d79089d
24 DIST atop-2.3.0.tar.gz 190560 BLAKE2B 4c7a8f33f7e32fb6107275c21db54af91ffdb06cea14039ba85c6e844efc05e5c64708dae48eb3a7b8e075378838937ddd4756a954e6a040d4b3e8c4e7dd9e93 SHA512 8347f480b3e8f957be9aa8982b9c69c5fbc59b8a32044662995495cc2218de48342788aae40538d2ad67d402c8c470d0514261791ead70303f97221ea6983621
25 DIST atop-2.4.0.tar.gz 230066 BLAKE2B 75070f0a87f9745f0e018ef5aac7e71060acea77e2043d43594a492875126945ef4c5bfe15f69b300ce6ac25c38f54360ba761ad7fc510016a91b71dc3377957 SHA512 8872626db447b2b7265fa257bc78795c3a5bc2f0dfffae94d01df4090de75feeb092e5a33421877aa12563dde3df18734b5db947c828cec6949284fbeb9dbc8d
26 +DIST atop-2.5.0.tar.gz 233835 BLAKE2B e40ae26cb1f8ddecbf6ea8f8f83d09bf9d62003a54e0679d5eefdf7c6fdaaff1940ba5f097fc1fc181ddb6aedcb8e1482feeb451cce5905b98c929c786db147d SHA512 8c50482194b60afedfd9d593ea7e916b63310bd3b43965fbd2769a2673f6f2247dec764ed1576866321a4b9c7301d5d8369c97fb6d351246395d01772ad04489
27
28 diff --git a/sys-process/atop/atop-2.5.0.ebuild b/sys-process/atop/atop-2.5.0.ebuild
29 new file mode 100644
30 index 00000000000..001ca080dea
31 --- /dev/null
32 +++ b/sys-process/atop/atop-2.5.0.ebuild
33 @@ -0,0 +1,69 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit linux-info systemd toolchain-funcs
40 +
41 +DESCRIPTION="Resource-specific view of processes"
42 +HOMEPAGE="https://www.atoptool.nl/ https://github.com/Atoptool/atop"
43 +SRC_URI="https://github.com/Atoptool/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE=""
49 +
50 +RDEPEND="
51 + sys-libs/ncurses:0=
52 + >=sys-process/acct-6.6.4-r1
53 +"
54 +DEPEND="
55 + ${RDEPEND}
56 +"
57 +BDEPEND="
58 + virtual/pkgconfig
59 +"
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${PN}-2.4.0-build.patch
63 + "${FILESDIR}"/${PN}-2.5.0-install_fix.patch
64 +
65 + # taken from upstream.
66 +)
67 +
68 +pkg_pretend() {
69 + if use kernel_linux ; then
70 + CONFIG_CHECK="~BSD_PROCESS_ACCT"
71 + check_extra_config
72 + fi
73 +}
74 +
75 +src_prepare() {
76 + default
77 + tc-export CC PKG_CONFIG
78 + sed -i 's: root : :' atop.cronsysv || die #191926
79 + # prefixify
80 + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile || die
81 +}
82 +
83 +src_install() {
84 + emake DESTDIR="${D}" genericinstall
85 +
86 + # useless -${PV} copies ?
87 + rm "${ED}"/usr/bin/atop*-${PV} || die
88 +
89 + newinitd "${FILESDIR}"/${PN}.rc-r2 ${PN}
90 + newinitd "${FILESDIR}"/atopacct.rc atopacct
91 +
92 + systemd_dounit "${FILESDIR}"/${PN}.service
93 + systemd_dounit "${FILESDIR}"/atopacct.service
94 +
95 + dodoc atop.cronsysv AUTHOR README ${PN}.daily
96 + docompress -x /usr/share/doc/${PF}/${PN}.daily
97 +
98 + insinto /etc/default
99 + newins ${PN}{.default,}
100 +
101 + keepdir /var/log/${PN}
102 +}
103
104 diff --git a/sys-process/atop/files/atop-2.5.0-install_fix.patch b/sys-process/atop/files/atop-2.5.0-install_fix.patch
105 new file mode 100644
106 index 00000000000..b46e88c76f3
107 --- /dev/null
108 +++ b/sys-process/atop/files/atop-2.5.0-install_fix.patch
109 @@ -0,0 +1,31 @@
110 +From 485a453d2ae5700874a57dffc297030254b5ae7c Mon Sep 17 00:00:00 2001
111 +From: BlackEagle <ike.devolder@×××××.com>
112 +Date: Mon, 4 Nov 2019 09:00:54 +0100
113 +Subject: [PATCH] DEFPATH not created so touch fails
114 +
115 +```
116 +touch /build/atop/pkg/atop/etc/default/atop
117 +touch: cannot touch '/build/atop/pkg/atop/etc/default/atop': No such file or directory
118 +```
119 +
120 +Add DEFPATH mkdir in genericinstall to make sure the folder
121 +`$(DESTDIR)/etc/default` exits
122 +
123 +Signed-off-by: BlackEagle <ike.devolder@×××××.com>
124 +---
125 + Makefile | 2 ++
126 + 1 file changed, 2 insertions(+)
127 +
128 +diff --git a/Makefile b/Makefile
129 +index 929b0d7..a662fd6 100644
130 +--- a/Makefile
131 ++++ b/Makefile
132 +@@ -140,6 +140,8 @@ sysvinstall: genericinstall
133 + genericinstall: atop atopacctd atopconvert
134 + if [ ! -d $(DESTDIR)$(LOGPATH) ]; \
135 + then mkdir -p $(DESTDIR)$(LOGPATH); fi
136 ++ if [ ! -d $(DESTDIR)$(DEFPATH) ]; \
137 ++ then mkdir -p $(DESTDIR)$(DEFPATH); fi
138 + if [ ! -d $(DESTDIR)$(BINPATH) ]; \
139 + then mkdir -p $(DESTDIR)$(BINPATH); fi
140 + if [ ! -d $(DESTDIR)$(SBINPATH) ]; \