summaryrefslogtreecommitdiffstats
path: root/abs/core/rsyslog/PKGBUILD
blob: 129b0d1c5e6c50fe468f14a4ba4e90d733873016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $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=5
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/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.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}.conf.d ${pkgdir}/etc/conf.d/${pkgname}
  install -D -m755 ${srcdir}/log_care.sh ${pkgdir}/etc/cron.daily/log_care
}
md5sums=('c46db0496066b82faf735bd4222208d7'
         'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da'
         '1a0cd4530dd5d1439456d5ae230574d9'
         'fae023a980db26f0ee27bd2f80d3e6f2'
         '2f795681e12f8bc43e8bea28dc020dcb')