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: Wed, 02 Aug 2017 12:56:40
Message-Id: 1501678591.364a9e317ce981f01c28e374a55aac8ee960fe84.polynomial-c@gentoo
1 commit: 364a9e317ce981f01c28e374a55aac8ee960fe84
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 2 12:53:00 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 2 12:56:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=364a9e31
7
8 sys-process/atop: Bump to version 2.3.0
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 sys-process/atop/Manifest | 4 +++
13 sys-process/atop/atop-2.3.0.ebuild | 63 ++++++++++++++++++++++++++++++++++++++
14 sys-process/atop/files/atop.rc-r2 | 8 +++++
15 3 files changed, 75 insertions(+)
16
17 diff --git a/sys-process/atop/Manifest b/sys-process/atop/Manifest
18 index dedcd00a971..6503a777da6 100644
19 --- a/sys-process/atop/Manifest
20 +++ b/sys-process/atop/Manifest
21 @@ -2,3 +2,7 @@ DIST atop-1.27-3.tar.gz 159521 SHA256 bce36e0b50f0e03995d86d25dbc9ab4a289f6755ce
22 DIST atop-2.0.2.tar.gz 166887 SHA256 a620dbe0de7c7ee004949b201bed27559a8dd6cbdee651c7a3e15fc584723409 SHA512 c02b1c2ebf5c49fb0ad17bbcf0b86af8e5623c8d0b6ba8b1096d9b592cbb358e011933142cdebc90f619221785e859aaa009a338f3682d8bfa4340a50b308471 WHIRLPOOL 1f650210c7f0d79545ad268d5482f950d080aaff51a6045fa710ffc4c359f786cf27ebf88a1dfca87a402b63f8ea9dc7d0542e1949096744a30ca3620708e575
23 DIST atop-2.1-1.tar.gz 181301 SHA256 39a2d4febc338dd4147904b1496d1aa9513da0d22ad0602b66023452bdc7989f SHA512 89b33c9a299213faa42c8ee4393c9588c0dbe7940f8709a617d51d6202525a7e7385299242c8c032d573dea9fa631e705d8edfb4685414d35169b773e1290613 WHIRLPOOL 9f02afd797d25a28e873c25f6f03a2607628d60a7ef493b034a63707bc4b5fcd7d4d2d2f2c18b69312f19c5104639176e4816ebfd7282d53dd819786e45280d5
24 DIST atop-2.2-3.tar.gz 194168 SHA256 c785b8a2355be28b3de6b58a8ea4c4fcab8fadeaa57a99afeb03c66fac8e055d SHA512 34076e35004367bbfd63f3aac1e786dab566633799b5d4f2c4d45f343642d145027f6298aa40d5e83c1356f502e3c51faa58da07cea58f2960bfacd78cf77915 WHIRLPOOL 2798ebaf5affc9d929a0b5663c1caa6d64a52e00d20f496373f34e48c592fe168c8c20c9df3c309a3057f9eb7baa3409f2cbfbedf110adb9fef51d0774d8d3e2
25 +DIST atop-2.3.0-netatop_h.patch 3279 SHA256 e7d39b71c3eb6b94e358358267caca063a6e1c9e00dacdeaab1cfc9ca3ceff2e SHA512 9b84adf3e740eca5e42199bb3e9e65e08ffb07f60e7c02d04b73cfe4b63a4f563991a797def5826ba10a32c78d2363ebe9b4e41d12cf9e7118e3eb82d259c31b WHIRLPOOL 8246ba30bb4268b7b3df25d8d8727c145d6aa8889f93ef0b0a3e07a63122eb25c31552e970ac92c3a3c3bf12b1b57e9d698cd50aa07ff8f8f5d8851131866e18
26 +DIST atop-2.3.0-version_c.patch 1537 SHA256 ea8620eee1557ddd932edcca0d696be4549d7b7b2c9417ff263d822155cb8d0a SHA512 48589cb29cc969c25d0dbc5c5237200b28af6f1b5daf478abdd52079360938887f9de0fa4a379479c5bf8f3ba31946eba5aae19fe3246f36e82a132708840373 WHIRLPOOL 3c8bbbce2a7fc947a7f4eddfe7160d35a5d765d3f0a4680098d157d7c4030881cde6fe236ef321a17294db1a21e0a8c5b992b030b8514ef921eaaccb5a3c115d
27 +DIST atop-2.3.0-version_h.patch 748 SHA256 c0acbb67080ab66f243c4c56f57030f51851ca816cc2f3945c775c90a347e2a8 SHA512 79ea49421e9bd82322cae26148d608560910a3d2e089228d2218d93744dcba8398058dd75255b64d15301c8bc4bde1dd6e15b6c6949a01534557b24b3d79089d WHIRLPOOL 51f325f5a72d090c017487f783a4882ff8e82d4b25dd5ea48c7f1c5b8332acb1e03ef1fa7a1aca77d15d74772bc5979fbde1b83397814cceadd5848c3b698a09
28 +DIST atop-2.3.0.tar.gz 190560 SHA256 9af5d8ea1f1d2b1ff6e85dd666d294e213b7c39c66d8a7a796665061cdbf6c01 SHA512 8347f480b3e8f957be9aa8982b9c69c5fbc59b8a32044662995495cc2218de48342788aae40538d2ad67d402c8c470d0514261791ead70303f97221ea6983621 WHIRLPOOL a0cb664edee0fb7750993db6885880f3eae25e079358a26cd0bab7ec0a45d1a18e6601e59e78e610b97bf0aacbb923463bcee2935a3b913af53e48d84d508cdc
29
30 diff --git a/sys-process/atop/atop-2.3.0.ebuild b/sys-process/atop/atop-2.3.0.ebuild
31 new file mode 100644
32 index 00000000000..373ca36e8d6
33 --- /dev/null
34 +++ b/sys-process/atop/atop-2.3.0.ebuild
35 @@ -0,0 +1,63 @@
36 +# Copyright 1999-2017 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +inherit linux-mod systemd toolchain-funcs
42 +
43 +DESCRIPTION="Resource-specific view of processes"
44 +HOMEPAGE="https://www.atoptool.nl/ https://github.com/Atoptool/atop"
45 +SRC_URI="https://github.com/Atoptool/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +# Tarballs lacks version.{c,h} files
48 +SRC_URI+=" https://github.com/Atoptool/atop/commit/42e86fcc42ce60f8c92f3c7d5f3a6ccde47c0b33.patch -> ${PN}-2.3.0-version_h.patch"
49 +SRC_URI+=" https://github.com/Atoptool/atop/commit/a8d850d06efc8d70a19f55ec93fe83df51e99077.patch -> ${PN}-2.3.0-version_c.patch"
50 +SRC_URI+=" https://github.com/Atoptool/atop/commit/5f101e656a24271726d1e9cd672631b6033c36c1.patch -> ${PN}-2.3.0-netatop_h.patch"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
55 +IUSE=""
56 +
57 +RDEPEND="
58 + sys-libs/ncurses:0=
59 + sys-process/acct
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 + virtual/pkgconfig
64 +"
65 +
66 +PATCHES=(
67 + "${FILESDIR}"/${PN}-2.2-build.patch
68 + "${FILESDIR}"/${PN}-2.2-sysmacros.patch #580372
69 +
70 + # taken from upstream.
71 + "${DISTDIR}"/${P}-version_{h,c}.patch
72 + "${DISTDIR}"/${P}-netatop_h.patch
73 +)
74 +
75 +pkg_pretend() {
76 + if use kernel_linux ; then
77 + CONFIG_CHECK="BSD_PROCESS_ACCT"
78 + fi
79 +}
80 +
81 +src_prepare() {
82 + default
83 + tc-export CC PKG_CONFIG
84 + sed -i 's: root : :' atop.cronsysv || die #191926
85 + # prefixify
86 + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile
87 +}
88 +
89 +src_install() {
90 + emake DESTDIR="${D}" genericinstall
91 + # useless -${PV} copies ?
92 + rm -f "${ED%/}"/usr/bin/atop*-${PV}
93 + newinitd "${FILESDIR}"/${PN}.rc-r2 ${PN}
94 + newinitd "${FILESDIR}"/atopacct.rc atopacct
95 + systemd_dounit "${FILESDIR}"/${PN}.service
96 + systemd_dounit "${FILESDIR}"/atopacct.service
97 + dodoc atop.cronsysv AUTHOR README
98 +}
99
100 diff --git a/sys-process/atop/files/atop.rc-r2 b/sys-process/atop/files/atop.rc-r2
101 new file mode 100644
102 index 00000000000..ce66821dbdd
103 --- /dev/null
104 +++ b/sys-process/atop/files/atop.rc-r2
105 @@ -0,0 +1,8 @@
106 +#!/sbin/openrc-run
107 +# Copyright 1999-2017 Gentoo Foundation
108 +# Distributed under the terms of the GNU General Public License v2
109 +
110 +description="Resource-specific view of processes"
111 +pidfile="/var/run/atop.pid"
112 +command="/usr/share/atop/atop.daily"
113 +command_background="true"