2008-06-05 22:57:20 +02:00
|
|
|
# Description: alternate syslogging daemon
|
|
|
|
# URL: http://www.balabit.com/network-security/syslog-ng/opensource-logging-system
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2020-07-10 12:56:39 +00:00
|
|
|
# Depends on: glib json-c python3
|
2008-06-05 22:57:20 +02:00
|
|
|
|
|
|
|
name=syslog-ng
|
2020-09-01 09:56:42 +00:00
|
|
|
version=3.29.1
|
2015-03-21 15:26:15 +01:00
|
|
|
release=1
|
2020-01-21 10:26:50 +01:00
|
|
|
source=(https://github.com/$name/$name/releases/download/$name-$version/$name-$version.tar.gz
|
2020-05-24 13:22:07 +00:00
|
|
|
syslog-ng.rc syslog-ng.conf)
|
2008-06-05 22:57:20 +02:00
|
|
|
|
|
|
|
build() {
|
2020-07-10 12:56:39 +00:00
|
|
|
cd $name-$version
|
2008-06-05 22:57:20 +02:00
|
|
|
|
2020-07-10 12:56:39 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/var/lib/$name \
|
|
|
|
--localstatedir=/var/run \
|
|
|
|
--enable-dynamic-linking \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--disable-java \
|
|
|
|
--disable-java-modules
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-06-05 22:57:20 +02:00
|
|
|
|
2020-07-10 12:56:39 +00:00
|
|
|
python3 -m compileall -d /usr/lib/syslog-ng/python/syslogng $PKG/lib/syslog-ng/python/syslogng
|
|
|
|
python3 -O -m compileall -d /usr/lib/syslog-ng/python/syslogng $PKG/usr/lib/syslog-ng/python/syslogng
|
2012-01-24 08:44:41 +01:00
|
|
|
|
2020-07-10 12:56:39 +00:00
|
|
|
install -D -m 644 ../syslog-ng.conf $PKG/etc/syslog-ng.conf
|
|
|
|
install -D -m 755 ../syslog-ng.rc $PKG/etc/rc.d/syslog-ng
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/doc
|
|
|
|
find $PKG \(\
|
|
|
|
-iname '*changelog*' -o \
|
|
|
|
-iname '*news*' -o \
|
|
|
|
-iname '*todo*' -o \
|
|
|
|
-iname '*readme*' -o \
|
|
|
|
-iname '*copying*' \) -exec rm -fr '{}' \+
|
2008-06-05 22:57:20 +02:00
|
|
|
}
|