From 796ca71e4df90dc21e6cf77d1532b5f92373570d Mon Sep 17 00:00:00 2001 From: piernov Date: Fri, 13 Jul 2012 21:39:51 +0000 Subject: syslog-ng 3.3.5-1 ajout port --- syslog-ng/Pkgfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 syslog-ng/Pkgfile (limited to 'syslog-ng/Pkgfile') diff --git a/syslog-ng/Pkgfile b/syslog-ng/Pkgfile new file mode 100644 index 000000000..b481b4618 --- /dev/null +++ b/syslog-ng/Pkgfile @@ -0,0 +1,42 @@ +# Description: Démons de log pour le système et le noyau +# URL: http://www.infodrom.org/projects/sysklogd/ +# Maintainer: NuTyX core team +# Packager: piernov +# Depends on: eventlog +# Run on: eventlog + +name=syslog-ng +version=3.3.5 +release=1 +source=(http://www.balabit.com/downloads/files/$name/sources/$version/source/${name}_$version.tar.gz + syslog-ng.conf + syslog-ng.conf.d + syslog-ng.logrotate + syslog-ng.rc) + +build() { + cd $name-$version + ./configure --prefix=/usr \ + --sysconfdir=/etc/syslog-ng \ + --libexecdir=/usr/lib \ + --localstatedir=/var/lib/syslog-ng \ + --datadir=/usr/share/syslog-ng \ + --with-pidfile-dir=/run \ + --enable-systemd \ + --with-systemdsystemunitdir=/usr/lib/systemd/system + make + make DESTDIR=$PKG install + + install -dm755 $PKG/var/lib/syslog-ng $PKG/etc/syslog-ng/patterndb.d + install -Dm644 $SRC/syslog-ng.conf $PKG/etc/syslog-ng/syslog-ng.conf + install -Dm644 $SRC/syslog-ng.logrotate $PKG/etc/logrotate.d/syslog-ng + install -Dm755 $SRC/syslog-ng.rc $PKG/etc/rc.d/init.d/syslog-ng + install -Dm644 $SRC/syslog-ng.conf.d $PKG/etc/sysconfig/syslog-ng + + sed -e 's@/bin/systemctl@/usr&@' \ + -e '$aAlias=syslog.service' \ + -e '/^ExecStartPre/d' \ + -i $PKG/usr/lib/systemd/system/syslog-ng.service + +# mv ../syslog.conf $PKG/etc/ +} -- cgit v1.2.3-70-g09d2