]> git.pld-linux.org Git - packages/SysVinit.git/blame - sysvinit-paths.patch
for logrotate
[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
3+++ sysvinit-2.76.pld/src/Makefile Sun May 23 10:03:41 1999
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
31+ # cd $(ROOT)/usr/bin; ln -sf last lastb; chown $(BIN_COMBO) lastb
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.
48diff -Nur sysvinit-2.76/src/paths.h sysvinit-2.76.pld/src/paths.h
49--- sysvinit-2.76/src/paths.h Wed Nov 26 15:23:12 1997
50+++ sysvinit-2.76.pld/src/paths.h Sun May 23 10:04:37 1999
51@@ -28,7 +28,7 @@
52 #define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */
53 #define IOSAVE "/etc/ioctl.save" /* termios settings for SU */
54 #define SHELL "/bin/sh" /* Default shell */
55-#define INITSCRIPT "/etc/initscript" /* Initscript. */
56+#define INITSCRIPT "/etc/sysconfig/initscript" /* Initscript. */
57 #if 0
58 #define HALTSCRIPT1 "/etc/init.d/halt" /* Called by "fast" shutdown */
59 #define HALTSCRIPT2 "/etc/rc.d/rc.0" /* Called by "fast" shutdown */
60diff -Nur sysvinit-2.76/src/utmpdump.c sysvinit-2.76.pld/src/utmpdump.c
61--- sysvinit-2.76/src/utmpdump.c Tue Aug 13 11:57:12 1996
62+++ sysvinit-2.76.pld/src/utmpdump.c Sun May 23 10:03:41 1999
63@@ -48,10 +48,10 @@
64
65 for(f = 1; f < argc; f++) {
66 if (strcmp(argv[f], "-") == 0) {
67- printf("Utmp dump of stdin\n");
68+ printf("Utmpx dump of stdin\n");
69 dump(stdin);
70 } else if ((fp = fopen(argv[f], "r")) != NULL) {
71- printf("Utmp dump of %s\n", argv[f]);
72+ printf("Utmpx dump of %s\n", argv[f]);
73 dump(fp);
74 fclose(fp);
75 } else
This page took 0.039167 seconds and 4 git commands to generate.