Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/needrestart/
Date: Thu, 07 Jul 2016 09:04:52
Message-Id: 1467875968.d068491162cd182e4227326322c11bf886279be1.monsieurp@gentoo
1 commit: d068491162cd182e4227326322c11bf886279be1
2 Author: Craig Andrews <candrews <AT> integralblue <DOT> com>
3 AuthorDate: Mon Jul 4 18:00:38 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 7 07:19:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0684911
7
8 app-admin/needrestart: Add ebuild to the tree.
9
10 needrestart checks which daemons need to be restarted after library upgrades.
11 It is inspired by checkrestart from the debian-goodies package.
12
13 needrestart supports but does not require systemd. If systemd is not available
14 or does not return a service name needrestart uses hooks to identify the
15 corresponding System V init script. If a process inside a container (LXC,
16 docker) it suggests to restart the entire container. needrestart contains a
17 heuristic for different interpreter languages: it tries to detect if outdated
18 script code/modules are in use (Java, Perl, Python, Ruby).
19
20 Gentoo-Bug: https://bugs.gentoo.org/588010
21 Closes: https://github.com/gentoo/gentoo/pull/1825
22
23 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
24
25 app-admin/needrestart/Manifest | 1 +
26 app-admin/needrestart/metadata.xml | 18 +++++++++++++
27 app-admin/needrestart/needrestart-2.8.ebuild | 37 +++++++++++++++++++++++++++
28 app-admin/needrestart/needrestart-9999.ebuild | 37 +++++++++++++++++++++++++++
29 4 files changed, 93 insertions(+)
30
31 diff --git a/app-admin/needrestart/Manifest b/app-admin/needrestart/Manifest
32 new file mode 100644
33 index 0000000..9c2af10
34 --- /dev/null
35 +++ b/app-admin/needrestart/Manifest
36 @@ -0,0 +1 @@
37 +DIST v2.8.tar.gz 46420 SHA256 33b4f734335987557c68a8c57ea070ac4d23a249fa8675260f0bc28769056cc8 SHA512 2a6e5616a412039e9057a655208a7c55ed611d0deee5ba4c1d25563bb2610bcbf2b6d2534b906fd729db2eee5b3891fdb3fd3bc647f4d6aa06e2a87173b69be7 WHIRLPOOL 4f9daf45ca1a034d6476cf0b387174665d6bf15a4f36cb86e565d6b3715227bf8f7e27f6af422b1ef53c4b07a76d7b36eea0852e2db2a9032679ecc0b04bfc15
38
39 diff --git a/app-admin/needrestart/metadata.xml b/app-admin/needrestart/metadata.xml
40 new file mode 100644
41 index 0000000..f37a51d
42 --- /dev/null
43 +++ b/app-admin/needrestart/metadata.xml
44 @@ -0,0 +1,18 @@
45 +<?xml version="1.0" encoding="UTF-8"?>
46 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
47 +<pkgmetadata>
48 + <maintainer type="person">
49 + <email>candrews@××××××××××××.com</email>
50 + <name>Craig Andrews</name>
51 + <description>Proxied maintainer; set to assignee in all bugs</description>
52 + </maintainer>
53 + <maintainer type="project">
54 + <email>proxy-maint@g.o</email>
55 + <name>Proxy Maintainers</name>
56 + </maintainer>
57 + <use>
58 + </use>
59 + <longdescription lang="en">
60 + Restart daemons after library updates
61 + </longdescription>
62 +</pkgmetadata>
63
64 diff --git a/app-admin/needrestart/needrestart-2.8.ebuild b/app-admin/needrestart/needrestart-2.8.ebuild
65 new file mode 100644
66 index 0000000..4072301
67 --- /dev/null
68 +++ b/app-admin/needrestart/needrestart-2.8.ebuild
69 @@ -0,0 +1,37 @@
70 +# Copyright 1999-2016 Gentoo Foundation
71 +# Distributed under the terms of the GNU General Public License v2
72 +# $Id$
73 +
74 +EAPI=6
75 +
76 +if [[ ${PV} == "9999" ]] ; then
77 + EGIT_REPO_URI="git://github.com/liske/${PN}.git"
78 + inherit git-r3
79 + SRC_URI=""
80 + KEYWORDS=""
81 +else
82 + SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz"
83 + KEYWORDS="~amd64 ~x86"
84 +fi
85 +
86 +DESCRIPTION="Restart daemons after library updates"
87 +HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart"
88 +
89 +SLOT="0"
90 +LICENSE="GPL-2"
91 +
92 +RDEPEND="
93 + dev-perl/Module-Find
94 + dev-perl/Module-ScanDeps
95 + dev-perl/Proc-ProcessTable
96 + dev-perl/Sort-Naturally
97 + dev-perl/Term-ProgressBar-Simple
98 +"
99 +DEPEND="${RDEPEND}
100 +"
101 +
102 +src_install() {
103 + default
104 + doman man/*.1
105 + dodoc -r ex
106 +}
107
108 diff --git a/app-admin/needrestart/needrestart-9999.ebuild b/app-admin/needrestart/needrestart-9999.ebuild
109 new file mode 100644
110 index 0000000..4072301
111 --- /dev/null
112 +++ b/app-admin/needrestart/needrestart-9999.ebuild
113 @@ -0,0 +1,37 @@
114 +# Copyright 1999-2016 Gentoo Foundation
115 +# Distributed under the terms of the GNU General Public License v2
116 +# $Id$
117 +
118 +EAPI=6
119 +
120 +if [[ ${PV} == "9999" ]] ; then
121 + EGIT_REPO_URI="git://github.com/liske/${PN}.git"
122 + inherit git-r3
123 + SRC_URI=""
124 + KEYWORDS=""
125 +else
126 + SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz"
127 + KEYWORDS="~amd64 ~x86"
128 +fi
129 +
130 +DESCRIPTION="Restart daemons after library updates"
131 +HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart"
132 +
133 +SLOT="0"
134 +LICENSE="GPL-2"
135 +
136 +RDEPEND="
137 + dev-perl/Module-Find
138 + dev-perl/Module-ScanDeps
139 + dev-perl/Proc-ProcessTable
140 + dev-perl/Sort-Naturally
141 + dev-perl/Term-ProgressBar-Simple
142 +"
143 +DEPEND="${RDEPEND}
144 +"
145 +
146 +src_install() {
147 + default
148 + doman man/*.1
149 + dodoc -r ex
150 +}