sys-apps/sysvinit: Revbump to fix bug #573668
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 3 Feb 2016 15:10:31 +0000 (16:10 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 3 Feb 2016 15:13:08 +0000 (16:13 +0100)
Bumped to EAPI-5. Minor ebuild improvements.

Package-Manager: portage-2.2.27
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/sysvinit/files/inittab-2.88
sys-apps/sysvinit/sysvinit-2.88-r9.ebuild [moved from sys-apps/sysvinit/sysvinit-2.88-r8.ebuild with 89% similarity]

index 5328d3054c5db90b2e706a5ac58dc083d26a50e5..ffb1ce3feca1699c1505c5d455cc0360e02ee451 100644 (file)
@@ -8,6 +8,7 @@
 # Modified by:  Martin Schlemmer, <azarah@gentoo.org>
 # Modified by:  Mike Frysinger, <vapier@gentoo.org>
 # Modified by:  Robin H. Johnson, <robbat2@gentoo.org>
+# Modified by:  William Hubbs, <williamh@gentoo.org>
 #
 # $Id$
 
@@ -36,7 +37,7 @@ su0:S:wait:/sbin/openrc single
 su1:S:wait:/sbin/sulogin
 
 # TERMINALS
-x1:12345:respawn:/sbin/agetty 38400 console linux
+#x1:12345:respawn:/sbin/agetty 38400 console linux
 c1:12345:respawn:/sbin/agetty 38400 tty1 linux
 c2:2345:respawn:/sbin/agetty 38400 tty2 linux
 c3:2345:respawn:/sbin/agetty 38400 tty3 linux
similarity index 89%
rename from sys-apps/sysvinit/sysvinit-2.88-r8.ebuild
rename to sys-apps/sysvinit/sysvinit-2.88-r9.ebuild
index acc8a8dc7420d46d2f0d752a5f5149612a9dd94b..a6b30a3ee304ede5e8266cc336c2be392917e934 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="4"
+EAPI=5
 
 inherit eutils toolchain-funcs flag-o-matic
 
@@ -27,12 +27,16 @@ RDEPEND="${CDEPEND}
 
 S=${WORKDIR}/${P}dsf
 
+PATCHES=(
+       "${FILESDIR}/${PN}-2.86-kexec.patch" #80220
+       "${FILESDIR}/${PN}-2.86-shutdown-single.patch" #158615
+       "${FILESDIR}/${P}-makefile.patch" #319197
+       "${FILESDIR}/${P}-selinux.patch" #326697
+       "${FILESDIR}/${P}-shutdown-h.patch" #449354
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-2.86-kexec.patch #80220
-       epatch "${FILESDIR}"/${PN}-2.86-shutdown-single.patch #158615
-       epatch "${FILESDIR}"/${P}-makefile.patch #319197
-       epatch "${FILESDIR}"/${P}-selinux.patch #326697
-       epatch "${FILESDIR}"/${P}-shutdown-h.patch #449354
+       epatch "${PATCHES[@]}"
        sed -i '/^CPPFLAGS =$/d' src/Makefile || die
 
        # last/lastb/mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux
@@ -99,7 +103,7 @@ src_install() {
        doins "${WORKDIR}"/inittab
 
        # dead symlink
-       rm -f "${D}"/usr/bin/lastb
+       rm "${D}"/usr/bin/lastb || die
 }
 
 pkg_postinst() {