]> git.pld-linux.org Git - packages/SysVinit.git/blame - sysvinit-paths.patch
- updated to 2.77,
[packages/SysVinit.git] / sysvinit-paths.patch
CommitLineData
cbb242b0 1diff -Nur sysvinit-2.76/src/Makefile sysvinit-2.76.pld/src/Makefile
2--- sysvinit-2.76/src/Makefile Wed Sep 2 14:04:07 1998
cb15cdeb 3+++ sysvinit-2.76.pld/src/Makefile Sun May 23 15:39:08 1999
cbb242b0 4@@ -8,8 +8,9 @@
5 # Version: @(#)Makefile 2.75 30-Jul-1998 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 #CFLAGS = -Wall -g -pg -D_GNU_SOURCE
15 #LDFLAGS = -pg
16@@ -89,7 +90,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@@ -97,15 +99,15 @@
27 cd $(ROOT)/sbin; ln -sf halt poweroff; chown $(BIN_COMBO) poweroff
28 cd $(ROOT)/sbin; ln -sf init telinit; chown $(BIN_COMBO) telinit
29 cd $(ROOT)/bin; ln -sf ../sbin/killall5 pidof; chown $(BIN_COMBO) pidof
30- cd $(ROOT)/usr/bin; ln -sf last lastb; chown $(BIN_COMBO) lastb
cb15cdeb 31+ cd $(ROOT)/usr/bin; ln -sf last lastb; chown $(BIN_COMBO) lastb
cbb242b0 32 $(INSTALL) -m 644 initreq.h $(ROOT)/usr/include
33- $(INSTALL) -m 644 ../man/*.8 $(ROOT)/usr/man/man8
34- $(INSTALL) -m 644 ../man/*.5 $(ROOT)/usr/man/man5
35+ $(INSTALL) -m 644 ../man/*.8 $(ROOT)/usr/share/man/man8
36+ $(INSTALL) -m 644 ../man/*.5 $(ROOT)/usr/share/man/man5
37 ifeq ($(DEBIAN),)
38- $(INSTALL) -m 644 ../man/wall.1 $(ROOT)/usr/man/man1
39+ $(INSTALL) -m 644 ../man/wall.1 $(ROOT)/usr/share/man/man1
40 endif
41- $(INSTALL) -m 644 ../man/last.1 ../man/lastb.1 ../man/mesg.1 \
42- $(ROOT)/usr/man/man1
43+ $(INSTALL) -m 644 ../man/last.1 ../man/mesg.1 \
44+ $(ROOT)/usr/share/man/man1
45 #
46 # This part is skipped on debian systems, the
47 # debian.preinst script takes care of it.
cb15cdeb 48diff -Nur sysvinit-2.76/src/last.c sysvinit-2.76.pld/src/last.c
49--- sysvinit-2.76/src/last.c Fri May 29 15:02:58 1998
50+++ sysvinit-2.76.pld/src/last.c Sun May 23 15:35:34 1999
51@@ -234,7 +234,7 @@
52 * Try to be smart about the location of the BTMP file
53 */
54 #ifndef BTMP_FILE
55-#define BTMP_FILE getbtmp()
56+#define BTMP_FILE "/var/log/btmpx"
57 char *getbtmp()
58 {
59 static char btmp[128];
cbb242b0 60diff -Nur sysvinit-2.76/src/paths.h sysvinit-2.76.pld/src/paths.h
61--- sysvinit-2.76/src/paths.h Wed Nov 26 15:23:12 1997
cb15cdeb 62+++ sysvinit-2.76.pld/src/paths.h Sun May 23 15:23:48 1999
cbb242b0 63@@ -28,7 +28,7 @@
64 #define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */
65 #define IOSAVE "/etc/ioctl.save" /* termios settings for SU */
66 #define SHELL "/bin/sh" /* Default shell */
67-#define INITSCRIPT "/etc/initscript" /* Initscript. */
3f9f1f21 68+#define INITSCRIPT "/etc/rc.d/initscript" /* Initscript. */
cbb242b0 69 #if 0
70 #define HALTSCRIPT1 "/etc/init.d/halt" /* Called by "fast" shutdown */
71 #define HALTSCRIPT2 "/etc/rc.d/rc.0" /* Called by "fast" shutdown */
72diff -Nur sysvinit-2.76/src/utmpdump.c sysvinit-2.76.pld/src/utmpdump.c
73--- sysvinit-2.76/src/utmpdump.c Tue Aug 13 11:57:12 1996
cb15cdeb 74+++ sysvinit-2.76.pld/src/utmpdump.c Sun May 23 15:23:48 1999
cbb242b0 75@@ -48,10 +48,10 @@
76
77 for(f = 1; f < argc; f++) {
78 if (strcmp(argv[f], "-") == 0) {
79- printf("Utmp dump of stdin\n");
80+ printf("Utmpx dump of stdin\n");
81 dump(stdin);
82 } else if ((fp = fopen(argv[f], "r")) != NULL) {
83- printf("Utmp dump of %s\n", argv[f]);
84+ printf("Utmpx dump of %s\n", argv[f]);
85 dump(fp);
86 fclose(fp);
87 } else
This page took 0.129078 seconds and 4 git commands to generate.