diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/Config.in | 36 | ||||
-rw-r--r-- | sysklogd/Kbuild | 11 | ||||
-rw-r--r-- | sysklogd/Makefile | 22 | ||||
-rw-r--r-- | sysklogd/Makefile.in | 32 |
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 | ||
6 | menu "System Logging Utilities" | 6 | menu "System Logging Utilities" |
7 | 7 | ||
8 | config CONFIG_SYSLOGD | 8 | config 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 | ||
23 | config CONFIG_FEATURE_ROTATE_LOGFILE | 23 | config 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 | ||
31 | config CONFIG_FEATURE_REMOTE_LOG | 31 | config 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 | ||
45 | config CONFIG_FEATURE_IPC_SYSLOG | 45 | config 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 | ||
59 | config CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE | 59 | config 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 | ||
67 | config CONFIG_LOGREAD | 67 | config 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 | ||
77 | config CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING | 77 | config 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 | ||
88 | config CONFIG_KLOGD | 88 | config 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 | ||
100 | config CONFIG_LOGGER | 100 | config 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 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_KLOGD) += klogd.o | ||
9 | lib-$(CONFIG_LOGGER) += logger.o | ||
10 | lib-$(CONFIG_LOGREAD) += logread.o | ||
11 | lib-$(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 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/sysklogd | ||
14 | SYSKLOGD_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
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 | |||
7 | SYSKLOGD_AR:=sysklogd.a | ||
8 | ifndef $(SYSKLOGD_DIR) | ||
9 | SYSKLOGD_DIR:=$(top_builddir)/sysklogd/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/sysklogd | ||
12 | |||
13 | SYSKLOGD-y:= | ||
14 | SYSKLOGD-$(CONFIG_KLOGD) += klogd.o | ||
15 | SYSKLOGD-$(CONFIG_LOGGER) += logger.o | ||
16 | SYSKLOGD-$(CONFIG_LOGREAD) += logread.o | ||
17 | SYSKLOGD-$(CONFIG_SYSLOGD) += syslogd.o | ||
18 | |||
19 | ifneq ($(strip $(SYSKLOGD-y)),) | ||
20 | libraries-y+=$(SYSKLOGD_DIR)$(SYSKLOGD_AR) | ||
21 | endif | ||
22 | |||
23 | SYSKLOGD_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SYSKLOGD-y)) | ||
24 | SYSKLOGD_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
25 | APPLET_SRC-y+=$(SYSKLOGD_SRC-y) | ||
26 | APPLET_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) | ||