summaryrefslogtreecommitdiffstats
path: root/syslog-ng/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-07-13 21:39:51 +0000
committerpiernov <piernov@piernov.org>2012-07-13 21:39:59 +0000
commit796ca71e4df90dc21e6cf77d1532b5f92373570d (patch)
tree8106fe2ccc52d5377ef3c37159c6c2421194296f /syslog-ng/Pkgfile
parent04edcb6da5805bfc5ed5094ec4f81f5fb120f7fc (diff)
downloadnutyx-pakxe-796ca71e4df90dc21e6cf77d1532b5f92373570d.tar.gz
nutyx-pakxe-796ca71e4df90dc21e6cf77d1532b5f92373570d.tar.bz2
nutyx-pakxe-796ca71e4df90dc21e6cf77d1532b5f92373570d.tar.xz
nutyx-pakxe-796ca71e4df90dc21e6cf77d1532b5f92373570d.zip
syslog-ng 3.3.5-1 ajout port
Diffstat (limited to 'syslog-ng/Pkgfile')
-rw-r--r--syslog-ng/Pkgfile42
1 files changed, 42 insertions, 0 deletions
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 <piernov@piernov.org>
+# 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/
+}