From 2e0523f2d554dc592e99959d9ce32bed48f6f06c Mon Sep 17 00:00:00 2001 From: mario Date: Mon, 2 Apr 2012 23:36:25 -0500 Subject: system/syslog-ng: Updated for version 3.3.4. Signed-off-by: Robby Workman --- system/syslog-ng/syslog-ng.SlackBuild | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'system/syslog-ng/syslog-ng.SlackBuild') diff --git a/system/syslog-ng/syslog-ng.SlackBuild b/system/syslog-ng/syslog-ng.SlackBuild index 0bf97650ae..5e7688251b 100644 --- a/system/syslog-ng/syslog-ng.SlackBuild +++ b/system/syslog-ng/syslog-ng.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for syslog-ng -# Copyright 2010, mario +# Copyright 2010-2012, mario # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=syslog-ng -VERSION=${VERSION:-3.0.7} +VERSION=${VERSION:-3.3.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -91,21 +91,27 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +# We use our own configuration and keep original as sample +mv $PKG/etc/syslog-ng/syslog-ng.conf $PKG/etc/syslog-ng/syslog-ng.conf.example + +# Append .new to config files +for i in $PKG/etc/syslog-ng/*.conf ; do mv $i $i.new ; done + # Copy init script install -D -m0755 -oroot -groot $CWD/rc.syslog-ng $PKG/etc/rc.d/rc.syslog-ng.new -# Copy sample configuration and logrotate script +# Install our own configuration and logrotate script install -D -m0644 -oroot -groot $CWD/syslog-ng.conf $PKG/etc/syslog-ng/syslog-ng.conf.new install -D -m0644 -oroot -groot $CWD/syslog-ng.logrotate $PKG/etc/logrotate.d/syslog-ng.new # Remove empty directory -rm -rf $PKG/usr/libexec +rmdir $PKG/usr/libexec # This is for syslog-ng.persist file, we don't want it in /var mkdir -p $PKG/var/lib/syslog-ng mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS VERSION $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE -- cgit v1.2.3