From d068491162cd182e4227326322c11bf886279be1 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Mon, 4 Jul 2016 14:00:38 -0400 Subject: app-admin/needrestart: Add ebuild to the tree. needrestart checks which daemons need to be restarted after library upgrades. It is inspired by checkrestart from the debian-goodies package. needrestart supports but does not require systemd. If systemd is not available or does not return a service name needrestart uses hooks to identify the corresponding System V init script. If a process inside a container (LXC, docker) it suggests to restart the entire container. needrestart contains a heuristic for different interpreter languages: it tries to detect if outdated script code/modules are in use (Java, Perl, Python, Ruby). Gentoo-Bug: https://bugs.gentoo.org/588010 Closes: https://github.com/gentoo/gentoo/pull/1825 Signed-off-by: Patrice Clement --- app-admin/needrestart/Manifest | 1 + app-admin/needrestart/metadata.xml | 18 +++++++++++++ app-admin/needrestart/needrestart-2.8.ebuild | 37 +++++++++++++++++++++++++++ app-admin/needrestart/needrestart-9999.ebuild | 37 +++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 app-admin/needrestart/Manifest create mode 100644 app-admin/needrestart/metadata.xml create mode 100644 app-admin/needrestart/needrestart-2.8.ebuild create mode 100644 app-admin/needrestart/needrestart-9999.ebuild (limited to 'app-admin/needrestart') diff --git a/app-admin/needrestart/Manifest b/app-admin/needrestart/Manifest new file mode 100644 index 000000000000..9c2af10d3559 --- /dev/null +++ b/app-admin/needrestart/Manifest @@ -0,0 +1 @@ +DIST v2.8.tar.gz 46420 SHA256 33b4f734335987557c68a8c57ea070ac4d23a249fa8675260f0bc28769056cc8 SHA512 2a6e5616a412039e9057a655208a7c55ed611d0deee5ba4c1d25563bb2610bcbf2b6d2534b906fd729db2eee5b3891fdb3fd3bc647f4d6aa06e2a87173b69be7 WHIRLPOOL 4f9daf45ca1a034d6476cf0b387174665d6bf15a4f36cb86e565d6b3715227bf8f7e27f6af422b1ef53c4b07a76d7b36eea0852e2db2a9032679ecc0b04bfc15 diff --git a/app-admin/needrestart/metadata.xml b/app-admin/needrestart/metadata.xml new file mode 100644 index 000000000000..f37a51df4ac1 --- /dev/null +++ b/app-admin/needrestart/metadata.xml @@ -0,0 +1,18 @@ + + + + + candrews@integralblue.com + Craig Andrews + Proxied maintainer; set to assignee in all bugs + + + proxy-maint@gentoo.org + Proxy Maintainers + + + + + Restart daemons after library updates + + diff --git a/app-admin/needrestart/needrestart-2.8.ebuild b/app-admin/needrestart/needrestart-2.8.ebuild new file mode 100644 index 000000000000..40723015663d --- /dev/null +++ b/app-admin/needrestart/needrestart-2.8.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/liske/${PN}.git" + inherit git-r3 + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Restart daemons after library updates" +HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart" + +SLOT="0" +LICENSE="GPL-2" + +RDEPEND=" + dev-perl/Module-Find + dev-perl/Module-ScanDeps + dev-perl/Proc-ProcessTable + dev-perl/Sort-Naturally + dev-perl/Term-ProgressBar-Simple +" +DEPEND="${RDEPEND} +" + +src_install() { + default + doman man/*.1 + dodoc -r ex +} diff --git a/app-admin/needrestart/needrestart-9999.ebuild b/app-admin/needrestart/needrestart-9999.ebuild new file mode 100644 index 000000000000..40723015663d --- /dev/null +++ b/app-admin/needrestart/needrestart-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/liske/${PN}.git" + inherit git-r3 + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Restart daemons after library updates" +HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart" + +SLOT="0" +LICENSE="GPL-2" + +RDEPEND=" + dev-perl/Module-Find + dev-perl/Module-ScanDeps + dev-perl/Proc-ProcessTable + dev-perl/Sort-Naturally + dev-perl/Term-ProgressBar-Simple +" +DEPEND="${RDEPEND} +" + +src_install() { + default + doman man/*.1 + dodoc -r ex +} -- cgit v1.2.3-65-gdbad