blob: 74a9c10f83c4177f1dcfbec5fa86013ed7a2af75 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Contributor: Francisco Guerreiro <francisg@fnop.net>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Cameron Banta <cbanta@gmail.com>
# Contributor: Ashley Sommer <ashleysommer@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=rsyslog
pkgver=8.25.0
pkgrel=0
pkgdesc="Enhanced multi-threaded syslogd with database support and more."
url="http://www.rsyslog.com/"
arch="all"
license="GPLv3 LGPL3"
depends=""
makedepends="zlib-dev gnutls-dev mariadb-dev postgresql-dev net-snmp-dev
libnet-dev libgcrypt-dev libee-dev libestr-dev liblogging-dev
libfastjson-dev util-linux-dev py-docutils hiredis-dev"
subpackages="$pkgname-doc $pkgname-mysql $pkgname-pgsql $pkgname-tls
$pkgname-snmp $pkgname-hiredis $pkgname-dbg"
source="http://www.rsyslog.com/files/download/$pkgname/$pkgname-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
$pkgname.logrotate
$pkgname.conf
musl-fix.patch
queue.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--disable-rfc3195 \
--enable-largefile \
--enable-imdiag \
--enable-imfile \
--enable-mail \
--enable-omprog \
--enable-omstdout \
--enable-omudpspoof \
--enable-imptcp \
--enable-impstats \
--enable-mysql \
--enable-pgsql \
--enable-gnutls \
--enable-snmp \
--enable-omhiredis \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf
}
mysql() {
pkgdesc="rsyslog mysql support"
mkdir -p "$subpkgdir"/usr/lib/rsyslog/
mv "$pkgdir"/usr/lib/rsyslog/ommysql.so \
"$subpkgdir"/usr/lib/rsyslog/ || return 1
}
hiredis(){
pkgdesc="rsyslog hiredis support"
mkdir -p "$subpkgdir"/usr/lib/rsyslog/
mv "$pkgdir"/usr/lib/rsyslog/omhiredis.so \
"$subpkgdir"/usr/lib/rsyslog/ || return 1
}
pgsql() {
pkgdesc="rsyslog pgsql support"
mkdir -p "$subpkgdir"/usr/lib/rsyslog/
mv "$pkgdir"/usr/lib/rsyslog/ompgsql.so \
"$subpkgdir"/usr/lib/rsyslog/ || return 1
}
tls() {
pkgdesc="rsyslog tls support"
mkdir -p "$subpkgdir"/usr/lib/rsyslog/
mv "$pkgdir"/usr/lib/rsyslog/lmnsd_gtls.so \
"$subpkgdir"/usr/lib/rsyslog/ || return 1
}
snmp() {
pkgdesc="rsyslog snmp support"
mkdir -p "$subpkgdir"/usr/lib/rsyslog/
mv "$pkgdir"/usr/lib/rsyslog/omsnmp.so \
"$subpkgdir"/usr/lib/rsyslog/ || return 1
}
sha512sums="0e97db84cc8fe9fd6e3ffb5a78b32fd213e22833c6ed605329c579132d127b7d65b3f66c64e6bddeb1967aa9ed90645a7c24b9d5e643f95bdaf48ed9fc82cb5f rsyslog-8.25.0.tar.gz
9a4b184076a82e0899da79ab3749e1c67eac03f36c4460d34ed0385f4a3ffad53681a1cc25dd514e835c9399a9abd01c235743535ad549d5be7f66d9e127b9dc rsyslog.initd
a4d969671800227129be870b0318961b79d16365663754111a136734bbf7005abd4da24853dfdc07b3b6691ab5a7b215f0ac6c19022b4c5c8dab06165a42431b rsyslog.confd
d54377ddf39197656811a84272568ea761f984e19dd04fc54f372dd04a9244e66d02b26ab33073d0344d054f031660ec611f3c7a18c266e7b68cef5e2c47f06f rsyslog.logrotate
3bcd58b222eb7f4d8a42a0643cacb6ab44790f90c9bd550678e002bc19863d5d6a7341e5e5ba0b9292f85c6c04cd5cc42d174acdc63e8ba22022620db10f2b9b rsyslog.conf
20967235e8233588210071a7157a81fe02a1e88d7c7f55855fcc2fe34295269a6e3e3bfccb3d4dd83a6a48da28948c92d6ce47a0c5d817f6b6a4030635f4f896 musl-fix.patch
de8b82781af2dfef67b2215782721cca2ee5db9d08ed3260f4e3390353a59bf4bd76701df682c4bf537ce817eabf79b062c4b2a3e20e4175e7d77ca08c5a700f queue.patch"
|