diff options
Diffstat (limited to 'system/syslog-ng/syslog-ng.SlackBuild')
-rw-r--r-- | system/syslog-ng/syslog-ng.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
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 <mario@slackverse.org> +# Copyright 2010-2012, mario <mario@slackverse.org> # 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 |