summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2010-05-10 17:13:05 +0000
committerWilliam Hubbs <williamh@gentoo.org>2010-05-10 17:13:05 +0000
commitbec719b0afb25d2da17e4c5f58bb9eab50e7fa8c (patch)
tree621fd08c8e132c3fb61b88db1fcaaff74f243345 /sys-apps/sysvinit
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-bec719b0afb25d2da17e4c5f58bb9eab50e7fa8c.tar.gz
gentoo-2-bec719b0afb25d2da17e4c5f58bb9eab50e7fa8c.tar.bz2
gentoo-2-bec719b0afb25d2da17e4c5f58bb9eab50e7fa8c.zip
removed old version
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'sys-apps/sysvinit')
-rw-r--r--sys-apps/sysvinit/ChangeLog15
-rw-r--r--sys-apps/sysvinit/files/2.86-gentoo.patch25
-rw-r--r--sys-apps/sysvinit/files/2.86-selinux-1.patch91
-rw-r--r--sys-apps/sysvinit/files/2.86-selinux.patch239
-rw-r--r--sys-apps/sysvinit/files/change_console.833
-rw-r--r--sys-apps/sysvinit/files/change_console.c49
-rw-r--r--sys-apps/sysvinit/files/inittab51
-rw-r--r--sys-apps/sysvinit/files/inittab-2.86-r1259
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch67
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-build.patch25
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-docs.patch73
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-execl.patch11
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-off-by-one.patch16
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch38
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-shutdown-usage.patch10
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-utmp-64bit.patch43
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch45
-rw-r--r--sys-apps/sysvinit/sysvinit-2.86-r10.ebuild93
18 files changed, 14 insertions, 969 deletions
diff --git a/sys-apps/sysvinit/ChangeLog b/sys-apps/sysvinit/ChangeLog
index 0d5c0af1d33e..99a783a55fdb 100644
--- a/sys-apps/sysvinit/ChangeLog
+++ b/sys-apps/sysvinit/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for sys-apps/sysvinit
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.79 2010/04/11 16:54:43 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.80 2010/05/10 17:13:05 williamh Exp $
+
+ 10 May 2010; William Hubbs <williamh@gentoo.org> -files/2.86-gentoo.patch,
+ -sysvinit-2.86-r10.ebuild, -files/inittab-2.86-r12,
+ -files/sysvinit-2.86-execl.patch, -files/2.86-selinux.patch,
+ -files/2.86-selinux-1.patch, -files/sysvinit-2.86-POSIX-1003.1e.patch,
+ -files/sysvinit-2.86-build.patch, -files/sysvinit-2.86-docs.patch,
+ -files/sysvinit-2.86-off-by-one.patch,
+ -files/sysvinit-2.86-shutdown-single.patch,
+ -files/sysvinit-2.86-shutdown-usage.patch,
+ -files/sysvinit-2.86-utmp-64bit.patch,
+ -files/sysvinit-2.86-utmp-smp.patch, -files/change_console.8,
+ -files/change_console.c, -files/inittab:
+ removed old version
11 Apr 2010; Raúl Porcel <armin76@gentoo.org> sysvinit-2.87-r3.ebuild:
s390 stable wrt #301473
diff --git a/sys-apps/sysvinit/files/2.86-gentoo.patch b/sys-apps/sysvinit/files/2.86-gentoo.patch
deleted file mode 100644
index c3322a8e2e00..000000000000
--- a/sys-apps/sysvinit/files/2.86-gentoo.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- src/Makefile.orig 2004-12-21 22:08:42.607088800 -0500
-+++ src/Makefile 2004-12-21 22:12:56.409504968 -0500
-@@ -10,5 +10,3 @@
-
--CC = gcc
--CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
--LDFLAGS = -s
-+CFLAGS += -Wall -D_GNU_SOURCE
- STATIC =
-@@ -33,2 +31,9 @@
-
-+ifeq ($(DISTRO),Gentoo)
-+SBIN += sulogin bootlogd
-+USRBIN += utmpdump wall
-+MAN1 += wall.1
-+MAN8 += sulogin.8 bootlogd.8
-+endif
-+
- ifeq ($(DISTRO),Debian)
-@@ -112,2 +117,5 @@
- install:
-+ $(INSTALL) -d $(ROOT)/bin $(ROOT)/sbin $(ROOT)/usr/bin \
-+ $(ROOT)/usr/include $(ROOT)/$(MANDIR)/man1 $(ROOT)/$(MANDIR)/man5 \
-+ $(ROOT)/$(MANDIR)/man8
- for i in $(BIN); do \
diff --git a/sys-apps/sysvinit/files/2.86-selinux-1.patch b/sys-apps/sysvinit/files/2.86-selinux-1.patch
deleted file mode 100644
index c1b5115bfc6c..000000000000
--- a/sys-apps/sysvinit/files/2.86-selinux-1.patch
+++ /dev/null
@@ -1,91 +0,0 @@
---- sysvinit-2.85/src/init.c.selinux 2005-10-14 14:16:24.000000000 -0400
-+++ sysvinit-2.85/src/init.c 2005-10-14 14:16:24.000000000 -0400
-@@ -48,6 +48,8 @@
- #include <stdarg.h>
- #include <sys/syslog.h>
- #include <sys/time.h>
-+#include <selinux/selinux.h>
-+
-
- #ifdef __i386__
- # if (__GLIBC__ >= 2)
-@@ -2513,6 +2515,7 @@
- char *p;
- int f;
- int isinit;
-+ int enforce = 0;
-
- /* Get my own name */
- if ((p = strrchr(argv[0], '/')) != NULL)
-@@ -2576,6 +2579,20 @@
- maxproclen += strlen(argv[f]) + 1;
- }
-
-+ if (getenv("SELINUX_INIT") == NULL) {
-+ putenv("SELINUX_INIT=YES");
-+ if (selinux_init_load_policy(&enforce) == 0 ) {
-+ execv(myname, argv);
-+ } else {
-+ if (enforce > 0) {
-+ /* SELinux in enforcing mode but load_policy failed */
-+ /* At this point, we probably can't open /dev/console, so log() won't work */
-+ initlog(L_VB,"Unable to load SELinux Policy. Machine is in enforcing mode. Halting now.");
-+ exit(1);
-+ }
-+ }
-+ }
-+
- /* Start booting. */
- argv0 = argv[0];
- argv[1] = NULL;
---- sysvinit-2.85/src/Makefile.selinux 2005-10-14 14:16:24.000000000 -0400
-+++ sysvinit-2.85/src/Makefile 2005-10-14 14:16:24.000000000 -0400
-@@ -32,7 +32,7 @@
- all: $(BIN) $(SBIN) $(USRBIN)
-
- init: init.o init_utmp.o
-- $(CC) $(LDFLAGS) $(STATIC) -o $@ init.o init_utmp.o
-+ $(CC) $(LDFLAGS) $(STATIC) -o $@ init.o init_utmp.o -lsepol -lselinux
-
- halt: halt.o ifdown.o hddown.o utmp.o reboot.h
- $(CC) $(LDFLAGS) -o $@ halt.o ifdown.o hddown.o utmp.o
-@@ -50,7 +50,7 @@
- $(CC) $(LDFLAGS) -o $@ runlevel.o
-
- sulogin: sulogin.o
-- $(CC) $(LDFLAGS) $(STATIC) -o $@ sulogin.o $(LCRYPT)
-+ $(CC) $(LDFLAGS) $(STATIC) -o $@ sulogin.o $(LCRYPT) -lselinux
-
- wall: dowall.o wall.o
- $(CC) $(LDFLAGS) -o $@ dowall.o wall.o
---- sysvinit-2.85/src/sulogin.c.selinux 2005-10-14 14:16:24.000000000 -0400
-+++ sysvinit-2.85/src/sulogin.c 2005-10-14 14:18:42.000000000 -0400
-@@ -28,6 +28,8 @@
- # include <crypt.h>
- #endif
-
-+#include <selinux/selinux.h>
-+#include <selinux/get_context_list.h>
-
- #define CHECK_DES 1
- #define CHECK_MD5 1
-@@ -332,6 +335,19 @@
- signal(SIGINT, SIG_DFL);
- signal(SIGTSTP, SIG_DFL);
- signal(SIGQUIT, SIG_DFL);
-+ if (is_selinux_enabled > 0) {
-+ security_context_t scon=NULL;
-+ char *seuser=NULL;
-+ char *level=NULL;
-+ if (getseuserbyname("root", &seuser, &level) == 0)
-+ if (get_default_context_with_level(seuser, level, 0, &scon) > 0) {
-+ if (setexeccon(scon) != 0)
-+ fprintf(stderr, "setexeccon failed\n");
-+ freecon(scon);
-+ }
-+ free(seuser);
-+ free(level);
-+ }
- execl(sushell, shell, NULL);
- perror(sushell);
-
diff --git a/sys-apps/sysvinit/files/2.86-selinux.patch b/sys-apps/sysvinit/files/2.86-selinux.patch
deleted file mode 100644
index 3110bc52befb..000000000000
--- a/sys-apps/sysvinit/files/2.86-selinux.patch
+++ /dev/null
@@ -1,239 +0,0 @@
-diff -urN sysvinit-2.86.orig/src/Makefile sysvinit-2.86/src/Makefile
---- sysvinit-2.86.orig/src/Makefile 2004-06-09 08:47:45.000000000 -0400
-+++ sysvinit-2.86/src/Makefile 2005-01-03 20:25:59.922659928 -0500
-@@ -12,6 +12,8 @@
- CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
- LDFLAGS = -s
- STATIC =
-+CFLAGS += -DWITH_SELINUX
-+LDFLAGS += -lselinux -lsepol
-
- # For some known distributions we do not build all programs, otherwise we do.
- BIN =
-diff -urN sysvinit-2.86.orig/src/init.c sysvinit-2.86/src/init.c
---- sysvinit-2.86.orig/src/init.c 2004-07-30 08:16:20.000000000 -0400
-+++ sysvinit-2.86/src/init.c 2005-01-03 20:46:39.485217776 -0500
-@@ -42,6 +42,11 @@
- #include <stdarg.h>
- #include <sys/syslog.h>
- #include <sys/time.h>
-+#include <sys/mman.h>
-+#include <selinux/selinux.h>
-+#include <sepol/sepol.h>
-+#include <sys/mount.h>
-+
-
- #ifdef __i386__
- # if (__GLIBC__ >= 2)
-@@ -104,6 +109,7 @@
- int dfl_level = 0; /* Default runlevel */
- sig_atomic_t got_cont = 0; /* Set if we received the SIGCONT signal */
- sig_atomic_t got_signals; /* Set if we received a signal. */
-+int enforcing = -1; /* SELinux enforcing mode */
- int emerg_shell = 0; /* Start emergency shell? */
- int wrote_wtmp_reboot = 1; /* Set when we wrote the reboot record */
- int wrote_utmp_reboot = 1; /* Set when we wrote the reboot record */
-@@ -192,6 +198,142 @@
- char *extra_env[NR_EXTRA_ENV];
-
-
-+/* Mount point for selinuxfs. */
-+#define SELINUXMNT "/selinux/"
-+
-+static int load_policy(int *enforce)
-+{
-+ int fd=-1,ret=-1;
-+ int rc=0, orig_enforce;
-+ struct stat sb;
-+ void *map;
-+ char policy_file[PATH_MAX];
-+ int policy_version=0;
-+ FILE *cfg;
-+ char buf[4096];
-+ int seconfig = -2;
-+
-+ selinux_getenforcemode(&seconfig);
-+
-+ mount("none", "/proc", "proc", 0, 0);
-+ cfg = fopen("/proc/cmdline","r");
-+ if (cfg) {
-+ char *tmp;
-+ if (fgets(buf,4096,cfg) && (tmp = strstr(buf,"enforcing="))) {
-+ if (tmp == buf || isspace(*(tmp-1))) {
-+ enforcing=atoi(tmp+10);
-+ }
-+ }
-+ fclose(cfg);
-+ }
-+#define MNT_DETACH 2
-+ umount2("/proc",MNT_DETACH);
-+
-+ if (enforcing >=0)
-+ *enforce = enforcing;
-+ else if (seconfig == 1)
-+ *enforce = 1;
-+
-+ if (mount("none", SELINUXMNT, "selinuxfs", 0, 0) < 0) {
-+ if (errno == ENODEV) {
-+ initlog(L_VB, "SELinux not supported by kernel: %s\n",SELINUXMNT,strerror(errno));
-+ *enforce = 0;
-+ } else {
-+ initlog(L_VB, "Failed to mount %s: %s\n",SELINUXMNT,strerror(errno));
-+ }
-+ return ret;
-+ }
-+
-+ set_selinuxmnt(SELINUXMNT); /* set manually since we mounted it */
-+
-+ policy_version=security_policyvers();
-+ if (policy_version < 0) {
-+ initlog(L_VB, "Can't get policy version: %s\n", strerror(errno));
-+ goto UMOUNT;
-+ }
-+
-+ orig_enforce = rc = security_getenforce();
-+ if (rc < 0) {
-+ initlog(L_VB, "Can't get SELinux enforcement flag: %s\n", strerror(errno));
-+ goto UMOUNT;
-+ }
-+ if (enforcing >= 0) {
-+ *enforce = enforcing;
-+ } else if (seconfig == -1) {
-+ *enforce = 0;
-+ rc = security_disable();
-+ if (rc == 0) umount(SELINUXMNT);
-+ if (rc < 0) {
-+ rc = security_setenforce(0);
-+ if (rc < 0) {
-+ initlog(L_VB, "Can't disable SELinux: %s\n", strerror(errno));
-+ goto UMOUNT;
-+ }
-+ }
-+ ret = 0;
-+ goto UMOUNT;
-+ } else if (seconfig >= 0) {
-+ *enforce = seconfig;
-+ if (orig_enforce != *enforce) {
-+ rc = security_setenforce(seconfig);
-+ if (rc < 0) {
-+ initlog(L_VB, "Can't set SELinux enforcement flag: %s\n", strerror(errno));
-+ goto UMOUNT;
-+ }
-+ }
-+ }
-+
-+ snprintf(policy_file,sizeof(policy_file),"%s.%d",selinux_binary_policy_path(),policy_version);
-+ fd = open(policy_file, O_RDONLY);
-+ if (fd < 0) {
-+ /* Check previous version to see if old policy is available
-+ */
-+ snprintf(policy_file,sizeof(policy_file),"%s.%d",selinux_binary_policy_path(),policy_version-1);
-+ fd = open(policy_file, O_RDONLY);
-+ if (fd < 0) {
-+ initlog(L_VB, "Can't open '%s.%d': %s\n",
-+ selinux_binary_policy_path(),policy_version,strerror(errno));
-+ goto UMOUNT;
-+ }
-+ }
-+
-+ if (fstat(fd, &sb) < 0) {
-+ initlog(L_VB, "Can't stat '%s': %s\n",
-+ policy_file, strerror(errno));
-+ goto UMOUNT;
-+ }
-+
-+ map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
-+ if (map == MAP_FAILED) {
-+ initlog(L_VB, "Can't map '%s': %s\n",
-+ policy_file, strerror(errno));
-+ goto UMOUNT;
-+ }
-+
-+
-+ /* Set booleans based on a booleans configuration file. */
-+ ret = sepol_genbools(map, sb.st_size, selinux_booleans_path());
-+ if (ret < 0) {
-+ if (errno != ENOENT && errno != EINVAL) {
-+ initlog(L_VB,"Error while setting booleans: %s\n",
-+ strerror(errno));
-+ goto UMOUNT;
-+ }
-+ }
-+ initlog(L_VB, "Loading security policy\n");
-+ ret=security_load_policy(map, sb.st_size);
-+ if (ret < 0) {
-+ initlog(L_VB, "security_load_policy failed\n");
-+ }
-+
-+UMOUNT:
-+ /*umount(SELINUXMNT); */
-+ if ( fd >= 0) {
-+ close(fd);
-+ }
-+ return(ret);
-+}
-+
- /*
- * Sleep a number of seconds.
- *
-@@ -2599,6 +2741,7 @@
- char *p;
- int f;
- int isinit;
-+ int enforce = 0;
-
- /* Get my own name */
- if ((p = strrchr(argv[0], '/')) != NULL)
-@@ -2662,6 +2805,20 @@
- maxproclen += strlen(argv[f]) + 1;
- }
-
-+ if (getenv("SELINUX_INIT") == NULL) {
-+ putenv("SELINUX_INIT=YES");
-+ if (load_policy(&enforce) == 0 ) {
-+ execv(myname, argv);
-+ } else {
-+ if (enforce > 0) {
-+ /* SELinux in enforcing mode but load_policy failed */
-+ /* At this point, we probably can't open /dev/console, so log() won't work */
-+ fprintf(stderr,"Enforcing mode requested but no policy loaded. Halting now.\n");
-+ exit(1);
-+ }
-+ }
-+ }
-+
- /* Start booting. */
- argv0 = argv[0];
- argv[1] = NULL;
-diff -urN sysvinit-2.86.orig/src/sulogin.c sysvinit-2.86/src/sulogin.c
---- sysvinit-2.86.orig/src/sulogin.c 2004-07-30 07:40:28.000000000 -0400
-+++ sysvinit-2.86/src/sulogin.c 2005-01-03 20:30:48.746751992 -0500
-@@ -27,7 +27,10 @@
- #if defined(__GLIBC__)
- # include <crypt.h>
- #endif
--
-+#ifdef WITH_SELINUX
-+#include <selinux/selinux.h>
-+#include <selinux/get_context_list.h>
-+#endif
- #define CHECK_DES 1
- #define CHECK_MD5 1
-
-@@ -335,6 +338,16 @@
- signal(SIGINT, SIG_DFL);
- signal(SIGTSTP, SIG_DFL);
- signal(SIGQUIT, SIG_DFL);
-+#ifdef WITH_SELINUX
-+ if (is_selinux_enabled > 0) {
-+ security_context_t* contextlist=NULL;
-+ if (get_ordered_context_list("root", 0, &contextlist) > 0) {
-+ if (setexeccon(contextlist[0]) != 0)
-+ fprintf(stderr, "setexeccon faile\n");
-+ freeconary(contextlist);
-+ }
-+ }
-+#endif
- execl(sushell, shell, NULL);
- perror(sushell);
-
diff --git a/sys-apps/sysvinit/files/change_console.8 b/sys-apps/sysvinit/files/change_console.8
deleted file mode 100644
index c1ea01c9b332..000000000000
--- a/sys-apps/sysvinit/files/change_console.8
+++ /dev/null
@@ -1,33 +0,0 @@
-.TH CHANGE_CONSOLE 8 "23 September 2003" "" "Linux User's Manual"
-
-.SH NAME
-change_console -- change console used by init
-
-.SH SYNOPSIS
-.B change_console
-.RB [ \-f ]
-.RB [ \-r ]
-.RB [device]
-
-.SH DESCRIPTION
-.B change_console
-changes the console used by
-.IR init (8)
-to spawn commands.
-.SH OPTIONS
-.IP \fB\-f\fn
-Remain in the foreground after sending the command to init
-.PP
-.IP \fB\-r\fn
-Reset the console file used by init to its compiled-in default
-(usually /dev/console).
-
-.IP \fBdevice\fn
-The device file to use as the console. If none is specified,
-the result of running ttyname on stdin is used.
-
-.SH SEE ALSO
-.IR init (8)
-
-.SH AUTHOR
-Red Hat, Inc.
diff --git a/sys-apps/sysvinit/files/change_console.c b/sys-apps/sysvinit/files/change_console.c
deleted file mode 100644
index 4f4fbe31767c..000000000000
--- a/sys-apps/sysvinit/files/change_console.c
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "initreq.h"
-#include <fcntl.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <signal.h>
-#include <getopt.h>
-#include <unistd.h>
-
-void signal_handler(int sig) {
- exit(0);
-}
-
-int main(int argc, char **argv) {
- int foreground = 0, reset = 0, fd, x = 1;
- char *device = NULL;
- struct init_request req;
-
- while (x < argc) {
- if (!strcmp(argv[x], "-f")) {
- foreground = 1;
- } else if (!strcmp(argv[x], "-r")) {
- reset = 1;
- } else {
- device = argv[x];
- }
- x++;
- }
- if (!device)
- device = ttyname(0);
-
- memset(&req, 0, sizeof(req));
- req.magic = INIT_MAGIC;
- req.cmd = INIT_CMD_CHANGECONS;
- if (!reset)
- snprintf(req.i.bsd.reserved, 127, device);
- else
- req.i.bsd.reserved[0] = '\0';
- signal(SIGALRM, signal_handler);
- alarm(3);
- if ((fd = open(INIT_FIFO, O_WRONLY)) >= 0) {
- write(fd, &req, sizeof(req)) == sizeof(req);
- close(fd);
- }
- alarm(0);
- if (foreground)
- pause();
- return 0;
-}
diff --git a/sys-apps/sysvinit/files/inittab b/sys-apps/sysvinit/files/inittab
deleted file mode 100644
index b06abfc9ee97..000000000000
--- a/sys-apps/sysvinit/files/inittab
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# /etc/inittab: This file describes how the INIT process should set up
-# the system in a certain run-level.
-#
-# Author: Miquel van Smoorenburg, <miquels@cistron.nl>
-# Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
-# Modified by: Daniel Robbins, <drobbins@gentoo.org>
-# Modified by: Martin Schlemmer, <azarah@gentoo.org>
-#
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.5 2005/12/22 02:03:23 vapier Exp $
-
-# Default runlevel.
-id:3:initdefault:
-
-# System initialization, mount local filesystems, etc.
-si::sysinit:/sbin/rc sysinit
-
-# Further system initialization, brings up the boot runlevel.
-rc::bootwait:/sbin/rc boot
-
-l0:0:wait:/sbin/rc shutdown
-l1:S1:wait:/sbin/rc single
-l2:2:wait:/sbin/rc nonetwork
-l3:3:wait:/sbin/rc default
-l4:4:wait:/sbin/rc default
-l5:5:wait:/sbin/rc default
-l6:6:wait:/sbin/rc reboot
-#z6:6:respawn:/sbin/sulogin
-
-# TERMINALS
-c1:12345:respawn:/sbin/agetty 38400 tty1 linux
-c2:2345:respawn:/sbin/agetty 38400 tty2 linux
-c3:2345:respawn:/sbin/agetty 38400 tty3 linux
-c4:2345:respawn:/sbin/agetty 38400 tty4 linux
-c5:2345:respawn:/sbin/agetty 38400 tty5 linux
-c6:2345:respawn:/sbin/agetty 38400 tty6 linux
-
-# SERIAL CONSOLES
-#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
-#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
-
-# What to do at the "Three Finger Salute".
-ca:12345:ctrlaltdel:/sbin/shutdown -r now
-
-# Used by /etc/init.d/xdm to control DM startup.
-# Read the comments in /etc/init.d/xdm for more
-# info. Do NOT remove, as this will start nothing
-# extra at boot if /etc/init.d/xdm is not added
-# to the "default" runlevel.
-x:a:once:/etc/X11/startDM.sh
-
diff --git a/sys-apps/sysvinit/files/inittab-2.86-r12 b/sys-apps/sysvinit/files/inittab-2.86-r12
deleted file mode 100644
index f8a0eb3fa300..000000000000
--- a/sys-apps/sysvinit/files/inittab-2.86-r12
+++ /dev/null
@@ -1,59 +0,0 @@
-#
-# /etc/inittab: This file describes how the INIT process should set up
-# the system in a certain run-level.
-#
-# Author: Miquel van Smoorenburg, <miquels@cistron.nl>
-# Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
-# Modified by: Daniel Robbins, <drobbins@gentoo.org>
-# Modified by: Martin Schlemmer, <azarah@gentoo.org>
-# Modified by: Mike Frysinger, <vapier@gentoo.org>
-# Modified by: Robin H. Johnson, <robbat2@gentoo.org>
-#
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab-2.86-r12,v 1.3 2009/11/11 21:51:28 vapier Exp $
-
-# Default runlevel.
-id:3:initdefault:
-
-# System initialization, mount local filesystems, etc.
-si::sysinit:/sbin/rc sysinit
-
-# Further system initialization, brings up the boot runlevel.
-rc::bootwait:/sbin/rc boot
-
-l0:0:wait:/sbin/rc shutdown
-l0s:0:wait:/sbin/halt -dhip
-l1:1:wait:/sbin/rc single
-l2:2:wait:/sbin/rc nonetwork
-l3:3:wait:/sbin/rc default
-l4:4:wait:/sbin/rc default
-l5:5:wait:/sbin/rc default
-l6:6:wait:/sbin/rc reboot
-l6r:6:wait:/sbin/reboot -dk
-#z6:6:respawn:/sbin/sulogin
-
-# new-style single-user
-su0:S:wait:/sbin/rc single
-su1:S:wait:/sbin/sulogin
-
-# TERMINALS
-c1:12345:respawn:/sbin/agetty 38400 tty1 linux
-c2:2345:respawn:/sbin/agetty 38400 tty2 linux
-c3:2345:respawn:/sbin/agetty 38400 tty3 linux
-c4:2345:respawn:/sbin/agetty 38400 tty4 linux
-c5:2345:respawn:/sbin/agetty 38400 tty5 linux
-c6:2345:respawn:/sbin/agetty 38400 tty6 linux
-
-# SERIAL CONSOLES
-#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
-#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
-
-# What to do at the "Three Finger Salute".
-ca:12345:ctrlaltdel:/sbin/shutdown -r now
-
-# Used by /etc/init.d/xdm to control DM startup.
-# Read the comments in /etc/init.d/xdm for more
-# info. Do NOT remove, as this will start nothing
-# extra at boot if /etc/init.d/xdm is not added
-# to the "default" runlevel.
-x:a:once:/etc/X11/startDM.sh
-
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch b/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch
deleted file mode 100644
index b5668cf9b44c..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-add support for POSIX capabilites
-
-http://original.killa.net/infosec/caps/
-http://bugs.gentoo.org/5818
-
---- sysvinit/src/init.c
-+++ sysvinit/src/init.c
-@@ -21,6 +21,15 @@
- */
-
- #include <sys/types.h>
-+
-+#ifdef __linux__
-+#include <linux/capability.h>
-+#include <linux/unistd.h>
-+#include <sys/syscall.h>
-+#define capget(header, data) syscall(__NR_capget, header, data)
-+#define capset(header, data) syscall(__NR_capset, header, data)
-+#endif
-+
- #include <sys/stat.h>
- #include <sys/ioctl.h>
- #include <sys/wait.h>
-@@ -2348,6 +2357,11 @@ int init_main()
- pid_t rc;
- int f, st;
-
-+#ifdef __linux__
-+ cap_user_header_t head;
-+ cap_user_data_t data;
-+#endif
-+
- if (!reload) {
-
- #if INITDEBUG
-@@ -2438,6 +2452,31 @@ int init_main()
- SETSIG(sa, SIGCHLD, chld_handler, SA_RESTART);
- }
-
-+#ifdef __linux__
-+ /*
-+ * This seems like the right place to do this, just before
-+ * we read /etc/inittab...
-+ */
-+
-+ head = malloc(sizeof(head));
-+ if ((data = malloc(sizeof(data))) == NULL)
-+ free(head);
-+
-+ if (head && data) {
-+ head->pid = 0;
-+ head->version = _LINUX_CAPABILITY_VERSION;
-+
-+ if (capget(head, data) == 0) {
-+ /* Max out the inheritable capability set. */
-+ data->inheritable = data->effective;
-+ capset(head, data);
-+ }
-+
-+ free(head);
-+ free(data);
-+ }
-+#endif
-+
- /*
- * Start normal boot procedure.
- */
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-build.patch b/sys-apps/sysvinit/files/sysvinit-2.86-build.patch
deleted file mode 100644
index 0f3e1f0b5e45..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-build.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- sysvinit/src/Makefile
-+++ sysvinit/src/Makefile
-@@ -10,5 +10,3 @@
-
--CC = gcc
--CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
--LDFLAGS = -s
-+CFLAGS += -Wall -D_GNU_SOURCE
- STATIC =
-@@ -48,9 +48,7 @@
- MANDIR = /usr/share/man
-
- # Additional libs for GNU libc.
--ifneq ($(wildcard /usr/lib/libcrypt.a),)
- LCRYPT = -lcrypt
--endif
-
- all: $(BIN) $(SBIN) $(USRBIN)
-
-@@ -112,2 +117,5 @@
- install:
-+ $(INSTALL) -d $(ROOT)/bin $(ROOT)/sbin $(ROOT)/usr/bin \
-+ $(ROOT)/usr/include $(ROOT)/$(MANDIR)/man1 $(ROOT)/$(MANDIR)/man5 \
-+ $(ROOT)/$(MANDIR)/man8
- for i in $(BIN); do \
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-docs.patch b/sys-apps/sysvinit/files/sysvinit-2.86-docs.patch
deleted file mode 100644
index 1ee20d9c7a9d..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-docs.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-Sync both the content and style of `shutdown -h` and `man shutdown`.
-
-http://bugs.gentoo.org/91724
-
---- man/shutdown.8
-+++ man/shutdown.8
-@@ -11,7 +11,7 @@
- .B /sbin/shutdown
-+.RB [ \-akrhPHfFnc ]
- .RB [ \-t
- .IR sec ]
--.RB [ \-arkhncfFHP ]
- .I time
--.RI [ warning-message ]
-+.RI [ "warning message" ]
- .\"}}}
-@@ -41,7 +41,2 @@
- .\"}}}
--.\"{{{ -t sec
--.IP "\fB\-t\fP \fIsec\fP"
--Tell \fBinit\fP(8) to wait \fIsec\fP seconds between sending processes the
--warning and the kill signal, before changing to another runlevel.
--.\"}}}
- .\"{{{ -k
-@@ -58,7 +53,2 @@
- .\"}}}
--.\"{{{ -H
--.IP \fB\-H\fP
--Halt action is to halt or drop into boot monitor on systems that
--support it.
--.\"}}}
- .\"{{{ -P
-@@ -67,7 +57,6 @@
- .\"}}}
--.\"{{{ -n
--.IP \fB\-n\fP
--[DEPRECATED] Don't call \fBinit\fP(8) to do the shutdown but do it ourself.
--The use of this option is discouraged, and its results are not always what
--you'd expect.
-+.\"{{{ -H
-+.IP \fB\-H\fP
-+Halt action is to halt or drop into boot monitor on systems that
-+support it.
- .\"}}}
-@@ -81,2 +70,8 @@
- .\"}}}
-+.\"{{{ -n
-+.IP \fB\-n\fP
-+[DEPRECATED] Don't call \fBinit\fP(8) to do the shutdown but do it ourself.
-+The use of this option is discouraged, and its results are not always what
-+you'd expect.
-+.\"}}}
- .\"{{{ -c
-@@ -87,2 +82,7 @@
- .\"}}}
-+.\"{{{ -t sec
-+.IP "\fB\-t\fP \fIsec\fP"
-+Tell \fBinit\fP(8) to wait \fIsec\fP seconds between sending processes the
-+warning and the kill signal, before changing to another runlevel.
-+.\"}}}
- .\"{{{ time
-@@ -92,3 +92,3 @@
- .\"{{{ warning-message
--.IP \fIwarning-message\fP
-+.IP "\fIwarning message\fP"
- Message to send to all users.
---- src/shutdown.c
-+++ src/shutdown.c
-@@ -104,3 +104,3 @@
- fprintf(stderr,
-- "Usage:\t shutdown [-akrhHPfnc] [-t secs] time [warning message]\n"
-+ "Usage:\t shutdown [-akrhPHfFnc] [-t sec] time [warning message]\n"
- "\t\t -a: use /etc/shutdown.allow\n"
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-execl.patch b/sys-apps/sysvinit/files/sysvinit-2.86-execl.patch
deleted file mode 100644
index 051472519be0..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-execl.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- sysvinit/src/init.c
-+++ sysvinit/src/init.c
-@@ -1893,7 +1893,7 @@ void re_exec(void)
- * The existing init process execs a new init binary.
- */
- env = init_buildenv(0);
-- execl(myname, myname, "--init", NULL, env);
-+ execle(myname, myname, "--init", NULL, env);
-
- /*
- * We shouldn't be here, something failed.
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-off-by-one.patch b/sys-apps/sysvinit/files/sysvinit-2.86-off-by-one.patch
deleted file mode 100644
index 8447e280cbf4..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-off-by-one.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Fix bug where proc names are truncated
-
-http://bugzilla.openvz.org/60
-http://bugs.gentoo.org/110420
-
---- src/init.c
-+++ src/init.c
-@@ -466,7 +466,7 @@
-
- if (maxproclen > 2) {
- memset(argv0, 0, maxproclen);
-- strncpy(argv0, buf, maxproclen - 2);
-+ strncpy(argv0, buf, maxproclen - 1);
- }
-
- return len;
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch b/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch
deleted file mode 100644
index 07f434ef4167..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-This patch makes shutdown use the Single User runlevel by default so
-the gettys are shutdown too.
-
-Roy Marples <uberlord@gentoo.org>
-
-diff -ur sysvinit-2.86.orig/man/shutdown.8 sysvinit-2.86/man/shutdown.8
---- sysvinit-2.86.orig/man/shutdown.8 2006-12-21 10:16:37.000000000 +0000
-+++ sysvinit-2.86/man/shutdown.8 2006-12-21 10:19:51.000000000 +0000
-@@ -27,7 +27,7 @@
- \fBshutdown\fP does its job by signalling the \fBinit\fP process,
- asking it to change the runlevel.
- Runlevel \fB0\fP is used to halt the system, runlevel \fB6\fP is used
--to reboot the system, and runlevel \fB1\fP is used to put to system into
-+to reboot the system, and runlevel \fBS\fP is used to put to system into
- a state where administrative tasks can be performed; this is the default
- if neither the \fI-h\fP or \fI-r\fP flag is given to \fBshutdown\fP.
- To see which actions are taken on halt or reboot see the appropriate
-diff -ur sysvinit-2.86.orig/src/shutdown.c sysvinit-2.86/src/shutdown.c
---- sysvinit-2.86.orig/src/shutdown.c 2006-12-21 10:16:37.000000000 +0000
-+++ sysvinit-2.86/src/shutdown.c 2006-12-21 10:21:03.000000000 +0000
-@@ -463,7 +463,7 @@
- usage();
- exit(1);
- }
-- strcpy(down_level, "1");
-+ strcpy(down_level, "S");
- halttype = NULL;
-
- /* Process the options. */
-@@ -636,6 +636,8 @@
- strcpy(newstate, "for reboot");
- break;
- case '1':
-+ case 'S':
-+ case 's':
- strcpy(newstate, "to maintenance mode");
- break;
- default:
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-usage.patch b/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-usage.patch
deleted file mode 100644
index e69abc205fd8..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-usage.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-Allow non-root users to at least see the help output.
-
-http://bugs.gentoo.org/91724
-
---- src/shutdown.c
-+++ src/shutdown.c
-@@ -462,2 +462,3 @@
- fprintf(stderr, "shutdown: you must be root to do that!\n");
-+ usage();
- exit(1);
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-utmp-64bit.patch b/sys-apps/sysvinit/files/sysvinit-2.86-utmp-64bit.patch
deleted file mode 100644
index 26d1161b7936..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-utmp-64bit.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-On 64bit arches which have 32bit multilib support, the utmp struct is
-the same ... thus we cannot assume that utmp.ut_tv is of type time_t
-
---- sysvinit/src/utmp.c
-+++ sysvinit/src/utmp.c
-@@ -47,6 +47,7 @@ void write_wtmp
- int fd;
- struct utmp utmp;
- struct utsname uname_buf;
-+ struct timeval tv;
-
- /*
- * Try to open the wtmp file. Note that we even try
-@@ -76,7 +77,9 @@ void write_wtmp
- */
- memset(&utmp, 0, sizeof(utmp));
- #if defined(__GLIBC__)
-- gettimeofday(&utmp.ut_tv, NULL);
-+ gettimeofday(&tv, NULL);
-+ utmp.ut_tv.tv_sec = tv.tv_sec;
-+ utmp.ut_tv.tv_usec = tv.tv_usec;
- #else
- time(&utmp.ut_time);
- #endif
-@@ -113,6 +116,7 @@ static void write_utmp
- struct utmp utmp;
- struct utmp tmp;
- struct utmp *utmptr;
-+ struct timeval tv;
-
- /*
- * Can't do much if UTMP_FILE is not present.
-@@ -144,7 +148,9 @@ static void write_utmp
- utmp.ut_pid = pid;
- strncpy(utmp.ut_id, id, sizeof(utmp.ut_id));
- #if defined(__GLIBC__)
-- gettimeofday(&utmp.ut_tv, NULL);
-+ gettimeofday(&tv, NULL);
-+ utmp.ut_tv.tv_sec = tv.tv_sec;
-+ utmp.ut_tv.tv_usec = tv.tv_usec;
- #else
- time(&utmp.ut_time);
- #endif
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch b/sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch
deleted file mode 100644
index eb04da9a7b14..000000000000
--- a/sys-apps/sysvinit/files/sysvinit-2.86-utmp-smp.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- 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-r10.ebuild b/sys-apps/sysvinit/sysvinit-2.86-r10.ebuild
deleted file mode 100644
index 3361f660c428..000000000000
--- a/sys-apps/sysvinit/sysvinit-2.86-r10.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r10.ebuild,v 1.8 2008/01/10 09:01:21 vapier 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 kernel_FreeBSD"
-
-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}"/${P}-off-by-one.patch
- epatch "${DISTDIR}"/${P}-kexec.patch
- epatch "${FILESDIR}"/${P}-execl.patch
- epatch "${FILESDIR}"/${P}-utmp-64bit.patch
- epatch "${FILESDIR}"/${P}-shutdown-single.patch
- epatch "${FILESDIR}"/${P}-utmp-smp.patch
- epatch "${FILESDIR}"/${P}-build.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'
- 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
- if use kernel_FreeBSD ; then
- sed -i \
- -e 's/linux/cons25/g' \
- -e 's/ttyS0/cuaa0/g' \
- -e 's/ttyS1/cuaa1/g' \
- inittab #121786
- fi
- [[ -n ${insert} ]] && echo "# Architecture specific features"$'\n'"${insert}" >> inittab
-}
-
-src_compile() {
- use static && append-ldflags -static
- emake -C src \
- CC="$(tc-getCC)" \
- all change_console \
- || die
-}
-
-src_install() {
- emake -C src \
- install \
- ROOT="${D}" \
- || die "make install"
- dodoc README doc/*
-
- into /
- dosbin src/change_console || die
- doman src/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
-}