This replaces syslogd and klogd with a combined daemon.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-usr/sbin/klogd
+#usr/include/syslog
+#usr/include/syslog/syslog.h
+#usr/lib/libsyslog.la
+#usr/lib/libsyslog.so
+usr/lib/libsyslog.so.0
+usr/lib/libsyslog.so.0.2.0
+#usr/lib/pkgconfig/libsyslog.pc
usr/sbin/syslogd
+#usr/share/doc/sysklogd
+#usr/share/doc/sysklogd/ChangeLog.md
+#usr/share/doc/sysklogd/LICENSE
+#usr/share/doc/sysklogd/README.md
+#usr/share/doc/sysklogd/example
+#usr/share/doc/sysklogd/example/README.md
+#usr/share/doc/sysklogd/example/example.c
+#usr/share/doc/sysklogd/example/example.mk
+#usr/share/doc/sysklogd/syslog.conf
+#usr/share/man/man3/syslogp.3
#usr/share/man/man5/syslog.conf.5
-#usr/share/man/man8/klogd.8
-#usr/share/man/man8/sysklogd.8
#usr/share/man/man8/syslogd.8
var/log/dhcpcd.log
var/log/messages
include Config
-VER = 1.5.1
+VER = 2.7.2
THISAPP = sysklogd-$(VER)
DL_FILE = $(THISAPP).tar.gz
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
-# Fix build with GCC 15
-CFLAGS += -std=gnu17
-
###############################################################################
# Top-level Rules
###############################################################################
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_BLAKE2 = c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad
+$(DL_FILE)_BLAKE2 = 6a42e049140ab64c5658b7fc112ee33b39481ebe78079271fe6fd7ad44976d3a6e861a4c42a8958599bc83c096e2d7e09cb0c447ffd46e4844c8cfdab13dace2
install : $(TARGET)
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-
- # Compile fix
- cd $(DIR_APP) && sed -i "s/union wait/int/" syslogd.c
-
- cd $(DIR_APP) && make $(MAKETUNING) RPM_OPT_FLAGS="$(CFLAGS)"
+ cd $(DIR_APP) && ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --without-logger \
+ --without-systemd \
+ --disable-static
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
touch /var/log/{dhcpcd.log,messages}
chmod 664 /var/log/{dhcpcd.log,messages}
case "${1}" in
start)
- boot_mesg "Starting kernel log daemon..."
- loadproc klogd -c 1
-
boot_mesg "Starting system log daemon..."
- loadproc syslogd -m 0 -r
+ loadproc syslogd -s -m 0 -r -k
boot_mesg "Saving Bootlog..."
if [ -e /var/log/bootlog ]; then
evaluate_retval
;;
stop)
- boot_mesg "Stopping kernel log daemon..."
- killproc klogd
-
boot_mesg "Stopping system log daemon..."
killproc syslogd
;;
status)
statusproc syslogd
- statusproc klogd
;;
*)