contrib/syslog-ng/Pkgfile

41 lines
1.2 KiB
Plaintext
Raw Normal View History

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
# Depends on: glib json-c python3
2008-06-05 22:57:20 +02:00
name=syslog-ng
2020-11-25 12:37:55 +01:00
version=3.30.1
2015-03-21 15:26:15 +01:00
release=1
source=(https://github.com/$name/$name/releases/download/$name-$version/$name-$version.tar.gz
2020-05-24 15:22:07 +02:00
syslog-ng.rc syslog-ng.conf)
2008-06-05 22:57:20 +02:00
build() {
cd $name-$version
2008-06-05 22:57:20 +02: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
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
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
}