mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
68 lines
2.3 KiB
Bash
68 lines
2.3 KiB
Bash
# $Id: PKGBUILD 158043 2012-05-01 19:46:19Z dreisner $
|
|
# Maintainer: Dave Reisner <dreisner@archlinux.org>
|
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
|
# Contributor: Aaron Griffin <aaron@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - rebuild to remove libwrap, remove when bumped upstream
|
|
|
|
pkgname=syslog-ng
|
|
pkgver=3.3.5
|
|
pkgrel=1.1
|
|
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL2')
|
|
groups=('base')
|
|
url="http://www.balabit.com/network-security/syslog-ng/"
|
|
depends=('glib2' 'eventlog' 'openssl' 'libcap' 'awk')
|
|
makedepends=('flex' 'pkg-config')
|
|
optdepends=('logrotate: for rotating log files')
|
|
provides=('logger')
|
|
options=('!libtool')
|
|
backup=('etc/syslog-ng/modules.conf'
|
|
'etc/syslog-ng/scl.conf'
|
|
'etc/syslog-ng/syslog-ng.conf'
|
|
'etc/conf.d/syslog-ng'
|
|
'etc/logrotate.d/syslog-ng')
|
|
source=("http://www.balabit.com/downloads/files/syslog-ng/sources/$pkgver/source/${pkgname}_$pkgver.tar.gz"
|
|
syslog-ng.conf
|
|
syslog-ng.conf.d
|
|
syslog-ng.logrotate
|
|
syslog-ng.rc)
|
|
sha1sums=('0c8b85079b60c68c4279bcd4124b1e3c6358407b'
|
|
'98074e0facfc6ef036202662cc86d04b38a2c142'
|
|
'9b2eb6ea9e27c9f1b6c1c855be211ec3da51d3c8'
|
|
'949128fe3d7f77a7aab99048061f885bc758000c'
|
|
'94af81a84e3add6653755122cdd5080694de059d')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc/syslog-ng \
|
|
--libexecdir=/usr/lib \
|
|
--localstatedir=/var/lib/syslog-ng \
|
|
--datadir=/usr/share/syslog-ng \
|
|
--with-pidfile-dir=/run \
|
|
--disable-spoof-source \
|
|
--enable-systemd \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
|
|
|
|
install -dm755 "$pkgdir/var/lib/syslog-ng" "$pkgdir/etc/syslog-ng/patterndb.d"
|
|
install -Dm644 "$srcdir/syslog-ng.conf" "$pkgdir/etc/syslog-ng/syslog-ng.conf"
|
|
install -Dm644 "$srcdir/syslog-ng.logrotate" "$pkgdir/etc/logrotate.d/syslog-ng"
|
|
install -Dm755 "$srcdir/syslog-ng.rc" "$pkgdir/etc/rc.d/syslog-ng"
|
|
install -Dm644 "$srcdir/syslog-ng.conf.d" "$pkgdir/etc/conf.d/syslog-ng"
|
|
|
|
# fix location of systemctl and add Alias=
|
|
sed -e 's@/bin/systemctl@/usr&@' \
|
|
-e '$aAlias=syslog.service' \
|
|
-i "$pkgdir/usr/lib/systemd/system/syslog-ng.service"
|
|
}
|