Added rsyslog-4.4.1 build template.
The extensions will be built as additional packages, to avoid large dependencies in the basic package. --HG-- extra : convert_revision : 1f4beab4453c4eb23487799267229043a0fc8c44
This commit is contained in:
parent
027580ed8b
commit
af8fd83f27
5 changed files with 116 additions and 0 deletions
1
templates/rsyslog-gnutls
Symbolic link
1
templates/rsyslog-gnutls
Symbolic link
|
@ -0,0 +1 @@
|
|||
rsyslog
|
60
templates/rsyslog/files/rsyslog.conf
Normal file
60
templates/rsyslog/files/rsyslog.conf
Normal file
|
@ -0,0 +1,60 @@
|
|||
# if you experience problems, check
|
||||
# http://www.rsyslog.com/troubleshoot for assistance
|
||||
|
||||
# rsyslog v3: 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 # provides --MARK-- message capability
|
||||
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
|
||||
$ModLoad imklog # 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 # infinite retries if host is down
|
||||
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
|
||||
#*.* @@remote-host:514
|
||||
|
||||
|
||||
# ######### 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
|
||||
#$InputTCPServerRun 514 # start up TCP listener at port 514
|
||||
|
||||
# UDP Syslog Server:
|
||||
#$ModLoad imudp.so # provides UDP syslog reception
|
||||
#$UDPServerRun 514 # start a UDP syslog server at standard port 514
|
11
templates/rsyslog/files/rsyslogd.rc
Normal file
11
templates/rsyslog/files/rsyslogd.rc
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
pidfile=${rsyslogd_pid:-/var/run/rsyslogd.pid}
|
||||
command=/usr/sbin/rsyslogd
|
||||
config_file=${rsyslogd_conf:-/etc/rsyslog.conf}
|
||||
command_args="${rsyslogd_args} -c4 -i ${pidfile} -f ${config_file}"
|
||||
|
||||
depend()
|
||||
{
|
||||
provide logger
|
||||
}
|
15
templates/rsyslog/gnutls.template
Normal file
15
templates/rsyslog/gnutls.template
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Template file for 'rsyslog-gnutls'.
|
||||
#
|
||||
short_desc="${sourcepkg} GnuTLS add-on"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the GnuTLS add-on to send encrypted messages."
|
||||
|
||||
Add_dependency run rsyslog
|
||||
Add_dependency run gnutls
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib/rsyslog
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/rsyslog/*gtls* ${DESTDIR}/usr/lib/rsyslog
|
||||
}
|
29
templates/rsyslog/template
Normal file
29
templates/rsyslog/template
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Template file for 'rsyslog'
|
||||
pkgname=rsyslog
|
||||
version=4.4.1
|
||||
distfiles="http://download.rsyslog.com/$pkgname/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--enable-gnutls"
|
||||
short_desc="An Enhanced multi-threaded syslog daemon"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=ff96a672b6759ecd77f6ce4f6f2c977f7d23e2d6f8e7f39564136d8b09ffc771
|
||||
long_desc="
|
||||
Rsyslog is an enhanced multi-threaded syslogd supporting, among
|
||||
others, MySQL, PgSQL, syslog/tcp, RFC 3195, permitted sender lists,
|
||||
filtering on any message part, and fine grain output format control."
|
||||
|
||||
subpackages="gnutls"
|
||||
conf_files="/etc/rsyslog.conf"
|
||||
openrc_services="rsyslogd default"
|
||||
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build gnutls
|
||||
Add_dependency full glibc
|
||||
Add_dependency full zlib
|
||||
|
||||
post_install()
|
||||
{
|
||||
install -d ${DESTDIR}/etc/init.d
|
||||
install -m755 ${FILESDIR}/rsyslogd.rc ${DESTDIR}/etc/init.d/rsyslogd
|
||||
install -m644 ${FILESDIR}/rsyslog.conf ${DESTDIR}/etc/rsyslog.conf
|
||||
}
|
Loading…
Reference in a new issue