summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2010-08-09 16:43:18 +0200
committerBenedikt Böhm <bb@xnull.de>2010-08-09 16:43:18 +0200
commit78b37d5c2f7944f98ec1fb64819206a449ba390d (patch)
tree2ee542f35f44df630d0bc24171cbdd90af96314a /app-admin
parentfix typo (diff)
downloadbetagarden-78b37d5c2f7944f98ec1fb64819206a449ba390d.tar.gz
betagarden-78b37d5c2f7944f98ec1fb64819206a449ba390d.tar.bz2
betagarden-78b37d5c2f7944f98ec1fb64819206a449ba390d.zip
add rsyslog 5.4.0 ebuild
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/rsyslog/Manifest6
-rw-r--r--app-admin/rsyslog/files/5-stable/rsyslog-gentoo.conf60
-rw-r--r--app-admin/rsyslog/files/5-stable/rsyslog.conf14
-rw-r--r--app-admin/rsyslog/files/5-stable/rsyslog.init38
-rw-r--r--app-admin/rsyslog/files/5-stable/rsyslog.logrotate11
-rw-r--r--app-admin/rsyslog/rsyslog-5.4.0.ebuild113
6 files changed, 242 insertions, 0 deletions
diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest
new file mode 100644
index 0000000..ab88a01
--- /dev/null
+++ b/app-admin/rsyslog/Manifest
@@ -0,0 +1,6 @@
+AUX 5-stable/rsyslog-gentoo.conf 2535 RMD160 7f8facef7ad3d680cde5e1f4b5a9ab9a207a9ef5 SHA1 b78df9c9a9fac0bffac805e36397525ccb322879 SHA256 c6faaaaacb8d8f21416425e8ecd8e37b3678d5b35c52d206370b3405597e8471
+AUX 5-stable/rsyslog.conf 448 RMD160 f5bb1b734f2d2486e1d9dd5b6a6a5f18c61e0db7 SHA1 4f4b2dcba42c1721b559626703de8adc3a239b0f SHA256 613e7539005bcab37a67e18ddf8f556de29ab6e51f996277085e5d86611e8239
+AUX 5-stable/rsyslog.init 817 RMD160 c2c6e3a697ce8763008a630140954fca7ed3e3e9 SHA1 acec0956768f19157b57f9930bc90dbb9bb61af0 SHA256 8999f132424ee7de89ee00f108c0d20bc22479e8d5c6fffddca03a0199b8b07a
+AUX 5-stable/rsyslog.logrotate 390 RMD160 8639ed6de74a17b5ea895d4b1a92c34242c5ec0e SHA1 c611b0df1808c621a2ab4d200cb42bd51033e282 SHA256 ab84fcdd6bd17a4b2e1b53eb42e96914197a66e04be1bcdf4b43051f1bde4dc2
+DIST rsyslog-5.4.0.tar.gz 2124201 RMD160 dce631570b08cc5015498688dc295c73e89e75e1 SHA1 531bbf1c7e9002b217362b6baedf4f3dcc23db23 SHA256 d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228
+EBUILD rsyslog-5.4.0.ebuild 2947 RMD160 7972fd1a67b480d6d921f4f2330119cad14d1304 SHA1 f56ca9866dc4e8dd709927509304962e0026cdaa SHA256 b9ad76139bb6d408dd8d1e89dd1e43045c821ec559c7ca90bd340c363612d0e5
diff --git a/app-admin/rsyslog/files/5-stable/rsyslog-gentoo.conf b/app-admin/rsyslog/files/5-stable/rsyslog-gentoo.conf
new file mode 100644
index 0000000..c25e168
--- /dev/null
+++ b/app-admin/rsyslog/files/5-stable/rsyslog-gentoo.conf
@@ -0,0 +1,60 @@
+# rsyslog v5: load input modules
+# If you do not load inputs, nothing happens!
+# You may need to set the module load path if modules are not found.
+
+$ModLoad immark.so # provides --MARK-- message capability
+$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command)
+$ModLoad imklog.so # kernel logging (formerly provided by rklogd)
+
+# Log all kernel messages to the console.
+# Logging much else clutters up the screen.
+#kern.* /dev/console
+
+# Log anything (except mail) of level info or higher.
+# Don't log private authentication messages!
+*.info;mail.none;authpriv.none;cron.none -/var/log/messages
+
+# The authpriv file has restricted access.
+authpriv.* /var/log/secure
+
+# Log all the mail messages in one place.
+mail.* -/var/log/maillog
+
+
+# Log cron stuff
+cron.* -/var/log/cron
+
+# Everybody gets emergency messages
+*.emerg *
+
+# Save news errors of level crit and higher in a special file.
+uucp,news.crit -/var/log/spooler
+
+# Save boot messages also to boot.log
+local7.* /var/log/boot.log
+
+# Remote Logging (we use TCP for reliable delivery)
+# An on-disk queue is created for this action. If the remote host is
+# down, messages are spooled to disk and sent when it is up again.
+#$WorkDirectory /rsyslog/spool # where to place spool files
+#$ActionQueueFileName uniqName # unique name prefix for spool files
+#$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
+#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
+#$ActionQueueType LinkedList # run asynchronously
+#$ActionResumeRetryCount -1 # infinety retries if host is down
+# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
+#*.* @@remote-host
+
+
+# ######### Receiving Messages from Remote Hosts ##########
+# TCP Syslog Server:
+# provides TCP syslog reception and GSS-API (if compiled to support it)
+#$ModLoad imtcp.so # load module
+# Note: as of now, you need to use the -t command line option to
+# enable TCP reception (e.g. -t514 to run a server at port 514/tcp)
+# This will change in later v3 releases.
+
+# UDP Syslog Server:
+#$ModLoad imudp.so # provides UDP syslog reception
+#$UDPServerRun 514 # start a UDP syslog server at standard port 514
+
diff --git a/app-admin/rsyslog/files/5-stable/rsyslog.conf b/app-admin/rsyslog/files/5-stable/rsyslog.conf
new file mode 100644
index 0000000..7a9a2a7
--- /dev/null
+++ b/app-admin/rsyslog/files/5-stable/rsyslog.conf
@@ -0,0 +1,14 @@
+# Config file for /etc/init.d/rsyslog for Gentoo Linux
+
+CONFIGFILE="/etc/rsyslog.conf"
+
+PIDFILE="/var/run/rsyslogd.pid"
+
+# Options to rsyslogd
+# See rsyslogd(8) for more details
+# Notes:
+# * Do not specify another PIDFILE but use the variable above to change the location
+# * Do not specify another CONFIGFILE but use the variable above to change the location
+# * "-c5" tells rsyslog to _not_ run in sysklogd compatibility mode
+
+RSYSLOG_OPTS="-c5"
diff --git a/app-admin/rsyslog/files/5-stable/rsyslog.init b/app-admin/rsyslog/files/5-stable/rsyslog.init
new file mode 100644
index 0000000..3b09da6
--- /dev/null
+++ b/app-admin/rsyslog/files/5-stable/rsyslog.init
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/3-stable/rsyslog.init,v 1.2 2008/08/14 06:47:38 dev-zero Exp $
+
+opts="reload"
+
+depend() {
+ provide logger
+}
+
+start() {
+ ebegin "Starting rsyslogd"
+ start-stop-daemon \
+ --start --quiet --exec /usr/sbin/rsyslogd \
+ -- ${RSYSLOG_OPTS} -i "${PIDFILE}" -f "${CONFIGFILE}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rsyslogd"
+ start-stop-daemon \
+ --stop --quiet \
+ --pidfile "${PIDFILE}"
+ eend $?
+}
+
+reload() {
+ if [ ! -f "${PIDFILE}" ]; then
+ eerror "rsyslogd not running"
+ return 1
+ fi
+
+ ebegin "Reloading configuration and re-opening log files"
+ start-stop-daemon --stop --oknodo --signal HUP \
+ --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/app-admin/rsyslog/files/5-stable/rsyslog.logrotate b/app-admin/rsyslog/files/5-stable/rsyslog.logrotate
new file mode 100644
index 0000000..4477272
--- /dev/null
+++ b/app-admin/rsyslog/files/5-stable/rsyslog.logrotate
@@ -0,0 +1,11 @@
+# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/3-stable/rsyslog.logrotate,v 1.1 2008/04/09 17:32:56 dev-zero Exp $
+#
+# Syslog-ng logrotate snippet for Gentoo Linux
+#
+
+/var/log/messages /var/log/secure /var/log/maillog /var/log/cron /var/log/spooler /var/log/boot.log {
+ sharedscripts
+ postrotate
+ /etc/init.d/rsyslog reload > /dev/null 2>&1 || true
+ endscript
+}
diff --git a/app-admin/rsyslog/rsyslog-5.4.0.ebuild b/app-admin/rsyslog/rsyslog-5.4.0.ebuild
new file mode 100644
index 0000000..a5b4fd5
--- /dev/null
+++ b/app-admin/rsyslog/rsyslog-5.4.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+inherit autotools
+
+DESCRIPTION="An enhanced multi-threaded syslogd with database support and more."
+HOMEPAGE="http://www.rsyslog.com/"
+SRC_URI="http://www.rsyslog.com/files/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 LGPL-3"
+KEYWORDS="~amd64 ~arm ~hppa ~sparc ~x86"
+SLOT="0"
+IUSE="relp gnutls kerberos dbi logrotate mysql postgres oracle snmp zlib debug static-libs"
+
+DEPEND="net-libs/libnet
+ kerberos? ( virtual/krb5 )
+ dbi? ( dev-db/libdbi )
+ gnutls? ( net-libs/gnutls )
+ mysql? ( virtual/mysql )
+ postgres? ( virtual/postgresql-base )
+ oracle? ( dev-db/oracle-instantclient-basic )
+ relp? ( >=dev-libs/librelp-0.1.1 )
+ snmp? ( net-analyzer/net-snmp )
+ zlib? ( sys-libs/zlib )
+ logrotate? ( app-admin/logrotate )"
+RDEPEND="${DEPEND}"
+PROVIDE="virtual/logger"
+
+BRANCH="5-stable"
+
+# need access to certain device nodes
+RESTRICT="test"
+
+src_configure() {
+ # Maintainer notes:
+ # * rfc3195 needs a library and development of that library
+ # is suspended, so we disable it
+ #
+ # About the java GUI:
+ # The maintainer says there is no real installation support
+ # for the java GUI, so we disable it for now.
+ econf \
+ --disable-gui \
+ --disable-rfc3195 \
+ --enable-largefile \
+ --enable-imdiag \
+ --enable-imfile \
+ --enable-imtemplate \
+ --enable-mail \
+ --enable-omprog \
+ --enable-omstdout \
+ --enable-omudpspoof \
+ --enable-omtemplate \
+ $(use_enable zlib) \
+ $(use_enable mysql) \
+ $(use_enable dbi libdbi) \
+ $(use_enable postgres pgsql) \
+ $(use_enable oracle oracle) \
+ $(use_enable gnutls) \
+ $(use_enable kerberos gssapi-krb5) \
+ $(use_enable relp) \
+ $(use_enable snmp) \
+ $(use_enable debug) \
+ $(use_enable debug rtinst) \
+ $(use_enable debug diagtools) \
+ $(use_enable debug memcheck) \
+ $(use_enable debug valgrind) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog doc/rsyslog-example.conf || die
+ dohtml -r doc/*
+
+ insinto /etc
+ newins "${FILESDIR}/${BRANCH}/rsyslog-gentoo.conf" rsyslog.conf
+
+ newconfd "${FILESDIR}/${BRANCH}/rsyslog.conf" rsyslog
+ newinitd "${FILESDIR}/${BRANCH}/rsyslog.init" rsyslog
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/${BRANCH}/rsyslog.logrotate" rsyslog
+
+ if use mysql; then
+ insinto /usr/share/doc/${PF}/scripts/mysql
+ doins plugins/ommysql/{createDB.sql,contrib/delete_mysql}
+ fi
+
+ if use postgres; then
+ insinto /usr/share/doc/${PF}/scripts/pgsql
+ doins plugins/ompgsql/createDB.sql
+ fi
+}
+
+pkg_postinst() {
+ echo
+ if use mysql || use postgres; then
+ einfo "SQL scripts to create the tables for MySQL or PostgreSQL have been installed to:"
+ einfo " /usr/share/doc/${PF}/scripts"
+ echo
+ fi
+
+ if use gnutls; then
+ einfo "To encrypt syslog traffic with TLS (SSL), read:"
+ einfo " http://www.rsyslog.com/doc/rsyslog_tls.html"
+ echo
+ fi
+}