diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:18:43 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:18:43 (GMT) |
commit | db5e198de1e368a2202460089f9d00a52947d4f6 (patch) | |
tree | 0d827237ce18a3b1632feea285d10924dc755e5e /abs/core/rsyslog/PKGBUILD | |
parent | 4e8d09d05069baf219f474509a52041c863cca5d (diff) | |
download | linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.zip linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.tar.gz linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.tar.bz2 |
rsyslog: first build, this replaces syslog-ng
/var/log will now have the format of /var/log/$DATE/$log_files
Diffstat (limited to 'abs/core/rsyslog/PKGBUILD')
-rw-r--r-- | abs/core/rsyslog/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/abs/core/rsyslog/PKGBUILD b/abs/core/rsyslog/PKGBUILD new file mode 100644 index 0000000..0422880 --- /dev/null +++ b/abs/core/rsyslog/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 58329 2011-11-11 14:26:11Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=rsyslog +pkgver=5.8.6 +pkgrel=1 +pkgdesc="An enhanced multi-threaded syslogd with a focus on security and reliability" +url="http://www.rsyslog.com/" +arch=('i686' 'x86_64') +license=('GPL3') +depends=('zlib') +makedepends=( 'libmysqlclient' 'gnutls') +optdepends=( 'libmysqlclient: MySQL Database Support' + 'gnutls') +backup=('etc/rsyslog.conf' \ + 'etc/logrotate.d/rsyslog' + 'etc/conf.d/rsyslog') +conflicts=('syslog-ng') +replaces=('syslog-ng') +groups=('base') + +options=('strip' 'zipman' '!libtool') +install=('rsyslog.install') +source=("http://www.rsyslog.com/files/download/rsyslog/rsyslog-$pkgver.tar.gz" + 'rsyslog' + 'rsyslog.logrotate' + 'rsyslog.conf.d' 'rsyslog.conf.linhes' log_care.sh) + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --enable-mysql \ + --enable-mail \ + --enable-imfile \ + --enable-imtemplate \ + --enable-gnutls \ + --enable-inet \ + --with-systemdsystemunitdir=/lib/systemd/system + make +} +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make install DESTDIR=${pkgdir} + # Install Daemons and Configuration Files + install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname}d + install -D -m644 $srcdir/${pkgname}.conf.linhes ${pkgdir}/etc/${pkgname}.conf + mkdir -p ${pkgdir}/etc/rsyslog.d/ + touch ${pkgdir}/etc/rsyslog.d/empty.conf + install -D -m644 $srcdir/${pkgname}.logrotate ${pkgdir}/etc/logrotate.d/${pkgname} + install -D -m644 ${srcdir}/${pkgname}.conf.d ${pkgdir}/etc/conf.d/${pkgname} + install -D -m755 ${srcdir}/log_care.sh ${pkgdir}/etc/cron.daily/log_care +} +md5sums=('c46db0496066b82faf735bd4222208d7' + 'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da' + '8065db4bef3061a4f000ba58779f6829' + '1a0cd4530dd5d1439456d5ae230574d9' + '1e4a87a2ffea61c066a0b01fc9392849' + '5a4719b7283bba9fc497013848bf5c5c') |