blob: 232934eca4e735fa00d7b4e1bf2845e292d2df2b (
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
56
57
58
59
60
61
62
63
|
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=rsyslog
pkgver=8.33.0
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' 'libestr' 'libee' 'json-c' 'libsystemd' 'liblogging' 'librelp' 'libfastjson')
makedepends=('postgresql-libs>=8.4.1' 'libmariadbclient' 'net-snmp' 'gnutls'
'python2-docutils')
optdepends=('postgresql-libs: PostgreSQL Database Support'
'libmariadbclient: MySQL Database Support'
'net-snmp'
'gnutls')
groups=('base')
options=('strip' 'zipman')
source=("http://www.rsyslog.com/files/download/rsyslog/rsyslog-$pkgver.tar.gz"
'rsyslog.conf.linhes'
'mythtv.conf'
'log_care.sh')
prepare() {
cd "$srcdir"/${pkgname}-${pkgver}
sed -i rsyslog.service.in \
-e 's|rsyslogd -n|rsyslogd -n -i /run/rsyslogd.pid|' \
-e '/ExecStart=.*$/iPIDFile=/run/rsyslogd.pid'
}
build() {
cd "$srcdir"/${pkgname}-${pkgver}
./configure --prefix=/usr \
--sbindir=/usr/bin \
--enable-mysql \
--enable-pgsql \
--enable-mail \
--enable-imfile \
--enable-snmp \
--enable-gnutls \
--enable-inet \
--enable-imjournal \
--enable-omjournal \
--enable-relp \
--enable-impstats \
--enable-imptcp \
--enable-omprog \
--with-systemdsystemunitdir=/usr/lib/systemd/system
make
}
package() {
cd "$srcdir"/${pkgname}-${pkgver}
make install DESTDIR="$pkgdir"
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 -m755 "$srcdir"/log_care.sh "$pkgdir"/etc/cron.daily/log_care
}
md5sums=('7eb94a6da7340f524a2635568053d7fd'
'61750ec989c319470b466946f6404931'
'd99814eeea48b370b3e0fe2899792fdb'
'cd39e6edc1fcbbae2093c40c880e0079')
|