summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-08-10 08:52:55 +0000
committerRoy Marples <uberlord@gentoo.org>2007-08-10 08:52:55 +0000
commit79c1ceb0b160cc4f07ffd045d008f85c3b9aa972 (patch)
tree93a0033c78ce33cf4c2f63537a2d2a66ede95959 /sys-apps/sysvinit
parentVersion bump, had to drop ~ppc keyword (diff)
downloadhistorical-79c1ceb0b160cc4f07ffd045d008f85c3b9aa972.tar.gz
historical-79c1ceb0b160cc4f07ffd045d008f85c3b9aa972.tar.bz2
historical-79c1ceb0b160cc4f07ffd045d008f85c3b9aa972.zip
Fixup inittab for kFreeBSD support, #121786.
Write utmp sanely on SMP systems, #188262 thanks to Gil Kloepfer. Package-Manager: portage-2.1.3.3
Diffstat (limited to 'sys-apps/sysvinit')
-rw-r--r--sys-apps/sysvinit/ChangeLog9
-rw-r--r--sys-apps/sysvinit/Manifest40
-rw-r--r--sys-apps/sysvinit/files/digest-sysvinit-2.86-r66
-rw-r--r--sys-apps/sysvinit/files/digest-sysvinit-2.86-r76
-rw-r--r--sys-apps/sysvinit/files/digest-sysvinit-2.86-r9 (renamed from sys-apps/sysvinit/files/digest-sysvinit-2.86-r5)0
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch45
-rw-r--r--sys-apps/sysvinit/sysvinit-2.86-r5.ebuild93
-rw-r--r--sys-apps/sysvinit/sysvinit-2.86-r6.ebuild95
-rw-r--r--sys-apps/sysvinit/sysvinit-2.86-r9.ebuild (renamed from sys-apps/sysvinit/sysvinit-2.86-r7.ebuild)28
9 files changed, 86 insertions, 236 deletions
diff --git a/sys-apps/sysvinit/ChangeLog b/sys-apps/sysvinit/ChangeLog
index fec40c941e54..0c207ab1c379 100644
--- a/sys-apps/sysvinit/ChangeLog
+++ b/sys-apps/sysvinit/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/sysvinit
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.52 2007/05/11 03:28:01 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.53 2007/08/10 08:52:55 uberlord Exp $
+
+*sysvinit-2.86-r9 (10 Aug 2007)
+
+ 10 Aug 2007; Roy Marples <uberlord@gentoo.org>
+ +files/sysvinit-2.86-utmp-smp.patch, +sysvinit-2.86-r9.ebuild:
+ Fixup inittab for kFreeBSD support, #121786.
+ Write utmp sanely on SMP systems, #188262 thanks to Gil Kloepfer.
11 May 2007; Joshua Kinard <kumba@gentoo.org> sysvinit-2.86-r8.ebuild:
Stable on mips.
diff --git a/sys-apps/sysvinit/Manifest b/sys-apps/sysvinit/Manifest
index d46c60789455..5216077f057b 100644
--- a/sys-apps/sysvinit/Manifest
+++ b/sys-apps/sysvinit/Manifest
@@ -58,41 +58,31 @@ AUX sysvinit-2.86-utmp-64bit.patch 1112 RMD160 9ba2959e6375bee10e00ba9be9cd22d5e
MD5 eff3665594ef25bf70220d6cf0c84dcb files/sysvinit-2.86-utmp-64bit.patch 1112
RMD160 9ba2959e6375bee10e00ba9be9cd22d5e0103007 files/sysvinit-2.86-utmp-64bit.patch 1112
SHA256 2126f4c0e1512b133da8d629691b5dc52c730e188b5790cb4e3c681e3912e03e files/sysvinit-2.86-utmp-64bit.patch 1112
+AUX sysvinit-2.86-utmp-smp.patch 1546 RMD160 96907658206fb6594ad7cf379cb6d716df0f779f SHA1 4aab3e3afe85933ec8e2ecae1b9fc6e8018cb18a SHA256 4d1e59b1d039f56bf717999da681f02584a6f259cc9018f11f4eb58d0db66ac0
+MD5 131262785c30bae7fc3593bba6c05004 files/sysvinit-2.86-utmp-smp.patch 1546
+RMD160 96907658206fb6594ad7cf379cb6d716df0f779f files/sysvinit-2.86-utmp-smp.patch 1546
+SHA256 4d1e59b1d039f56bf717999da681f02584a6f259cc9018f11f4eb58d0db66ac0 files/sysvinit-2.86-utmp-smp.patch 1546
DIST sysvinit-2.86-kexec.patch 4139 RMD160 5f8e9ccd3a39701cf47a1a541c78a4be971d46fc SHA1 5dc952d6b1585c926a67f11eeee835e56aeea5b0 SHA256 936245ef3060939bec3099efc006009336b3672422c1de41983b277ab5ddac47
DIST sysvinit-2.86.tar.gz 99009 RMD160 46587ab51390b5c8cd3179a3690f86efdbe9b4b9 SHA1 3e78df609a2ff0fea6304cb662a7f10298d03667 SHA256 035f98fae17d9cff002993c564ccc83dc4ed136127172caeff872b6abdb679d8
-EBUILD sysvinit-2.86-r5.ebuild 3220 RMD160 c9796fcdce8a48fcfdd2d3940f6a0a3f146a8dc7 SHA1 67d9938b4550ca37c1279ebe7a7b7e9339fcb41e SHA256 fbbee1f68bf83849c64957ca47074dc2867ca91914e3afe62e0eef4ae0b7d90f
-MD5 ba4af4acc13ac37e250f1ccfac094692 sysvinit-2.86-r5.ebuild 3220
-RMD160 c9796fcdce8a48fcfdd2d3940f6a0a3f146a8dc7 sysvinit-2.86-r5.ebuild 3220
-SHA256 fbbee1f68bf83849c64957ca47074dc2867ca91914e3afe62e0eef4ae0b7d90f sysvinit-2.86-r5.ebuild 3220
-EBUILD sysvinit-2.86-r6.ebuild 3282 RMD160 ce428dde41e2de1669fb29b7b2b9bb4e622c6d83 SHA1 d5aed63ec8d231f21ae0af71156635ce667d1227 SHA256 84f3a2c95745f25aede804c8c679ef53893e45a40427a89bf7df32cc3b8b5ed0
-MD5 b400edeb65adebb9fa214f6d6e999674 sysvinit-2.86-r6.ebuild 3282
-RMD160 ce428dde41e2de1669fb29b7b2b9bb4e622c6d83 sysvinit-2.86-r6.ebuild 3282
-SHA256 84f3a2c95745f25aede804c8c679ef53893e45a40427a89bf7df32cc3b8b5ed0 sysvinit-2.86-r6.ebuild 3282
-EBUILD sysvinit-2.86-r7.ebuild 3320 RMD160 4dca8a4100763eea0cdfc980cc9fd3c9dafb6728 SHA1 971d21ef811e2a09aeeeaca79935f05a0eafb077 SHA256 a9d806173d56bec3355d854cebe43386f4976b32e22713c504aeb73cbf303104
-MD5 b31ead1e0e1449391f447e6cfed8329d sysvinit-2.86-r7.ebuild 3320
-RMD160 4dca8a4100763eea0cdfc980cc9fd3c9dafb6728 sysvinit-2.86-r7.ebuild 3320
-SHA256 a9d806173d56bec3355d854cebe43386f4976b32e22713c504aeb73cbf303104 sysvinit-2.86-r7.ebuild 3320
EBUILD sysvinit-2.86-r8.ebuild 3384 RMD160 188408ead9172bc41c4fd5f7fd1e396f45828c77 SHA1 631b61aa921d12f9aeac8e60d369dd148a8c1ac5 SHA256 84a0edd9271b657772a37c6f471c4ac29402653c6b5568c5c8bdebd8366baedd
MD5 95dd75c427d3473456b382e5ee2d0864 sysvinit-2.86-r8.ebuild 3384
RMD160 188408ead9172bc41c4fd5f7fd1e396f45828c77 sysvinit-2.86-r8.ebuild 3384
SHA256 84a0edd9271b657772a37c6f471c4ac29402653c6b5568c5c8bdebd8366baedd sysvinit-2.86-r8.ebuild 3384
-MISC ChangeLog 7647 RMD160 284b687cbc8c68dc1b582cd3c1c41696573133c2 SHA1 8d360bc8ddd1fe31c0b3b3b62bc79a29f32fd1d3 SHA256 b1568d3b0bd8df2d29381c582e8032bbfb634e35c05f4c62df6456497a69d568
-MD5 a77d3f1d458c243f526474a5001676d5 ChangeLog 7647
-RMD160 284b687cbc8c68dc1b582cd3c1c41696573133c2 ChangeLog 7647
-SHA256 b1568d3b0bd8df2d29381c582e8032bbfb634e35c05f4c62df6456497a69d568 ChangeLog 7647
+EBUILD sysvinit-2.86-r9.ebuild 3565 RMD160 de701ba31280a9f78687ef28a7845ad54a034c30 SHA1 63f4ebd090d0e971d99fa1714e6c896d50d5eb21 SHA256 255633888482607392374d4cb3338a90000c2c61f38add286bb98c9eafca2c04
+MD5 ee1e4faa72bf141d5f5cd2e12966d2f0 sysvinit-2.86-r9.ebuild 3565
+RMD160 de701ba31280a9f78687ef28a7845ad54a034c30 sysvinit-2.86-r9.ebuild 3565
+SHA256 255633888482607392374d4cb3338a90000c2c61f38add286bb98c9eafca2c04 sysvinit-2.86-r9.ebuild 3565
+MISC ChangeLog 7913 RMD160 5be441d28677370b3ec0ba675d3c0f2905a42290 SHA1 ba73c49a405a3f6697f5c793dc77d2b1801fee94 SHA256 5b15e9e824d96be8327a5d62d5b6c75b90ad03b357aa39c5540960a6b391e456
+MD5 451e140be13fb2bd54fd1855f10d7560 ChangeLog 7913
+RMD160 5be441d28677370b3ec0ba675d3c0f2905a42290 ChangeLog 7913
+SHA256 5b15e9e824d96be8327a5d62d5b6c75b90ad03b357aa39c5540960a6b391e456 ChangeLog 7913
MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 metadata.xml 164
SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 metadata.xml 164
-MD5 a0a89857120e374f52bb610074e602f7 files/digest-sysvinit-2.86-r5 488
-RMD160 586ea36bc8586bf1f30e9a51715e6ab520a798ac files/digest-sysvinit-2.86-r5 488
-SHA256 b2bb79f2cb614dae61f284fc74c63b65f0434e0f8e66212ccb698577d671f62d files/digest-sysvinit-2.86-r5 488
-MD5 a0a89857120e374f52bb610074e602f7 files/digest-sysvinit-2.86-r6 488
-RMD160 586ea36bc8586bf1f30e9a51715e6ab520a798ac files/digest-sysvinit-2.86-r6 488
-SHA256 b2bb79f2cb614dae61f284fc74c63b65f0434e0f8e66212ccb698577d671f62d files/digest-sysvinit-2.86-r6 488
-MD5 a0a89857120e374f52bb610074e602f7 files/digest-sysvinit-2.86-r7 488
-RMD160 586ea36bc8586bf1f30e9a51715e6ab520a798ac files/digest-sysvinit-2.86-r7 488
-SHA256 b2bb79f2cb614dae61f284fc74c63b65f0434e0f8e66212ccb698577d671f62d files/digest-sysvinit-2.86-r7 488
MD5 a0a89857120e374f52bb610074e602f7 files/digest-sysvinit-2.86-r8 488
RMD160 586ea36bc8586bf1f30e9a51715e6ab520a798ac files/digest-sysvinit-2.86-r8 488
SHA256 b2bb79f2cb614dae61f284fc74c63b65f0434e0f8e66212ccb698577d671f62d files/digest-sysvinit-2.86-r8 488
+MD5 a0a89857120e374f52bb610074e602f7 files/digest-sysvinit-2.86-r9 488
+RMD160 586ea36bc8586bf1f30e9a51715e6ab520a798ac files/digest-sysvinit-2.86-r9 488
+SHA256 b2bb79f2cb614dae61f284fc74c63b65f0434e0f8e66212ccb698577d671f62d files/digest-sysvinit-2.86-r9 488
diff --git a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r6 b/sys-apps/sysvinit/files/digest-sysvinit-2.86-r6
deleted file mode 100644
index 7fc9a567296b..000000000000
--- a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r6
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 650af823f937d386e81520b1741d4d45 sysvinit-2.86-kexec.patch 4139
-RMD160 5f8e9ccd3a39701cf47a1a541c78a4be971d46fc sysvinit-2.86-kexec.patch 4139
-SHA256 936245ef3060939bec3099efc006009336b3672422c1de41983b277ab5ddac47 sysvinit-2.86-kexec.patch 4139
-MD5 7d5d61c026122ab791ac04c8a84db967 sysvinit-2.86.tar.gz 99009
-RMD160 46587ab51390b5c8cd3179a3690f86efdbe9b4b9 sysvinit-2.86.tar.gz 99009
-SHA256 035f98fae17d9cff002993c564ccc83dc4ed136127172caeff872b6abdb679d8 sysvinit-2.86.tar.gz 99009
diff --git a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r7 b/sys-apps/sysvinit/files/digest-sysvinit-2.86-r7
deleted file mode 100644
index 7fc9a567296b..000000000000
--- a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r7
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 650af823f937d386e81520b1741d4d45 sysvinit-2.86-kexec.patch 4139
-RMD160 5f8e9ccd3a39701cf47a1a541c78a4be971d46fc sysvinit-2.86-kexec.patch 4139
-SHA256 936245ef3060939bec3099efc006009336b3672422c1de41983b277ab5ddac47 sysvinit-2.86-kexec.patch 4139
-MD5 7d5d61c026122ab791ac04c8a84db967 sysvinit-2.86.tar.gz 99009
-RMD160 46587ab51390b5c8cd3179a3690f86efdbe9b4b9 sysvinit-2.86.tar.gz 99009
-SHA256 035f98fae17d9cff002993c564ccc83dc4ed136127172caeff872b6abdb679d8 sysvinit-2.86.tar.gz 99009
diff --git a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r5 b/sys-apps/sysvinit/files/digest-sysvinit-2.86-r9
index 7fc9a567296b..7fc9a567296b 100644
--- a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r5
+++ b/sys-apps/sysvinit/files/digest-sysvinit-2.86-r9
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch b/sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch
new file mode 100644
index 000000000000..eb04da9a7b14
--- /dev/null
+++ b/sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch
@@ -0,0 +1,45 @@
+--- src/init.c.ORIG 2004-07-30 07:16:20.000000000 -0500
++++ src/init.c 2007-06-15 14:07:39.774320481 -0500
+@@ -949,6 +949,25 @@
+ sigprocmask(SIG_SETMASK, &omask, NULL);
+
+ /*
++ * Update utmp/wtmp file prior to starting
++ * any child. This MUST be done right here in
++ * the child process in order to prevent a race
++ * condition that occurs when the child
++ * process' time slice executes before the
++ * parent (can and does happen in a uniprocessor
++ * environment). If the child is a getty and
++ * the race condition happens, then init's utmp
++ * update will happen AFTER the getty runs
++ * and expects utmp to be updated already!
++ *
++ * Do NOT log if process field starts with '+'
++ * FIXME: that's for compatibility with *very*
++ * old getties - probably it can be taken out.
++ */
++ if (ch->action == RESPAWN && ch->process[0] != '+')
++ write_utmp_wtmp("", ch->id, getpid(), INIT_PROCESS, "");
++
++ /*
+ * In sysinit, boot, bootwait or single user mode:
+ * for any wait-type subprocess we _force_ the console
+ * to be its controlling tty.
+@@ -1088,15 +1107,7 @@
+ case ONDEMAND:
+ case RESPAWN:
+ ch->flags |= RUNNING;
+- if (spawn(ch, &(ch->pid)) < 0) break;
+- /*
+- * Do NOT log if process field starts with '+'
+- * FIXME: that's for compatibility with *very*
+- * old getties - probably it can be taken out.
+- */
+- if (ch->process[0] != '+')
+- write_utmp_wtmp("", ch->id, ch->pid,
+- INIT_PROCESS, "");
++ (void)spawn(ch, &(ch->pid));
+ break;
+ }
+ }
diff --git a/sys-apps/sysvinit/sysvinit-2.86-r5.ebuild b/sys-apps/sysvinit/sysvinit-2.86-r5.ebuild
deleted file mode 100644
index b1beeb5e865c..000000000000
--- a/sys-apps/sysvinit/sysvinit-2.86-r5.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r5.ebuild,v 1.12 2007/04/05 14:16:55 wolf31o2 Exp $
-
-inherit eutils toolchain-funcs flag-o-matic
-
-DESCRIPTION="/sbin/init - parent of all processes"
-HOMEPAGE="http://freshmeat.net/projects/sysvinit/"
-SRC_URI="ftp://ftp.cistron.nl/pub/people/miquels/software/${P}.tar.gz
- ftp://sunsite.unc.edu/pub/Linux/system/daemons/init/${P}.tar.gz
- http://www.gc-linux.org/down/isobel/kexec/sysvinit/sysvinit-2.86-kexec.patch"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
-IUSE="selinux ibm static"
-
-RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )"
-DEPEND="${RDEPEND}
- virtual/os-headers"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd "${S}"
- cp "${FILESDIR}"/change_console.{c,8} src/ || die
- epatch "${FILESDIR}"/${P}-docs.patch
- epatch "${FILESDIR}"/${P}-shutdown-usage.patch
- epatch "${FILESDIR}"/sysvinit-2.86-off-by-one.patch
- epatch "${DISTDIR}"/sysvinit-2.86-kexec.patch
- epatch "${FILESDIR}"/sysvinit-2.86-POSIX-1003.1e.patch #5818
- epatch "${FILESDIR}"/sysvinit-2.86-execl.patch
- epatch "${FILESDIR}"/sysvinit-2.86-utmp-64bit.patch
- cd src
- epatch "${FILESDIR}"/${PV}-gentoo.patch
- use selinux && epatch "${FILESDIR}"/${PV}-selinux-1.patch
-
- # Mung inittab for specific architectures
- cd "${WORKDIR}"
- cp "${FILESDIR}"/inittab . || die "cp inittab"
- local insert=""
- use ppc && insert="#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux\n"
- use arm && insert='#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100'
- use hppa && insert='b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100'
- if use ibm ; then
- insert="${insert}#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0"$'\n'
- insert="${insert}#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0"
- fi
- (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
- [[ -n ${insert} ]] && echo "# Architecture specific features"$'\n'"${insert}" >> inittab
-}
-
-src_compile() {
- use static && append-ldflags -static
-
- # Note: The LCRYPT define below overrides the test in
- # sysvinit's Makefile. This is because sulogin must be linked
- # to libcrypt in any case, but when building stage2 in
- # catalyst, /usr/lib/libcrypt.a isn't available. In truth
- # this doesn't change how sulogin is built since ld would use
- # the shared obj by default anyway! The other option is to
- # refrain from building sulogin, but that isn't a good option.
- # (09 Jul 2004 agriffis)
- emake -C src \
- CC="$(tc-getCC)" \
- DISTRO="Gentoo" \
- LCRYPT="-lcrypt" \
- all change_console \
- || die
-}
-
-src_install() {
- dodoc README doc/*
-
- cd src
- make install DISTRO="Gentoo" ROOT="${D}" || die "make install"
-
- into /
- dosbin change_console || die
- doman change_console.8
-
- insinto /etc
- doins "${WORKDIR}"/inittab || die "inittab"
-}
-
-pkg_postinst() {
- # Reload init to fix unmounting problems of / on next reboot.
- # This is really needed, as without the new version of init cause init
- # not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [[ ${ROOT} == / ]] ; then
- # Do not return an error if this fails
- /sbin/telinit U &>/dev/null
- fi
-}
diff --git a/sys-apps/sysvinit/sysvinit-2.86-r6.ebuild b/sys-apps/sysvinit/sysvinit-2.86-r6.ebuild
deleted file mode 100644
index 5a2a8132291b..000000000000
--- a/sys-apps/sysvinit/sysvinit-2.86-r6.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r6.ebuild,v 1.7 2007/04/05 14:16:55 wolf31o2 Exp $
-
-inherit eutils toolchain-funcs flag-o-matic
-
-DESCRIPTION="/sbin/init - parent of all processes"
-HOMEPAGE="http://freshmeat.net/projects/sysvinit/"
-SRC_URI="ftp://ftp.cistron.nl/pub/people/miquels/software/${P}.tar.gz
- ftp://sunsite.unc.edu/pub/Linux/system/daemons/init/${P}.tar.gz
- http://www.gc-linux.org/down/isobel/kexec/sysvinit/sysvinit-2.86-kexec.patch"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
-IUSE="selinux ibm static"
-
-RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )"
-DEPEND="${RDEPEND}
- virtual/os-headers"
-
-src_unpack() {
- unpack ${P}.tar.gz
- cd "${S}"
- cp "${FILESDIR}"/change_console.{c,8} src/ || die
- epatch "${FILESDIR}"/${P}-docs.patch
- epatch "${FILESDIR}"/${P}-shutdown-usage.patch
- epatch "${FILESDIR}"/sysvinit-2.86-off-by-one.patch
- epatch "${DISTDIR}"/sysvinit-2.86-kexec.patch
- #epatch "${FILESDIR}"/sysvinit-2.86-POSIX-1003.1e.patch #5818
- epatch "${FILESDIR}"/sysvinit-2.86-execl.patch
- epatch "${FILESDIR}"/sysvinit-2.86-utmp-64bit.patch
- cd src
- epatch "${FILESDIR}"/${PV}-gentoo.patch
- use selinux && epatch "${FILESDIR}"/${PV}-selinux-1.patch
-
- # Mung inittab for specific architectures
- cd "${WORKDIR}"
- cp "${FILESDIR}"/inittab . || die "cp inittab"
- local insert=""
- use ppc && insert="#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux\n"
- use arm && insert='#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100'
- use hppa && insert='b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100'
- if use ibm ; then
- insert="${insert}#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0"$'\n'
- insert="${insert}#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0"
- fi
- (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
- [[ -n ${insert} ]] && echo "# Architecture specific features"$'\n'"${insert}" >> inittab
-}
-
-src_compile() {
- use static && append-ldflags -static
-
- # Note: The LCRYPT define below overrides the test in
- # sysvinit's Makefile. This is because sulogin must be linked
- # to libcrypt in any case, but when building stage2 in
- # catalyst, /usr/lib/libcrypt.a isn't available. In truth
- # this doesn't change how sulogin is built since ld would use
- # the shared obj by default anyway! The other option is to
- # refrain from building sulogin, but that isn't a good option.
- # (09 Jul 2004 agriffis)
- emake -C src \
- CC="$(tc-getCC)" \
- DISTRO="Gentoo" \
- LCRYPT="-lcrypt" \
- all change_console \
- || die
-}
-
-src_install() {
- dodoc README doc/*
-
- cd src
- make install DISTRO="Gentoo" ROOT="${D}" || die "make install"
-
- into /
- dosbin change_console || die
- doman change_console.8
-
- insinto /etc
- doins "${WORKDIR}"/inittab || die "inittab"
-
- doinitd "${FILESDIR}"/{reboot,shutdown}.sh || die
-}
-
-pkg_postinst() {
- # Reload init to fix unmounting problems of / on next reboot.
- # This is really needed, as without the new version of init cause init
- # not to quit properly on reboot, and causes a fsck of / on next reboot.
- if [[ ${ROOT} == / ]] ; then
- # Do not return an error if this fails
- /sbin/telinit U &>/dev/null
- fi
-}
diff --git a/sys-apps/sysvinit/sysvinit-2.86-r7.ebuild b/sys-apps/sysvinit/sysvinit-2.86-r9.ebuild
index da4dc835041c..ca3c7ee901c0 100644
--- a/sys-apps/sysvinit/sysvinit-2.86-r7.ebuild
+++ b/sys-apps/sysvinit/sysvinit-2.86-r9.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r7.ebuild,v 1.12 2007/04/06 16:10:25 welp Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r9.ebuild,v 1.1 2007/08/10 08:52:55 uberlord Exp $
inherit eutils toolchain-funcs flag-o-matic
@@ -12,8 +12,8 @@ SRC_URI="ftp://ftp.cistron.nl/pub/people/miquels/software/${P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 arm hppa ~ia64 m68k mips ppc ppc64 s390 sh sparc x86"
-IUSE="selinux ibm static"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="selinux ibm static kernel_FreeBSD"
RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )"
DEPEND="${RDEPEND}
@@ -23,14 +23,15 @@ src_unpack() {
unpack ${P}.tar.gz
cd "${S}"
cp "${FILESDIR}"/change_console.{c,8} src/ || die
- epatch "${FILESDIR}"/${P}-docs.patch
- epatch "${FILESDIR}"/${P}-shutdown-usage.patch
- epatch "${FILESDIR}"/sysvinit-2.86-off-by-one.patch
- epatch "${DISTDIR}"/sysvinit-2.86-kexec.patch
- #epatch "${FILESDIR}"/sysvinit-2.86-POSIX-1003.1e.patch #5818
- epatch "${FILESDIR}"/sysvinit-2.86-execl.patch
- epatch "${FILESDIR}"/sysvinit-2.86-utmp-64bit.patch
+ epatch "${FILESDIR}/${P}"-docs.patch
+ epatch "${FILESDIR}/${P}"-shutdown-usage.patch
+ epatch "${FILESDIR}/${P}"-off-by-one.patch
+ epatch "${DISTDIR}/${P}"-kexec.patch
+ #epatch "${FILESDIR}/${P}"-POSIX-1003.1e.patch #5818
+ epatch "${FILESDIR}/${P}"-execl.patch
+ epatch "${FILESDIR}/${P}"-utmp-64bit.patch
epatch "${FILESDIR}/${P}"-shutdown-single.patch
+ epatch "${FILESDIR}/${P}"-utmp-smp.patch
cd src
epatch "${FILESDIR}"/${PV}-gentoo.patch
use selinux && epatch "${FILESDIR}"/${PV}-selinux-1.patch
@@ -42,11 +43,18 @@ src_unpack() {
use ppc && insert="#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux\n"
use arm && insert='#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100'
use hppa && insert='b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100'
+ use s390 && insert='s0:12345:respawn:/sbin/agetty 38400 console'
if use ibm ; then
insert="${insert}#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0"$'\n'
insert="${insert}#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0"
fi
(use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
+ # Support kFreeBSD, #121786
+ if use kernel_FreeBSD; then
+ sed -i -e 's/linux/cons25/g' \
+ -e 's/ttyS0/cuaa0/g' \
+ -e 's/ttyS1/cuaa1/g' inittab
+ fi
[[ -n ${insert} ]] && echo "# Architecture specific features"$'\n'"${insert}" >> inittab
}