diff options
Diffstat (limited to 'app-admin/needrestart')
-rw-r--r-- | app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch | 24 | ||||
-rw-r--r-- | app-admin/needrestart/needrestart-3.1-r1.ebuild | 45 |
2 files changed, 69 insertions, 0 deletions
diff --git a/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch b/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch new file mode 100644 index 000000000000..6b8c221098b3 --- /dev/null +++ b/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch @@ -0,0 +1,24 @@ +From bbd98c32fb5d33f42d1b9257f55a07d62b8de164 Mon Sep 17 00:00:00 2001 +From: Craig Andrews <candrews@integralblue.com> +Date: Mon, 7 May 2018 11:28:33 -0400 +Subject: [PATCH] [Kernel] Include /boot/kernel* while looking for linux kernel + images + +Fixes kernel detection on Gentoo +--- + perl/lib/NeedRestart/Kernel/Linux.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/perl/lib/NeedRestart/Kernel/Linux.pm b/perl/lib/NeedRestart/Kernel/Linux.pm +index 6f284f3..69a919c 100644 +--- a/perl/lib/NeedRestart/Kernel/Linux.pm ++++ b/perl/lib/NeedRestart/Kernel/Linux.pm +@@ -131,7 +131,7 @@ sub nr_kernel_check_real($$) { + } grep { + # filter initrd images + (!m@^/boot/init@); +- } (</boot/vmlinu*>, </boot/*.img>); ++ } (</boot/vmlinu*>, </boot/*.img>, </boot/kernel*>); + + $ui->progress_prep(scalar keys %kfiles, __ 'Scanning linux images...'); + diff --git a/app-admin/needrestart/needrestart-3.1-r1.ebuild b/app-admin/needrestart/needrestart-3.1-r1.ebuild new file mode 100644 index 000000000000..d3e017750bdd --- /dev/null +++ b/app-admin/needrestart/needrestart-3.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/liske/${PN}.git" + inherit git-r3 + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz -> ${P}.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=" + >=sys-apps/sed-4.2.2 + dev-lang/perl:= + dev-perl/libintl-perl + dev-perl/Module-Find + dev-perl/Module-ScanDeps + dev-perl/Proc-ProcessTable + dev-perl/Sort-Naturally + dev-perl/TermReadKey + sys-apps/init-system-helpers +" +DEPEND="${RDEPEND} + sys-devel/gettext +" + +PATCHES=( + "${FILESDIR}/${P}-gentoo-kernel-detection.patch" +) + +src_install() { + default + doman man/*.1 + dodoc -r ex +} |