summaryrefslogtreecommitdiff
path: root/app-admin/checkrestart
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/checkrestart')
-rw-r--r--app-admin/checkrestart/Manifest1
-rw-r--r--app-admin/checkrestart/checkrestart-0.47-r3.ebuild38
-rw-r--r--app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch11
-rw-r--r--app-admin/checkrestart/metadata.xml7
4 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/checkrestart/Manifest b/app-admin/checkrestart/Manifest
new file mode 100644
index 00000000000..c1525295c58
--- /dev/null
+++ b/app-admin/checkrestart/Manifest
@@ -0,0 +1 @@
+DIST checkrestart-0.47-sep.tar.bz2 5888 SHA256 e80c89b8e2b082c4e2050a45dbdd375c6ef68dd91bdb000ae701359d0d04558e SHA512 7fe91a3e4c8a0ff09ff19d3d521739e2e289dc45be0def0000e1036cb964916f84ed2beb902fe0558ae999c5e34ecdc891a168342cc8e3ab967254e65c26dd20 WHIRLPOOL 12bcce4e273aeaa2f486d8b225aaf9e1c7eb1336fe77b8b9b6f7cbf6358560c0dc5b9063ef516baca53fe861541fc15553816a5d1d21d9a8f9ccae2276d345c1
diff --git a/app-admin/checkrestart/checkrestart-0.47-r3.ebuild b/app-admin/checkrestart/checkrestart-0.47-r3.ebuild
new file mode 100644
index 00000000000..f23c26852cd
--- /dev/null
+++ b/app-admin/checkrestart/checkrestart-0.47-r3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="the sysadmin's rolling upgrade tool"
+HOMEPAGE="http://arcdraco.net/checkrestart"
+SRC_URI="http://arcdraco.net/~dragon/${P}-sep.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~x86"
+IUSE=""
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ sys-apps/lsb-release
+ app-portage/portage-utils
+ sys-process/lsof
+"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-list-comprehension-fix.patch
+ python_fix_shebang ${PN}
+}
+
+src_install() {
+ dosbin ${PN}
+}
diff --git a/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch b/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch
new file mode 100644
index 00000000000..f22f0b9e50c
--- /dev/null
+++ b/app-admin/checkrestart/files/checkrestart-0.47-list-comprehension-fix.patch
@@ -0,0 +1,11 @@
+--- a/checkrestart
++++ b/checkrestart
+@@ -216,7 +216,7 @@
+ package.initscripts.append(path)
+
+ # Remove duplicate inits
+- package.initscripts = [ u for u in package.initscripts if u not in locals()['_[1]'] ]
++ package.initscripts = list(set(package.initscripts))
+
+ restartable = []
+ nonrestartable = []
diff --git a/app-admin/checkrestart/metadata.xml b/app-admin/checkrestart/metadata.xml
new file mode 100644
index 00000000000..1470e032181
--- /dev/null
+++ b/app-admin/checkrestart/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>