drop(sys-apps/sysvinit-tools): was only required by dracut < 031

031 includes a shell reimplementation of pidof which is the only tool I
could find that it used from sysvinit.
This commit is contained in:
Michael Marineau 2013-08-03 20:21:14 -04:00
parent 806979675e
commit 07632fc185
5 changed files with 0 additions and 186 deletions

View File

@ -1,5 +0,0 @@
AUX README 295 SHA256 f842d28cd3372d4b96588dd4b6242901a20df404d0a84c9f0e01ce79790d9027 SHA512 be439cc96a7c99e14ac7c7e4c1bbad3857e2147f8896acc991a428e0f7c927090617d69d43ea43a953d9e8637fa1f8b6ed6358a03d85de3f0059d036697eeeb9 WHIRLPOOL da680781443eec7a0e39ca4f1e02d253d0a4ab71d36ae878208ea09cc67cb016bd98addc886280be6237b519fddcabd4a7bf4c659b28d38f45bf9364a354fb79
AUX sysvinit-2.88-makefile.patch 1545 SHA256 34d6ee50be139ad08b620569df11ac6a4cdf3dae737733dda21a716c4064c194 SHA512 d19e260902f69dd19bfaa4f3e415a816388663a7f89b9d102b27f44c5f2d0654b64ab2e5689a20a3975ff0801e4fb96ef7b6737bfb4ba9466ec58c477de322aa WHIRLPOOL bba46046a59969ac2007c3c932bf07646a5ebece72a216990c185b8eeead724e88cd349219ae528060b9c71a5df97d1e3221691cdbb77e16c9522014c836a76d
AUX sysvinit-2.88-selinux.patch 1041 SHA256 e987ab6e478e5b3987ae1c6e338cfc66ae356f704d0c3ea932f9e4335b4986f0 SHA512 46eeb3ab2dd25f314b9f60b2dc8a7da2aa2aafb978953a730ccc36456d240e317930e86df69ce2592cf45978f3307dfc2522b24ae1158e64ff17dfa6ed84dcb8 WHIRLPOOL 4fe319df09759addf9499367a6da47e8effe93ec0a4ba5b7e7b1d0c746b324a303cdc81eb360c81e529faf41260d69e2b4364d6695b390db9dba1e3d1693c872
DIST sysvinit-2.88dsf.tar.bz2 105551 SHA256 60bbc8c1e1792056e23761d22960b30bb13eccc2cabff8c7310a01f4d5df1519 SHA512 0bd8eeb124e84fdfa8e621b05f796804ee69a9076b65f5115826bfa814ac1d5d28d31a5c22ebe77c86a93b2288edf4891adc0afaecc4de656c4ecda8a83807bf WHIRLPOOL f4809e19ea2c72c733d3c09a4964d7a6e67b091d1f1d9ef276515b2f138148bfbf516034d3fb1009289f9520f2fbe9e29687f432bba06fb437ebd6e2b9ef570c
EBUILD sysvinit-tools-2.88-r4.ebuild 1759 SHA256 09f4ca7c8114782e8de706e7d1f8545f93464df3cae573abccd0e9b24007ee4a SHA512 983eda068ba0bd91b5640951ed34688eda70e32d486bce351d5434cdadc113826ff418f64051a37a0dd223427dafe426eb140c49466b867ae7ea98c6019e5b71 WHIRLPOOL 2eeb14a42fd7c81ce5b40a65a196a162bd10f2da7b06cee156fa3c4604e1bdab234322e8da3ddc004492b501659853d475ad0498983af58bff9709dbebbacd75

View File

@ -1,13 +0,0 @@
This is a stripped down version of sysvinit which only
installs the following programs:
/usr/bin/last
/usr/bin/mesg
/usr/bin/wall
/usr/bin/lastb
/sbin/killall5
/sbin/fstab-decode
/bin/pidof
It is made with the only purpose of having a system
with only systemd installed. Use at your own risk.

View File

@ -1,60 +0,0 @@
http://savannah.nongnu.org/bugs/index.php?29758
From 2b7d90f04cdd0e343f413c5c7672615926c02706 Mon Sep 17 00:00:00 2001
From: wfink <wfink@456724a4-4300-0410-8514-c89748c515a2>
Date: Tue, 4 May 2010 07:50:12 +0000
Subject: [PATCH] Fix sysvinit bug #29758
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@87 456724a4-4300-0410-8514-c89748c515a2
diff --git a/src/Makefile b/src/Makefile
index e2b8028..19675c5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -92,9 +92,9 @@ all: $(BIN) $(SBIN) $(USRBIN)
init: LDLIBS += $(INITLIBS) $(STATIC)
init: init.o init_utmp.o
-halt: halt.o ifdown.o hddown.o utmp.o reboot.h
+halt: halt.o ifdown.o hddown.o utmp.o
-last: last.o oldutmp.h
+last: last.o
mesg: mesg.o
@@ -109,7 +109,7 @@ sulogin: sulogin.o
wall: dowall.o wall.o
-shutdown: dowall.o shutdown.o utmp.o reboot.h
+shutdown: dowall.o shutdown.o utmp.o
bootlogd: LDLIBS += -lutil
bootlogd: bootlogd.o
@@ -118,14 +118,22 @@ sulogin.o: CPPFLAGS += $(SELINUX_DEF)
sulogin.o: sulogin.c
init.o: CPPFLAGS += $(SELINUX_DEF)
-init.o: init.c init.h set.h reboot.h initreq.h
+init.o: init.c init.h initreq.h paths.h reboot.h set.h
-utmp.o: utmp.c init.h
+utmp.o:
init_utmp.o: CPPFLAGS += -DINIT_MAIN
-init_utmp.o: utmp.c init.h
+init_utmp.o: utmp.c init.h initreq.h paths.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+utmpdump.o: utmpdump.c oldutmp.h
+
+shutdown.o: shutdown.c paths.h reboot.h initreq.h init.h
+
+halt.o: halt.c reboot.h
+
+last.o: last.c oldutmp.h
+
cleanobjs:
rm -f *.o *.bak

View File

@ -1,38 +0,0 @@
http://svn.savannah.nongnu.org/viewvc?view=rev&root=sysvinit&revision=90
https://bugs.gentoo.org/326697
--- sysvinit/trunk/src/init.c 2010/05/07 15:16:26 89
+++ sysvinit/trunk/src/init.c 2010/05/17 09:44:34 90
@@ -54,10 +54,6 @@
#ifdef WITH_SELINUX
# include <selinux/selinux.h>
-# include <sys/mount.h>
-# ifndef MNT_DETACH /* present in glibc 2.10, missing in 2.7 */
-# define MNT_DETACH 2
-# endif
#endif
#ifdef __i386__
@@ -2872,11 +2868,9 @@
#ifdef WITH_SELINUX
if (getenv("SELINUX_INIT") == NULL) {
- const int rc = mount("proc", "/proc", "proc", 0, 0);
- if (is_selinux_enabled() > 0) {
- putenv("SELINUX_INIT=YES");
- if (rc == 0) umount2("/proc", MNT_DETACH);
+ if (is_selinux_enabled() != 1) {
if (selinux_init_load_policy(&enforce) == 0) {
+ putenv("SELINUX_INIT=YES");
execv(myname, argv);
} else {
if (enforce > 0) {
@@ -2887,7 +2881,6 @@
}
}
}
- if (rc == 0) umount2("/proc", MNT_DETACH);
}
#endif
/* Start booting. */

View File

@ -1,70 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils toolchain-funcs flag-o-matic
MY_PN="sysvinit"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="/sbin/init - parent of all processes"
HOMEPAGE="http://savannah.nongnu.org/projects/sysvinit"
SRC_URI="mirror://nongnu/${MY_PN}/${MY_P}dsf.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="selinux ibm static"
RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )"
DEPEND="${RDEPEND}
virtual/os-headers
!sys-apps/sysvinit"
ONLY_INSTALL_REGEXP="last\\|mesg\\|wall\\|lastb\\|killall5\\|fstab-decode\\|pidof"
S=${WORKDIR}/${MY_P}dsf
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${MY_P}-makefile.patch #319197
epatch "${FILESDIR}"/${MY_P}-selinux.patch #326697
sed -i '/^CPPFLAGS =$/d' src/Makefile
}
src_compile() {
local myconf
tc-export CC
append-lfs-flags
use static && append-ldflags -static
use selinux && myconf=WITH_SELINUX=yes
emake -C src ${myconf} || die
}
src_install() {
emake -C src install ROOT="${D}" || die
find "${D}" -xtype f | grep -v "${ONLY_INSTALL_REGEXP}" | xargs /bin/rm -f
rmdir "${D}"/usr/include
rmdir "${D}"/usr/share/man/man5
dodoc "${FILESDIR}"/README
}
pkg_postinst() {
ewarn "This is an stripped down version of sysvinit which only"
ewarn "installs the following programs:"
ewarn ""
ewarn "/usr/bin/last"
ewarn "/usr/bin/mesg"
ewarn "/usr/bin/wall"
ewarn "/usr/bin/lastb"
ewarn "/sbin/killall5"
ewarn "/sbin/fstab-decode"
ewarn "/bin/pidof"
ewarn ""
ewarn "See: https://bugs.gentoo.org/show_bug.cgi?id=399615"
ewarn ""
ewarn "It is not guaranteed to work, and it will probably eat"
ewarn "your system and make it unusable. Use at your own risk."
}