]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-paths.patch
- rotate wtmpx monthly (or maybe don't rotate at all?)
[packages/SysVinit.git] / sysvinit-paths.patch
1 --- sysvinit-2.86/src/Makefile.orig     2004-06-09 14:47:45.000000000 +0200
2 +++ sysvinit-2.86/src/Makefile  2004-12-26 22:40:47.622737944 +0100
3 @@ -9,7 +9,8 @@
4  #
5  
6  CC     = gcc
7 -CFLAGS = -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE
8 +OPTIMIZE = -O2 -fomit-frame-pointer
9 +CFLAGS = -Wall $(OPTIMIZE) -D_GNU_SOURCE
10  LDFLAGS        = -s
11  STATIC =
12  
13 @@ -26,7 +27,7 @@
14  ifeq ($(DISTRO),)
15  BIN    += mountpoint
16  SBIN   += sulogin bootlogd
17 -USRBIN += utmpdump wall
18 +USRBIN += utmpx-dump wall
19  MAN1   += mountpoint.1 wall.1
20  MAN8   += sulogin.8 bootlogd.8
21  endif
22 @@ -71,7 +72,7 @@
23  mountpoint:    mountpoint.o
24                 $(CC) $(LDFLAGS) -o $@ mountpoint.o
25  
26 -utmpdump:      utmpdump.o
27 +utmpx-dump:    utmpdump.o
28                 $(CC) $(LDFLAGS) -o $@ utmpdump.o
29  
30  runlevel:      runlevel.o
31 --- sysvinit-2.86/src/paths.h.orig      2004-06-09 14:47:45.000000000 +0200
32 +++ sysvinit-2.86/src/paths.h   2004-12-26 22:41:21.122645184 +0100
33 @@ -25,7 +25,7 @@
34  #define SDPID          "/var/run/shutdown.pid" /* PID of shutdown program */
35  #define SHELL          "/bin/sh"               /* Default shell */
36  #define SULOGIN                "/sbin/sulogin"         /* Sulogin */
37 -#define INITSCRIPT     "/etc/initscript"       /* Initscript. */
38 +#define INITSCRIPT     "/etc/rc.d/rc.init"     /* Initscript. */
39  #define PWRSTAT                "/etc/powerstatus"      /* COMPAT: SIGPWR reason (OK/BAD) */
40  
41  #if 0
42 diff -Nru sysvinit-2.85.orig/src/utmpdump.c sysvinit-2.85/src/utmpdump.c
43 --- sysvinit-2.85.orig/src/utmpdump.c   Tue Sep 12 23:14:24 2000
44 +++ sysvinit-2.85/src/utmpdump.c        Thu Apr 24 12:05:06 2003
45 @@ -265,14 +265,14 @@
46         }
47  
48         if (optind < argc) {
49 -               fprintf(stderr, "Utmp %sdump of %s\n", reverse ? "un" : "", argv[optind]);
50 +               fprintf(stderr, "Utmpx %sdump of %s\n", reverse ? "un" : "", argv[optind]);
51                 if ((fp = fopen(argv[optind], "r")) == NULL) {
52                         perror("Unable to open file");
53                         exit(1);
54                 }
55         }
56         else {
57 -               fprintf(stderr, "Utmp %sdump of stdin\n", reverse ? "un" : "");
58 +               fprintf(stderr, "Utmpx %sdump of stdin\n", reverse ? "un" : "");
59                 fp = stdin;
60         }
61  
This page took 0.036823 seconds and 3 git commands to generate.