aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/Config.in36
-rw-r--r--sysklogd/Kbuild11
-rw-r--r--sysklogd/Makefile22
-rw-r--r--sysklogd/Makefile.in32
4 files changed, 29 insertions, 72 deletions
diff --git a/sysklogd/Config.in b/sysklogd/Config.in
index 399315208..9875b3c12 100644
--- a/sysklogd/Config.in
+++ b/sysklogd/Config.in
@@ -5,7 +5,7 @@
5 5
6menu "System Logging Utilities" 6menu "System Logging Utilities"
7 7
8config CONFIG_SYSLOGD 8config SYSLOGD
9 bool "syslogd" 9 bool "syslogd"
10 default n 10 default n
11 help 11 help
@@ -20,18 +20,18 @@ config CONFIG_SYSLOGD
20 wrong. And something almost always will go wrong if 20 wrong. And something almost always will go wrong if
21 you wait long enough.... 21 you wait long enough....
22 22
23config CONFIG_FEATURE_ROTATE_LOGFILE 23config FEATURE_ROTATE_LOGFILE
24 bool "Rotate message files" 24 bool "Rotate message files"
25 default n 25 default n
26 depends on CONFIG_SYSLOGD 26 depends on SYSLOGD
27 help 27 help
28 This enables syslogd to rotate the message files 28 This enables syslogd to rotate the message files
29 on his own. No need to use an external rotatescript. 29 on his own. No need to use an external rotatescript.
30 30
31config CONFIG_FEATURE_REMOTE_LOG 31config FEATURE_REMOTE_LOG
32 bool "Remote Log support" 32 bool "Remote Log support"
33 default n 33 default n
34 depends on CONFIG_SYSLOGD 34 depends on SYSLOGD
35 help 35 help
36 When you enable this feature, the syslogd utility can 36 When you enable this feature, the syslogd utility can
37 be used to send system log messages to another system 37 be used to send system log messages to another system
@@ -42,10 +42,10 @@ config CONFIG_FEATURE_REMOTE_LOG
42 measure to prevent system logs from being tampered with 42 measure to prevent system logs from being tampered with
43 by an intruder. 43 by an intruder.
44 44
45config CONFIG_FEATURE_IPC_SYSLOG 45config FEATURE_IPC_SYSLOG
46 bool "Circular Buffer support" 46 bool "Circular Buffer support"
47 default n 47 default n
48 depends on CONFIG_SYSLOGD 48 depends on SYSLOGD
49 help 49 help
50 When you enable this feature, the syslogd utility will 50 When you enable this feature, the syslogd utility will
51 use a circular buffer to record system log messages. 51 use a circular buffer to record system log messages.
@@ -56,28 +56,28 @@ config CONFIG_FEATURE_IPC_SYSLOG
56 entire filesystem, which may cause your system to 56 entire filesystem, which may cause your system to
57 break badly. 57 break badly.
58 58
59config CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE 59config FEATURE_IPC_SYSLOG_BUFFER_SIZE
60 int " Circular buffer size in Kbytes (minimum 4KB)" 60 int " Circular buffer size in Kbytes (minimum 4KB)"
61 default 16 61 default 16
62 depends on CONFIG_FEATURE_IPC_SYSLOG 62 depends on FEATURE_IPC_SYSLOG
63 help 63 help
64 This option sets the size of the circular buffer 64 This option sets the size of the circular buffer
65 used to record system log messages. 65 used to record system log messages.
66 66
67config CONFIG_LOGREAD 67config LOGREAD
68 bool "logread" 68 bool "logread"
69 default y 69 default y
70 depends on CONFIG_FEATURE_IPC_SYSLOG 70 depends on FEATURE_IPC_SYSLOG
71 help 71 help
72 If you enabled Circular Buffer support, you almost 72 If you enabled Circular Buffer support, you almost
73 certainly want to enable this feature as well. This 73 certainly want to enable this feature as well. This
74 utility will allow you to read the messages that are 74 utility will allow you to read the messages that are
75 stored in the syslogd circular buffer. 75 stored in the syslogd circular buffer.
76 76
77config CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING 77config FEATURE_LOGREAD_REDUCED_LOCKING
78 bool "logread double buffering" 78 bool "logread double buffering"
79 default n 79 default n
80 depends on CONFIG_LOGREAD 80 depends on LOGREAD
81 help 81 help
82 'logread' ouput to slow serial terminals can have 82 'logread' ouput to slow serial terminals can have
83 side effects on syslog because of the semaphore. 83 side effects on syslog because of the semaphore.
@@ -85,11 +85,11 @@ config CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING
85 from circular buffer, minimizing semaphore 85 from circular buffer, minimizing semaphore
86 contention at some minor memory expense. 86 contention at some minor memory expense.
87 87
88config CONFIG_KLOGD 88config KLOGD
89 bool "klogd" 89 bool "klogd"
90 default n 90 default n
91 depends on CONFIG_SYSLOGD 91 depends on SYSLOGD
92 select CONFIG_FEATURE_SYSLOG 92 select FEATURE_SYSLOG
93 help 93 help
94 klogd is a utility which intercepts and logs all 94 klogd is a utility which intercepts and logs all
95 messages from the Linux kernel and sends the messages 95 messages from the Linux kernel and sends the messages
@@ -97,10 +97,10 @@ config CONFIG_KLOGD
97 you wish to record the messages produced by the kernel, 97 you wish to record the messages produced by the kernel,
98 you should enable this option. 98 you should enable this option.
99 99
100config CONFIG_LOGGER 100config LOGGER
101 bool "logger" 101 bool "logger"
102 default n 102 default n
103 select CONFIG_FEATURE_SYSLOG 103 select FEATURE_SYSLOG
104 help 104 help
105 The logger utility allows you to send arbitrary text 105 The logger utility allows you to send arbitrary text
106 messages to the system log (i.e. the 'syslogd' utility) so 106 messages to the system log (i.e. the 'syslogd' utility) so
diff --git a/sysklogd/Kbuild b/sysklogd/Kbuild
new file mode 100644
index 000000000..0d5b2b929
--- /dev/null
+++ b/sysklogd/Kbuild
@@ -0,0 +1,11 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7lib-y:=
8lib-$(CONFIG_KLOGD) += klogd.o
9lib-$(CONFIG_LOGGER) += logger.o
10lib-$(CONFIG_LOGREAD) += logread.o
11lib-$(CONFIG_SYSLOGD) += syslogd.o
diff --git a/sysklogd/Makefile b/sysklogd/Makefile
deleted file mode 100644
index 0ae4f1d35..000000000
--- a/sysklogd/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/sysklogd
14SYSKLOGD_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
diff --git a/sysklogd/Makefile.in b/sysklogd/Makefile.in
deleted file mode 100644
index 83f77be90..000000000
--- a/sysklogd/Makefile.in
+++ /dev/null
@@ -1,32 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7SYSKLOGD_AR:=sysklogd.a
8ifndef $(SYSKLOGD_DIR)
9SYSKLOGD_DIR:=$(top_builddir)/sysklogd/
10endif
11srcdir=$(top_srcdir)/sysklogd
12
13SYSKLOGD-y:=
14SYSKLOGD-$(CONFIG_KLOGD) += klogd.o
15SYSKLOGD-$(CONFIG_LOGGER) += logger.o
16SYSKLOGD-$(CONFIG_LOGREAD) += logread.o
17SYSKLOGD-$(CONFIG_SYSLOGD) += syslogd.o
18
19ifneq ($(strip $(SYSKLOGD-y)),)
20libraries-y+=$(SYSKLOGD_DIR)$(SYSKLOGD_AR)
21endif
22
23SYSKLOGD_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SYSKLOGD-y))
24SYSKLOGD_SRC-a:=$(wildcard $(srcdir)/*.c)
25APPLET_SRC-y+=$(SYSKLOGD_SRC-y)
26APPLET_SRC-a+=$(SYSKLOGD_SRC-a)
27
28$(SYSKLOGD_DIR)$(SYSKLOGD_AR): $(patsubst %,$(SYSKLOGD_DIR)%, $(SYSKLOGD-y))
29 $(do_ar)
30
31$(SYSKLOGD_DIR)%.o: $(srcdir)/%.c
32 $(compile.c)