summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-06-03 21:02:14 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-05 18:01:51 +0200
commita31ca4f7ea3420044ca9a34f87700ee192e58c25 (patch)
tree9863037c50575703534127e11e4fb749e53f5298
parent4083010c0bf5d6f51e19409525f2a2766d7d482d (diff)
downloadptxdist-a31ca4f7ea3420044ca9a34f87700ee192e58c25.tar.gz
ptxdist-a31ca4f7ea3420044ca9a34f87700ee192e58c25.tar.xz
rsyslog: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--generic/etc/rsyslog.conf11
-rw-r--r--rules/rsyslog.in97
-rw-r--r--rules/rsyslog.make144
3 files changed, 252 insertions, 0 deletions
diff --git a/generic/etc/rsyslog.conf b/generic/etc/rsyslog.conf
new file mode 100644
index 000000000..94115e46d
--- /dev/null
+++ b/generic/etc/rsyslog.conf
@@ -0,0 +1,11 @@
+# Begin /etc/rsyslog.conf
+
+$ModLoad immark # provides --MARK-- message capability
+$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
+$ModLoad imklog # provides kernel logging support (previously done by rklogd)
+
+daemon.* -/var/log/daemon.log
+kern.* -/var/log/kern.log
+user.* -/var/log/user.log
+
+# End /etc/rsyslog.conf
diff --git a/rules/rsyslog.in b/rules/rsyslog.in
new file mode 100644
index 000000000..b87ca1a5f
--- /dev/null
+++ b/rules/rsyslog.in
@@ -0,0 +1,97 @@
+## SECTION=shell_and_console
+
+menuconfig RSYSLOG
+ tristate
+ select LIBC_DL
+ select LIBC_RT
+ select LIBC_PTHREAD
+ select GCCLIBS_GCC_S
+ select ZLIB if RSYSLOG_ZLIB
+ select LIBNET if RSYSLOG_OMUDPSPOOF
+ prompt "rsyslog"
+ help
+ FIXME
+
+if RSYSLOG
+
+config RSYSLOG_SYSTEMD_UNIT
+ bool
+ default y
+ depends on SYSTEMD
+ prompt "install systemd unit files for rsyslogd"
+
+config RSYSLOG_REGEXP
+ bool
+ prompt "regular expression support"
+
+config RSYSLOG_ZLIB
+ bool
+ prompt "zlib compression support"
+
+config RSYSLOG_INET
+ bool
+ prompt "networking support"
+
+config RSYSLOG_IMDIAG
+ bool
+ prompt "diag input module"
+
+config RSYSLOG_IMFILE
+ bool
+ prompt "file input module"
+
+config RSYSLOG_IMKLOG
+ bool
+ default y
+ prompt "klog input module"
+
+config RSYSLOG_IMMARK
+ bool
+ default y
+ prompt "mark input module"
+
+config RSYSLOG_IMPSTATS
+ bool
+ prompt "periodic statistics module"
+
+config RSYSLOG_IMPTCP
+ bool
+ prompt "plain tcp input module"
+
+config RSYSLOG_IMTCP
+ bool
+ default y
+ prompt "tcp input module"
+
+config RSYSLOG_IMUDP
+ bool
+ default y
+ prompt "udp input module"
+
+config RSYSLOG_IMUXSOCK
+ bool
+ default y
+ prompt "unix domain socket input module"
+
+config RSYSLOG_OMPROG
+ bool
+ prompt "program output module"
+
+config RSYSLOG_OMUDPSPOOF
+ bool
+ prompt "spoofing network output module"
+
+config RSYSLOG_OMSTDOUT
+ bool
+ prompt "stdout output module"
+
+config RSYSLOG_OMUXSOCK
+ bool
+ prompt "unix domain socket output module"
+
+config RSYSLOG_PMLASTMSG
+ bool
+ prompt "lastmsg parser module"
+
+endif
+
diff --git a/rules/rsyslog.make b/rules/rsyslog.make
new file mode 100644
index 000000000..9abc722ea
--- /dev/null
+++ b/rules/rsyslog.make
@@ -0,0 +1,144 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_RSYSLOG) += rsyslog
+
+#
+# Paths and names
+#
+RSYSLOG_VERSION := 5.8.1
+RSYSLOG_MD5 := 909d4d867450aeedd6b388c199d79222
+RSYSLOG := rsyslog-$(RSYSLOG_VERSION)
+RSYSLOG_SUFFIX := tar.gz
+RSYSLOG_URL := http://www.rsyslog.com/files/download/rsyslog/$(RSYSLOG).$(RSYSLOG_SUFFIX)
+RSYSLOG_SOURCE := $(SRCDIR)/$(RSYSLOG).$(RSYSLOG_SUFFIX)
+RSYSLOG_DIR := $(BUILDDIR)/$(RSYSLOG)
+RSYSLOG_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+RSYSLOG_CONF_TOOL := autoconf
+RSYSLOG_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ $(GLOBAL_LARGE_FILE_OPTION) \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_REGEXP)-regexp \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_ZLIB)-zlib \
+ --disable-gssapi-krb5 \
+ --enable-pthreads \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_IMKLOG)-klog \
+ --disable-unix \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_INET)-inet \
+ --enable-fsstnd \
+ --enable-unlimited-select \
+ --disable-debug \
+ --disable-rtinst \
+ --disable-valgrind \
+ --disable-memcheck \
+ --disable-diagtools \
+ --disable-mysql \
+ --disable-pgsql \
+ --disable-oracle \
+ --disable-libdbi \
+ --disable-snmp \
+ --disable-gnutls \
+ --enable-rsyslogrt \
+ --enable-rsyslogd \
+ --disable-mysql-tests \
+ --disable-mail \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_IMDIAG)-imdiag \
+ --disable-relp \
+ --disable-rfc3195 \
+ --disable-testbench \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_IMFILE)-imfile \
+ --disable-imsolaris \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_IMPTCP)-imptcp \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_IMPSTATS)-impstats \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_OMPROG)-omprog \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_OMUDPSPOOF)-omudpspoof \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_OMSTDOUT)-omstdout \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_PMLASTMSG)-pmlastmsg \
+ --disable-pmcisconames \
+ --disable-pmaixforwardedfrom \
+ --disable-pmsnare \
+ --disable-pmrfc3164sd \
+ --disable-omruleset \
+ --disable-omdbalerting \
+ --disable-gui \
+ --$(call ptx/endis, PTXCONF_RSYSLOG_OMUXSOCK)-omuxsock \
+ --disable-cust1 \
+ --disable-smcustbindcdr \
+ --disable-imtemplate \
+ --disable-omtemplate \
+ --disable-mmsnmptrapd \
+ --disable-omhdfs \
+
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMDIAG) += imdiag
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMFILE) += imfile
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMKLOG) += imklog
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMMARK) += immark
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMPSTATS) += impstats
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMPTCP) += imptcp
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMTCP) += imtcp
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMUDP) += imudp
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMUXSOCK) += imuxsock
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_INET) += lmnet
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_INET) += lmnetstrms
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_INET) += lmnsd_ptcp
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_REGEXP) += lmregexp
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_INET) += lmstrmsrv
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_INET) += lmtcpclt
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_INET) += lmtcpsrv
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_ZLIB) += lmzlibw
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_OMPROG) += omprog
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_OMSTDOUT) += omstdout
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_OMUDPSPOOF) += omudpspoof
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_OMUXSOCK) += omuxsock
+RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_PMLASTMSG) += pmlastmsg
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/rsyslog.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, rsyslog)
+ @$(call install_fixup, rsyslog,PRIORITY,optional)
+ @$(call install_fixup, rsyslog,SECTION,base)
+ @$(call install_fixup, rsyslog,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, rsyslog,DESCRIPTION,missing)
+
+ @$(call install_copy, rsyslog, 0, 0, 0755, -, /usr/sbin/rsyslogd)
+
+ @$(call install_alternative, rsyslog, 0, 0, 0644, /etc/rsyslog.conf)
+
+ @$(call install_copy, rsyslog, 0, 0, 0644, -, \
+ /lib/systemd/system/rsyslog.service)
+ @$(call install_link, rsyslog, ../rsyslog.service, \
+ /lib/systemd/system/multi-user.target.wants/rsyslog.service)
+
+ @for plugin in $(RSYSLOG_PLUGINS-y); do \
+ $(call install_copy, rsyslog, 0, 0, 0644, -, \
+ /usr/lib/rsyslog/$$plugin.so); \
+ done
+
+ @$(call install_finish, rsyslog)
+
+ @$(call touch)
+
+# vim: syntax=make