]> git.pld-linux.org Git - packages/SysVinit.git/blame - sysvinit-paths.patch
- new patches
[packages/SysVinit.git] / sysvinit-paths.patch
CommitLineData
b299aa8c 1diff -Nru sysvinit-2.85.orig/src/Makefile sysvinit-2.85/src/Makefile
2--- sysvinit-2.85.orig/src/Makefile Tue Nov 6 12:58:16 2001
3+++ sysvinit-2.85/src/Makefile Thu Apr 24 12:05:06 2003
cbb242b0 4@@ -8,8 +8,9 @@
b299aa8c 5 # Version: @(#)Makefile 2.83-3 06-Nov-2001 miquels@cistron.nl
cbb242b0 6 #
7
8-CC = cc
9-CFLAGS = -Wall -O2 -D_GNU_SOURCE
10+CC = gcc
11+OPTIMIZE = -O2
12+CFLAGS = -Wall $(OPTIMIZE) -D_GNU_SOURCE
13 LDFLAGS = -s
da5a9b6e
AM
14 STATIC =
15
b299aa8c 16@@ -89,7 +90,8 @@
cbb242b0 17 runlevel shutdown $(ROOT)/sbin
18 # These are not installed by default
19 ifeq ($(DEBIAN),)
20- $(INSTALL) -m 555 utmpdump wall $(ROOT)/usr/bin
21+ $(INSTALL) -m 755 wall $(ROOT)/usr/bin
22+ $(INSTALL) -m 755 utmpdump $(ROOT)/usr/bin/utmpx-dump
23 endif
24 # $(INSTALL) -m 755 etc/initscript.sample $(ROOT)/etc
25 $(INSTALL) -m 755 mesg last $(ROOT)/usr/bin
b299aa8c 26diff -Nru sysvinit-2.85.orig/src/paths.h sysvinit-2.85/src/paths.h
27--- sysvinit-2.85.orig/src/paths.h Mon Apr 14 13:37:01 2003
28+++ sysvinit-2.85/src/paths.h Thu Apr 24 12:06:06 2003
29@@ -24,7 +24,7 @@
30 #define FORCEFSCK "/forcefsck" /* Force fsck on boot */
cbb242b0 31 #define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */
cbb242b0 32 #define SHELL "/bin/sh" /* Default shell */
33-#define INITSCRIPT "/etc/initscript" /* Initscript. */
6c6a80f7 34+#define INITSCRIPT "/etc/rc.d/rc.init" /* Initscript. */
b299aa8c 35 #define PWRSTAT "/etc/powerstatus" /* COMPAT: SIGPWR reason (OK/BAD) */
36
cbb242b0 37 #if 0
b299aa8c 38diff -Nru sysvinit-2.85.orig/src/utmpdump.c sysvinit-2.85/src/utmpdump.c
39--- sysvinit-2.85.orig/src/utmpdump.c Tue Sep 12 23:14:24 2000
40+++ sysvinit-2.85/src/utmpdump.c Thu Apr 24 12:05:06 2003
41@@ -265,14 +265,14 @@
69d66f10 42 }
43
44 if (optind < argc) {
45- fprintf(stderr, "Utmp %sdump of %s\n", reverse ? "un" : "", argv[optind]);
46+ fprintf(stderr, "Utmpx %sdump of %s\n", reverse ? "un" : "", argv[optind]);
47 if ((fp = fopen(argv[optind], "r")) == NULL) {
48 perror("Unable to open file");
49 exit(1);
50 }
51 }
52 else {
53- fprintf(stderr, "Utmp %sdump of stdin\n", reverse ? "un" : "");
54+ fprintf(stderr, "Utmpx %sdump of stdin\n", reverse ? "un" : "");
55 fp = stdin;
56 }
cbb242b0 57
This page took 0.103863 seconds and 4 git commands to generate.