summaryrefslogtreecommitdiffstats
path: root/abs/core/rsyslog/PKGBUILD
blob: 41b10623c67eb10eebac400fbf7003b5bc7e250f (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
55
# $Id: PKGBUILD 58329 2011-11-11 14:26:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=rsyslog
pkgver=5.8.13
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/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' 'mythtv.conf'
        'log_care.sh')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr \
	      --sbindir=/usr/bin \
              --enable-mysql \
              --enable-mail \
              --enable-imfile \
              --enable-imtemplate \
              --enable-gnutls \
              --enable-inet \
              --with-systemdsystemunitdir=/usr/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
  install -D -m644 ${srcdir}/mythtv.conf ${pkgdir}/etc/rsyslog.d/mythtv.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=('8d228a8b622f90b320c95f38be7fc5bb'
         'a18bbcbb6ebdaa13a6ec6d9f3d9eb2da'
         '1a0cd4530dd5d1439456d5ae230574d9'
         'db1c2e9b3d101f4f002c00395cb7eafc'
         'c71fa75857ff7b9e24e41457e89c76ca'
         'cd39e6edc1fcbbae2093c40c880e0079')