Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
From 1b93cb5890d502ab3fd7623306a7feaa09c4d8ff Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sun, 25 Jan 2026 13:07:29 +0100
|
||||
Subject: [PATCH] Revert "grpc: fix C++ standard lib linkage"
|
||||
|
||||
This partially reverts commit 163c894563c9f5536c5e91222c9efda64031b08c.
|
||||
|
||||
Upstream: https://github.com/syslog-ng/syslog-ng/issues/5040#issuecomment-3796535385
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
modules/examples/Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/modules/examples/Makefile.am b/modules/examples/Makefile.am
|
||||
index fe1a08feb..5914e5273 100644
|
||||
--- a/modules/examples/Makefile.am
|
||||
+++ b/modules/examples/Makefile.am
|
||||
@@ -35,7 +35,7 @@ EXTRA_modules_examples_libexamples_la_DEPENDENCIES = $(MODULE_DEPS_LIBS) $(EXAMP
|
||||
modules_examples_libexamples_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||
|
||||
if ENABLE_CPP
|
||||
-nodist_EXTRA_modules_examples_libexamples_la_SOURCES = force-cpp-linker-with-default-stdlib.cpp
|
||||
+modules_examples_libexamples_la_LIBADD += -lstdc++
|
||||
endif
|
||||
|
||||
EXTRA_DIST += modules/examples/CMakeLists.txt
|
||||
--
|
||||
2.47.3
|
||||
|
||||
24
package/syslog-ng/Config.in
Normal file
24
package/syslog-ng/Config.in
Normal file
@@ -0,0 +1,24 @@
|
||||
config BR2_PACKAGE_SYSLOG_NG
|
||||
bool "syslog-ng"
|
||||
depends on BR2_USE_WCHAR # glib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
|
||||
select BR2_PACKAGE_JSON_C
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_PCRE2
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
|
||||
help
|
||||
syslog-ng is an enhanced log daemon, supporting a wide range
|
||||
of input and output methods: syslog, unstructured text,
|
||||
queueing, SQL & NoSQL
|
||||
|
||||
https://www.syslog-ng.com/products/open-source-log-management/
|
||||
|
||||
comment "syslog-ng needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
62
package/syslog-ng/S01syslog-ng
Normal file
62
package/syslog-ng/S01syslog-ng
Normal file
@@ -0,0 +1,62 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON="syslog-ng"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
SYSLOG_NG_ARGS=""
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||
-- $SYSLOG_NG_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
# SIGHUP makes syslog-ng reload its configuration
|
||||
reload() {
|
||||
printf 'Reloading %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -s HUP -q -p "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart|reload)
|
||||
"$1";;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
16
package/syslog-ng/syslog-ng.conf
Normal file
16
package/syslog-ng/syslog-ng.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
@version: 4.12
|
||||
|
||||
source s_sys {
|
||||
file("/proc/kmsg" program_override("kernel"));
|
||||
unix-stream ("/dev/log");
|
||||
internal();
|
||||
};
|
||||
|
||||
destination d_all {
|
||||
file("/var/log/messages");
|
||||
};
|
||||
|
||||
log {
|
||||
source(s_sys);
|
||||
destination(d_all);
|
||||
};
|
||||
6
package/syslog-ng/syslog-ng.hash
Normal file
6
package/syslog-ng/syslog-ng.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.12.0
|
||||
sha256 03a03d19ac203dca53c7ec79a7005c8a850665a95ff4cd0f1e7bb4c497c64d46 syslog-ng-4.12.0.tar.gz
|
||||
# Locally computed
|
||||
sha256 d7d51f8d0f6ee9757a371080e7f5fa19ac73afbef14db6e981705cf1ec813d6b COPYING
|
||||
sha256 ce3324c9f22299cfc7c281e5a6ab40fbe9c2ea1a67cee87226cb8cd39db1e1d2 GPL.txt
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LGPL.txt
|
||||
127
package/syslog-ng/syslog-ng.mk
Normal file
127
package/syslog-ng/syslog-ng.mk
Normal file
@@ -0,0 +1,127 @@
|
||||
################################################################################
|
||||
#
|
||||
# syslog-ng
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# When updating the version, please check at runtime if the version in
|
||||
# syslog-ng.conf header needs to be updated
|
||||
SYSLOG_NG_VERSION = 4.12.0
|
||||
SYSLOG_NG_SITE = https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$(SYSLOG_NG_VERSION)
|
||||
SYSLOG_NG_LICENSE = LGPL-2.1+ (syslog-ng core), GPL-2.0+ (modules)
|
||||
SYSLOG_NG_LICENSE_FILES = COPYING GPL.txt LGPL.txt
|
||||
SYSLOG_NG_CPE_ID_VENDOR = oneidentity
|
||||
# 0001-Revert-grpc-fix-C-standard-lib-linkage.patch
|
||||
SYSLOG_NG_AUTORECONF = YES
|
||||
SYSLOG_NG_DEPENDENCIES = host-bison host-flex host-pkgconf \
|
||||
json-c libglib2 openssl pcre2
|
||||
SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
|
||||
--disable-java --disable-java-modules --disable-mongodb \
|
||||
--disable-python
|
||||
SYSLOG_NG_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101915),y)
|
||||
SYSLOG_NG_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
SYSLOG_NG_CONF_ENV = CFLAGS="$(SYSLOG_NG_CFLAGS)"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
||||
SYSLOG_NG_DEPENDENCIES += geoip
|
||||
SYSLOG_NG_CONF_OPTS += --enable-geoip
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-geoip
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
SYSLOG_NG_DEPENDENCIES += libcap
|
||||
SYSLOG_NG_CONF_OPTS += --enable-linux-caps
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-linux-caps
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBESMTP),y)
|
||||
SYSLOG_NG_DEPENDENCIES += libesmtp
|
||||
SYSLOG_NG_CONF_OPTS += --enable-smtp
|
||||
SYSLOG_NG_CONF_OPTS += --with-libesmtp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-smtp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
||||
SYSLOG_NG_DEPENDENCIES += util-linux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNET),y)
|
||||
SYSLOG_NG_DEPENDENCIES += libnet
|
||||
SYSLOG_NG_CONF_OPTS += \
|
||||
--with-libnet=$(STAGING_DIR)/usr/bin \
|
||||
--enable-spoof-source
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-spoof-source
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
SYSLOG_NG_DEPENDENCIES += libcurl
|
||||
SYSLOG_NG_CONF_OPTS += --enable-http
|
||||
SYSLOG_NG_CONF_OPTS += --with-libcurl="$(STAGING_DIR)/usr"
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
SYSLOG_NG_CONF_OPTS += --enable-cloud-auth
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-cloud-auth
|
||||
endif
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-http --disable-cloud-auth
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RABBITMQ_C),y)
|
||||
SYSLOG_NG_DEPENDENCIES += rabbitmq-c
|
||||
SYSLOG_NG_CONF_OPTS += --enable-amqp
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-amqp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
SYSLOG_NG_DEPENDENCIES += systemd
|
||||
SYSLOG_NG_CONF_OPTS += \
|
||||
--enable-systemd \
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-systemd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NETSNMP),y)
|
||||
SYSLOG_NG_DEPENDENCIES += netsnmp
|
||||
SYSLOG_NG_CONF_OPTS += --enable-afsnmp
|
||||
SYSLOG_NG_CONF_OPTS += --with-net-snmp="$(STAGING_DIR)/usr/bin"
|
||||
else
|
||||
SYSLOG_NG_CONF_OPTS += --disable-afsnmp
|
||||
endif
|
||||
|
||||
define SYSLOG_NG_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D package/syslog-ng/S01syslog-ng \
|
||||
$(TARGET_DIR)/etc/init.d/S01syslog-ng
|
||||
endef
|
||||
|
||||
# By default syslog-ng installs a .service that requires a config file at
|
||||
# /etc/default, so provide one with the default values.
|
||||
define SYSLOG_NG_INSTALL_INIT_SYSTEMD
|
||||
mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d
|
||||
printf '[Install]\nDefaultInstance=default\n' \
|
||||
>$(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d/buildroot-default-instance.conf
|
||||
endef
|
||||
|
||||
# By default syslog-ng installs a number of sample configuration
|
||||
# files. Some of these rely on optional features being
|
||||
# enabled. Because of this buildroot uninstalls the shipped config
|
||||
# files and provides a simplified configuration.
|
||||
define SYSLOG_NG_FIXUP_CONFIG
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
DESTDIR=$(TARGET_DIR) scl-uninstall-local
|
||||
$(INSTALL) -D -m 0644 package/syslog-ng/syslog-ng.conf \
|
||||
$(TARGET_DIR)/etc/syslog-ng.conf
|
||||
endef
|
||||
|
||||
SYSLOG_NG_POST_INSTALL_TARGET_HOOKS = SYSLOG_NG_FIXUP_CONFIG
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user