]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-paths.patch
- removed btmp hack
[packages/SysVinit.git] / sysvinit-paths.patch
1 diff -urN sysvinit-2.78.org/src/Makefile sysvinit-2.78/src/Makefile
2 --- sysvinit-2.78.org/src/Makefile      Thu Mar  2 18:17:48 2000
3 +++ sysvinit-2.78/src/Makefile  Thu Mar  2 18:18:08 2000
4 @@ -8,8 +8,9 @@
5  # Version:     @(#)Makefile  2.78  13-Nov-1999  miquels@cistron.nl
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
14  STATIC =
15  
16 @@ -88,7 +89,8 @@
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
26 diff -urN sysvinit-2.78.org/src/paths.h sysvinit-2.78/src/paths.h
27 --- sysvinit-2.78.org/src/paths.h       Thu Mar  2 18:17:48 2000
28 +++ sysvinit-2.78/src/paths.h   Thu Mar  2 18:18:08 2000
29 @@ -28,7 +28,7 @@
30  #define SDPID          "/var/run/shutdown.pid" /* PID of shutdown program */
31  #define IOSAVE         "/etc/ioctl.save"       /* termios settings for SU */
32  #define SHELL          "/bin/sh"               /* Default shell */
33 -#define INITSCRIPT     "/etc/initscript"       /* Initscript. */
34 +#define INITSCRIPT     "/etc/rc.d/rc.init"     /* Initscript. */
35  #if 0
36  #define HALTSCRIPT1    "/etc/init.d/halt"      /* Called by "fast" shutdown */
37  #define HALTSCRIPT2    "/etc/rc.d/rc.0"        /* Called by "fast" shutdown */
38 diff -urN sysvinit-2.78.org/src/utmpdump.c sysvinit-2.78/src/utmpdump.c
39 --- sysvinit-2.78.org/src/utmpdump.c    Thu Mar  2 18:17:48 2000
40 +++ sysvinit-2.78/src/utmpdump.c        Thu Mar  2 18:18:08 2000
41 @@ -263,14 +263,14 @@
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         }
57  
This page took 0.062475 seconds and 4 git commands to generate.