diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-03 21:02:14 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-05 18:01:51 +0200 |
commit | a31ca4f7ea3420044ca9a34f87700ee192e58c25 (patch) | |
tree | 9863037c50575703534127e11e4fb749e53f5298 /rules/rsyslog.make | |
parent | 4083010c0bf5d6f51e19409525f2a2766d7d482d (diff) | |
download | ptxdist-a31ca4f7ea3420044ca9a34f87700ee192e58c25.tar.gz ptxdist-a31ca4f7ea3420044ca9a34f87700ee192e58c25.tar.xz |
rsyslog: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/rsyslog.make')
-rw-r--r-- | rules/rsyslog.make | 144 |
1 files changed, 144 insertions, 0 deletions
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 |