blob: 90f24a0271adeb48e9b8d4fbe11f741ac86a24b3 (
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 91908 2013-05-29 10:07:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=rsyslog
pkgver=7.2.7
pkgrel=3
pkgdesc="An enhanced multi-threaded syslogd with a focus on security and reliability"
url="http://www.rsyslog.com/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL3')
depends=('zlib' 'libestr' 'libee' 'json-c')
makedepends=('postgresql-libs>=8.4.1' 'libmariadbclient' 'net-snmp' 'gnutls')
optdepends=('postgresql-libs: PostgreSQL Database Support'
'libmariadbclient: MySQL Database Support'
'net-snmp'
'gnutls')
backup=('etc/rsyslog.conf'
'etc/logrotate.d/rsyslog'
'etc/conf.d/rsyslog')
options=('strip' 'zipman' '!libtool')
source=("http://www.rsyslog.com/files/download/rsyslog/rsyslog-$pkgver.tar.gz"
'rsyslog.logrotate'
'rsyslog.conf')
md5sums=('4a61d182acb5b5487e7b99dea8974857'
'304bc9ea26aa1ff910870899a30512f1'
'd61dd424e660eb16401121eed20d98bc')
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 \
--with-systemdsystemunitdir=/usr/lib/systemd/system
echo "rsyslogd_LDADD += \$(LIBESTR_LIBS) -lm" >>tools/Makefile
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make install DESTDIR=${pkgdir}
# Install Daemons and Configuration Files
install -D -m644 doc/${pkgname}-example.conf ${pkgdir}/usr/share/doc/$pkgname/${pkgname}.conf.example
install -D -m644 $srcdir/${pkgname}.conf ${pkgdir}/etc/${pkgname}.conf
install -D -m644 $srcdir/${pkgname}.logrotate ${pkgdir}/etc/logrotate.d/${pkgname}
# fix location of systemctl and remove start precondition
sed -i "$pkgdir/usr/lib/systemd/system/rsyslog.service" \
-e 's@/bin/systemctl@/usr&@' \
-e '/^ExecStartPre/d'
}
|