diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2012-09-26 01:10:42 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:51:55 +0200 |
commit | 9664bee729d487bcc0a0bc35859f8e13d5421c75 (patch) | |
tree | b428a16618e36ed864a8d76ea3435e19a452bf90 /source/a/sysvinit | |
parent | 75a4a592e5ccda30715f93563d741b83e0dcf39e (diff) | |
download | current-9664bee729d487bcc0a0bc35859f8e13d5421c75.tar.gz current-9664bee729d487bcc0a0bc35859f8e13d5421c75.tar.xz |
Slackware 14.0slackware-14.0
Wed Sep 26 01:10:42 UTC 2012
Slackware 14.0 x86_64 stable is released!
We're perfectionists here at Slackware, so this release has been a long
time a-brewing. But we think you'll agree that it was worth the wait.
Slackware 14.0 combines modern components, ease of use, and flexible
configuration... our "KISS" philosophy demands it.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
Thanks to everyone who helped make this happen. The Slackware team, the
upstream developers, and (of course) the awesome Slackware user
community.
Have fun! :-)
Diffstat (limited to 'source/a/sysvinit')
-rw-r--r-- | source/a/sysvinit/sysvinit-2.86-timeval.patch | 42 | ||||
-rwxr-xr-x | source/a/sysvinit/sysvinit.SlackBuild | 26 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.diff | 125 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.paths.diff | 13 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.pidof.rhforkseverything.diff | 81 |
5 files changed, 23 insertions, 264 deletions
diff --git a/source/a/sysvinit/sysvinit-2.86-timeval.patch b/source/a/sysvinit/sysvinit-2.86-timeval.patch deleted file mode 100644 index acb0d5b68..000000000 --- a/source/a/sysvinit/sysvinit-2.86-timeval.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- sysvinit-2.86/src/utmp.c.timeval 1999-06-09 07:11:33.000000000 -0400 -+++ sysvinit-2.86/src/utmp.c 2006-08-09 19:46:26.000000000 -0400 -@@ -47,7 +47,8 @@ - int fd; - struct utmp utmp; - struct utsname uname_buf; -- -+ struct timeval tv; -+ - /* - * Try to open the wtmp file. Note that we even try - * this if we have updwtmp() so we can see if the -@@ -76,7 +77,9 @@ - */ - 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 @@ - 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 @@ - 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/source/a/sysvinit/sysvinit.SlackBuild b/source/a/sysvinit/sysvinit.SlackBuild index 194ebf144..2a9459c2d 100755 --- a/source/a/sysvinit/sysvinit.SlackBuild +++ b/source/a/sysvinit/sysvinit.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2005-2010 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2005-2012 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,8 +21,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=${VERSION:-2.86} -BUILD=${BUILD:-6} +VERSION=${VERSION:-2.88dsf} +BUILD=${BUILD:-2} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -43,29 +43,23 @@ mkdir -p $TMP $PKG cd $TMP rm -rf sysvinit-$VERSION -tar xzvf $CWD/sysvinit-$VERSION.tar.gz || exit 1 +tar xvf $CWD/sysvinit-$VERSION.tar.xz || exit 1 cd sysvinit-$VERSION chown -R root:root . -zcat $CWD/sysvinit.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig || exit 1 -zcat $CWD/sysvinit.pidof.rhforkseverything.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig || exit 1 -if [ "$ARCH" = "x86_64" ]; then - # Don't overwrite ut_addr_v6 in utmp records on 64-bit platforms - zcat $CWD/sysvinit-2.86-timeval.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig || exit 1 -fi + +# Fix paths for /etc/forcefsck and /etc/fastboot: +zcat $CWD/sysvinit.paths.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig || exit 1 cd doc mkdir -p $PKG/usr/doc/sysvinit-$VERSION -cp -a Install Propaganda sysvinit-$VERSION.lsm \ +cp -a Install Propaganda sysvinit-2.86.lsm \ + ../COPYING* ../COPYRIGHT ../README* \ $PKG/usr/doc/sysvinit-$VERSION chmod -R 644 $PKG/usr/doc/sysvinit-$VERSION/* chmod 755 $PKG/usr/doc/sysvinit-$VERSION cd ../src -if [ "$ARCH" = "x86_64" ]; then - # static 'init' segfaults, so your computer never reaches command prompt: - sed -i -e "s/-static//" Makefile -fi -make clobber +make clobber || exit 1 make || exit 1 mkdir -p $PKG/sbin diff --git a/source/a/sysvinit/sysvinit.diff b/source/a/sysvinit/sysvinit.diff deleted file mode 100644 index 11477be72..000000000 --- a/source/a/sysvinit/sysvinit.diff +++ /dev/null @@ -1,125 +0,0 @@ -diff -Naur sysvinit-2.86.orig/man/init.8 sysvinit-2.86/man/init.8 ---- sysvinit-2.86.orig/man/init.8 2004-07-29 13:21:31.000000000 +0200 -+++ sysvinit-2.86/man/init.8 2007-12-23 12:22:51.000000000 +0100 -@@ -76,7 +76,7 @@ - are processed. - .PP - When starting a new process, \fBinit\fP first checks whether the file --\fI/etc/initscript\fP exists. If it does, it uses this script to -+\fI/sbin/initscript\fP exists. If it does, it uses this script to - start the process. - .PP - Each time a child terminates, \fBinit\fP records the fact and the reason -@@ -240,7 +240,7 @@ - .SH FILES - .nf - /etc/inittab --/etc/initscript -+/sbin/initscript - /dev/console - /var/run/utmp - /var/log/wtmp -diff -Naur sysvinit-2.86.orig/man/initscript.5 sysvinit-2.86/man/initscript.5 ---- sysvinit-2.86.orig/man/initscript.5 2004-06-09 14:47:45.000000000 +0200 -+++ sysvinit-2.86/man/initscript.5 2007-12-23 12:22:51.000000000 +0100 -@@ -2,15 +2,15 @@ - .SH NAME - initscript \- script that executes inittab commands. - .SH SYNOPSIS --/bin/sh /etc/initscript id runlevels action process -+/bin/sh /sbin/initscript id runlevels action process - .SH DESCRIPTION --When the shell script \fI/etc/initscript\fP is present, \fBinit\fP -+When the shell script \fI/sbin/initscript\fP is present, \fBinit\fP - will use it to execute the commands from \fIinittab\fP. - This script can be used to set things like \fBulimit\fP and - \fBumask\fP default values for every process. - .SH EXAMPLES - This is a sample initscript, which might be installed on your --system as \fI/etc/initscript.sample\fP. -+system as \fI/sbin/initscript.sample\fP. - .RS - .sp - .nf -@@ -20,7 +20,7 @@ - # initscript Executed by init(8) for every program it - # wants to spawn like this: - # --# /bin/sh /etc/initscript <id> <level> <action> <process> -+# /bin/sh /sbin/initscript <id> <level> <action> <process> - # - - # Set umask to safe level, and enable core dumps. -@@ -48,7 +48,7 @@ - .RE - .SH FILES - /etc/inittab, --/etc/initscript. -+/sbin/initscript. - .SH AUTHOR - Miquel van Smoorenburg ,<miquels@cistron.nl> - .SH "SEE ALSO" -diff -Naur sysvinit-2.86.orig/src/Makefile sysvinit-2.86/src/Makefile ---- sysvinit-2.86.orig/src/Makefile 2004-06-09 14:47:45.000000000 +0200 -+++ sysvinit-2.86/src/Makefile 2007-12-23 12:22:51.000000000 +0100 -@@ -11,7 +11,7 @@ - CC = gcc - CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE - LDFLAGS = -s --STATIC = -+STATIC = -static - - # For some known distributions we do not build all programs, otherwise we do. - BIN = -diff -Naur sysvinit-2.86.orig/src/initscript.sample sysvinit-2.86/src/initscript.sample ---- sysvinit-2.86.orig/src/initscript.sample 1997-11-26 14:06:33.000000000 +0100 -+++ sysvinit-2.86/src/initscript.sample 2007-12-23 12:22:51.000000000 +0100 -@@ -1,14 +1,14 @@ - # --# initscript If this script is intalled as /etc/initscript, -+# initscript If this script is intalled as /sbin/initscript, - # it is executed by init(8) for every program it - # wants to spawn like this: - # --# /bin/sh /etc/initscript <id> <level> <action> <process> -+# /bin/sh /sbin/initscript <id> <level> <action> <process> - # - # It can be used to set the default umask and ulimit - # of all processes. By default this script is installed --# as /etc/initscript.sample, so to enable it you must --# rename this script first to /etc/initscript. -+# as /sbin/initscript.sample, so to enable it you must -+# rename this script first to /sbin/initscript. - # - # Version: @(#)initscript 1.10 10-Dec-1995 MvS. - # -diff -Naur sysvinit-2.86.orig/src/paths.h sysvinit-2.86/src/paths.h ---- sysvinit-2.86.orig/src/paths.h 2004-06-09 14:47:45.000000000 +0200 -+++ sysvinit-2.86/src/paths.h 2007-12-23 12:23:50.000000000 +0100 -@@ -20,21 +20,21 @@ - #define INITTAB "/etc/inittab" /* Location of inittab */ - #define INIT "/sbin/init" /* Location of init itself. */ - #define NOLOGIN "/etc/nologin" /* Stop user logging in. */ --#define FASTBOOT "/fastboot" /* Enable fast boot. */ --#define FORCEFSCK "/forcefsck" /* Force fsck on boot */ -+#define FASTBOOT "/etc/fastboot" /* Enable fast boot. */ -+#define FORCEFSCK "/etc/forcefsck" /* Force fsck on boot */ - #define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */ - #define SHELL "/bin/sh" /* Default shell */ - #define SULOGIN "/sbin/sulogin" /* Sulogin */ --#define INITSCRIPT "/etc/initscript" /* Initscript. */ -+#define INITSCRIPT "/sbin/initscript" /* Initscript. */ - #define PWRSTAT "/etc/powerstatus" /* COMPAT: SIGPWR reason (OK/BAD) */ - - #if 0 - #define INITLVL "/etc/initrunlvl" /* COMPAT: New runlevel */ - #define INITLVL2 "/var/log/initrunlvl" /* COMPAT: New runlevel */ - /* Note: INITLVL2 definition needs INITLVL */ --#define HALTSCRIPT1 "/etc/init.d/halt" /* Called by "fast" shutdown */ -+#define HALTSCRIPT1 "/etc/init.d/rc.halt" /* Called by "fast" shutdown */ - #define HALTSCRIPT2 "/etc/rc.d/rc.0" /* Called by "fast" shutdown */ --#define REBOOTSCRIPT1 "/etc/init.d/reboot" /* Ditto. */ -+#define REBOOTSCRIPT1 "/etc/init.d/rc.reboot" /* Ditto. */ - #define REBOOTSCRIPT2 "/etc/rc.d/rc.6" /* Ditto. */ - #endif - diff --git a/source/a/sysvinit/sysvinit.paths.diff b/source/a/sysvinit/sysvinit.paths.diff new file mode 100644 index 000000000..453a677c0 --- /dev/null +++ b/source/a/sysvinit/sysvinit.paths.diff @@ -0,0 +1,13 @@ +--- ./src/paths.h.orig 2010-04-11 04:30:27.000000000 -0500 ++++ ./src/paths.h 2012-07-31 11:43:40.646053052 -0500 +@@ -29,8 +29,8 @@ + #define INITTAB "/etc/inittab" /* Location of inittab */ + #define INIT "/sbin/init" /* Location of init itself. */ + #define NOLOGIN "/etc/nologin" /* Stop user logging in. */ +-#define FASTBOOT "/fastboot" /* Enable fast boot. */ +-#define FORCEFSCK "/forcefsck" /* Force fsck on boot */ ++#define FASTBOOT "/etc/fastboot" /* Enable fast boot. */ ++#define FORCEFSCK "/etc/forcefsck" /* Force fsck on boot */ + #define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */ + #define SHELL "/bin/sh" /* Default shell */ + #define SULOGIN "/sbin/sulogin" /* Sulogin */ diff --git a/source/a/sysvinit/sysvinit.pidof.rhforkseverything.diff b/source/a/sysvinit/sysvinit.pidof.rhforkseverything.diff deleted file mode 100644 index db94dcf19..000000000 --- a/source/a/sysvinit/sysvinit.pidof.rhforkseverything.diff +++ /dev/null @@ -1,81 +0,0 @@ ---- sysvinit-2.86/man/pidof.8.chroot 1998-09-02 08:49:33.000000000 -0400 -+++ sysvinit-2.86/man/pidof.8 2005-12-19 15:37:40.000000000 -0500 -@@ -4,6 +4,7 @@ - .SH SYNOPSIS - .B pidof - .RB [ \-s ] -+.RB [ \-c ] - .RB [ \-x ] - .RB [ \-o - .IR omitpid ] -@@ -24,6 +25,10 @@ - .SH OPTIONS - .IP -s - Single shot - this instructs the program to only return one \fIpid\fP. -+.IP -c -+Only return process ids that are running with the same root directory. -+This option does not make sense for non-root users, as they will be -+unable to check the current root directory of processes they do not own. - .IP -x - Scripts too - this causes the program to also return process id's of - shells running the named scripts. ---- sysvinit-2.86/src/killall5.c.chroot 2004-07-30 08:16:23.000000000 -0400 -+++ sysvinit-2.86/src/killall5.c 2005-12-19 15:38:47.000000000 -0500 -@@ -476,16 +476,22 @@ - int f; - int first = 1; - int i, oind, opt, flags = 0; -+ int chroot_check = 0; -+ struct stat st; -+ char tmp[512]; - - for (oind = PIDOF_OMITSZ-1; oind > 0; oind--) - opid[oind] = 0; - opterr = 0; - -- while ((opt = getopt(argc,argv,"ho:sx")) != EOF) switch (opt) { -+ while ((opt = getopt(argc,argv,"hco:sx")) != EOF) switch (opt) { - case '?': - nsyslog(LOG_ERR,"invalid options on command line!\n"); - closelog(); - exit(1); -+ case 'c': -+ chroot_check = 1; -+ break; - case 'o': - if (oind >= PIDOF_OMITSZ -1) { - nsyslog(LOG_ERR,"omit pid buffer size %d " -@@ -518,6 +524,16 @@ - argc -= optind; - argv += optind; - -+ /* Check if we are in a chroot */ -+ if (chroot_check) { -+ snprintf(tmp, 512, "/proc/%d/root", getpid()); -+ if (stat(tmp, &st) < 0) { -+ nsyslog(LOG_ERR, "stat failed for %s!\n", tmp); -+ closelog(); -+ exit(1); -+ } -+ } -+ - /* Print out process-ID's one by one. */ - readproc(); - for(f = 0; f < argc; f++) { -@@ -541,6 +557,16 @@ - else - spid = 1; - } -+ if (chroot_check) { -+ struct stat st2; -+ snprintf(tmp, 512, "/proc/%d/root", -+ p->pid); -+ if (stat(tmp, &st2) < 0 || -+ st.st_dev != st2.st_dev || -+ st.st_ino != st2.st_ino) { -+ continue; -+ } -+ } - if (!first) - printf(" "); - printf("%d", p->pid); |