blob: 6b410f8dd760ba205e23f4a00400493e0212d243 (
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
|
# Contributor: jv <jens@eisfair.org>
# Maintainer: jv <jens@eisfair.org>
pkgname=syslog-ng
pkgver=3.9.1
pkgrel=3
pkgdesc="Next generation logging daemon"
url="http://www.balabit.com"
arch="all !aarch64"
license="GPL-2.0"
depends=""
depends_dev="glib-dev eventlog-dev pcre-dev libressl-dev python2-dev hiredis-dev json-c-dev"
makedepends="$depends_dev"
install="$pkgname.post-install"
subpackages="$pkgname-json"
source="https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${pkgver}/syslog-ng-${pkgver}.tar.gz
syslog-ng.logrotate
syslog-ng.initd
syslog-ng-destination.std
syslog-ng-filter.std
syslog-ng-log.std
syslog-ng-options.std
syslog-ng-plugins.std
syslog-ng-source.std
"
_builddir="$srcdir/${pkgname}-$pkgver"
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc/syslog-ng \
--localstatedir=/run \
--enable-ipv6 \
--enable-ssl \
--disable-sql \
--enable-redis \
--disable-mongodb \
--enable-json \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR=${pkgdir} install || return 1
rm -rf ${pkgdir}/etc/syslog-ng
rm -rf ${pkgdir}/usr/share
rm -rf ${pkgdir}/usr/include
rm -rf ${pkgdir}/usr/lib/pkgconfig
rm -f ${pkgdir}/usr/lib/libsyslog-ng.so
rm -rf ${pkgdir}/usr/lib/$pkgname/libtest
rm -f ${pkgdir}/usr/lib/libsyslog-ng.so
rm -rf ${pkgdir}/run
install -D -m755 "$srcdir"/$pkgname.initd ${pkgdir}/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/syslog-ng-destination.std ${pkgdir}/etc/syslog-ng/syslog-ng-destination.std || return 1
install -D -m644 "$srcdir"/syslog-ng-filter.std ${pkgdir}/etc/syslog-ng/syslog-ng-filter.std || return 1
install -D -m644 "$srcdir"/syslog-ng-log.std ${pkgdir}/etc/syslog-ng/syslog-ng-log.std || return 1
install -D -m644 "$srcdir"/syslog-ng-options.std ${pkgdir}/etc/syslog-ng/syslog-ng-options.std || return 1
install -D -m644 "$srcdir"/syslog-ng-plugins.std ${pkgdir}/etc/syslog-ng/syslog-ng-plugins.std || return 1
install -D -m644 "$srcdir"/syslog-ng-source.std ${pkgdir}/etc/syslog-ng/syslog-ng-source.std || return 1
install -D -m644 "$srcdir"/syslog-ng.logrotate ${pkgdir}/etc/logrotate.d/syslog-ng || return 1
}
json() {
pkgdesc="JSON plugin for syslog-ng"
mkdir -p "$subpkgdir"/usr/lib/syslog-ng/
mv "$pkgdir"/usr/lib/syslog-ng/libjson*.so "$subpkgdir"/usr/lib/syslog-ng
}
md5sums="1b48da9ef620cf06e55e481b5abb677a syslog-ng-3.9.1.tar.gz
8916d55f8213d2746e8c2a6a89c29d6c syslog-ng.logrotate
3fd33c45b809002a9738ccdebe20a6b4 syslog-ng.initd
f0b4a0b530e269c51bc63f5b9d817c9b syslog-ng-destination.std
405f4730412fec3a170460d724a6b50e syslog-ng-filter.std
bc676f733ea162ea4de7a8c2a16c06ed syslog-ng-log.std
f15a2b7c8496038c29d3ca7adc8d4054 syslog-ng-options.std
5b54d79cb535f20a8524ea70f6f87ffb syslog-ng-plugins.std
d1b01c819861945675a6e2fcff8d9a2c syslog-ng-source.std"
sha256sums="5678856a550ae790618fabde9d1447f932ce7a9080d55dca8fc5df1202c70a17 syslog-ng-3.9.1.tar.gz
a886b65863d72476504165e6a6dfe3d2922945d8cb61adb6b8eec73ac35d825e syslog-ng.logrotate
ca867b16ece1a652091d674ac394392ef0cb70deed0b6c61e130f2d2b77a19a6 syslog-ng.initd
bd3097c1d8ff6754df0d7e470659827ae4d6bf86976badf5aabe4d25504fd572 syslog-ng-destination.std
4ee19a76624624a9742f3399887784a55f684d141e115996b82c593aa74dcb66 syslog-ng-filter.std
df30f0ce37bdf8cc0ac0fcc04800d7d14880bf3a19d01ab96220a325f1ab3943 syslog-ng-log.std
8d925e7272a8d7dbda42694fe0e9c6fdc1bee6ffd9d4adf78e0ebb183658d4d4 syslog-ng-options.std
6f052e1cc3523b0d23696b450058e4bfee89cb75eb9039cc405eded79c996aa1 syslog-ng-plugins.std
0f3ea572b98d21f3afd82d64b17d518d6584b2ea4bfe96df2c1aa9c648890014 syslog-ng-source.std"
sha512sums="aade44fa6dffa7e84fc951aa20f0e40db2ee6438f46108c95244e465b1fafc08e6f9afab12c057576d601cc51dd7cefb16370183ca036af0d68046fdb29fdd02 syslog-ng-3.9.1.tar.gz
a062d1601f5215f60e2fc40c6ca498d768aa97af3647a9468731123a28fdd67962421b4412bfbe08a1123141b730cb78f102230ab72befec05ba7f398b39e27a syslog-ng.logrotate
454de2d7573132704b3255c7dacdc086143a12b987521df0ff6511ebd46e3b45177e1eb283b0e02daf56adf85c31565462e2f437f84d31913ce9ccfcf039903b syslog-ng.initd
b51d8b3da9584b6cb5b5c023b5ca1085d8e4c2cfa56f6ed12fe6feb0f33a390b43825aaaf4dd74eb6b7765485fe42f7f21c74380b72de9ed2c7775787ab1e720 syslog-ng-destination.std
e04a70a0b8fc4f40951c9b608b0dede1fa561dd7f58ce8fd8bac70b578b749d15d202973fd9de9fe494656ee138ef5efd32ea6229e6ec0a2f19672dd621acc91 syslog-ng-filter.std
d7864f6666101e0818dd0178a4d1ada2417280de153ff916fe4879348a37b7bfab5936e86629dc52e4edf82fbd601e04d08ed5a2117bcb0470a3d5884add9f55 syslog-ng-log.std
9f4224faf45c73daa54549aebf20e2c45d0bf533a20d2ad97d7258490ce793c8b08cc34cac2a89d185e936515096eb93c793018986c8d21861d88c4b0005d16a syslog-ng-options.std
9dd65da6a805aa709441ec8080789b2d0aba7a773ed91c807c39d2b0d82dd9cf3ac014f357ec6f45038db8d5c162e04179821437662d7ece35872204fbf44cf6 syslog-ng-plugins.std
42cc7728a182fee30675aefee9055eb14bdfbf2006bcf1c731864221ea494ad82d9ae4417190ff18da4a663fa9d5efcd514b6e64a568e228cfed1fb2abd2b10c syslog-ng-source.std"
|