summaryrefslogtreecommitdiff
path: root/system/syslog-ng/syslog-ng.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/syslog-ng/syslog-ng.SlackBuild')
-rw-r--r--system/syslog-ng/syslog-ng.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/system/syslog-ng/syslog-ng.SlackBuild b/system/syslog-ng/syslog-ng.SlackBuild
index 987c78e27d..f9f61ef766 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-2012, mario <mario@slackverse.org>
+# Copyright 2010, 2012, 2013 Mario Preksavec, Zagreb, HR
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -11,7 +11,7 @@
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=syslog-ng
-VERSION=${VERSION:-3.3.4}
+VERSION=${VERSION:-3.5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +54,13 @@ else
LIBDIRSUFFIX=""
fi
+# Build withhout GeoIP support by default
+GEOIP=${GEOIP:-no}
+case "$GEOIP" in
+ yes) GEOIP='--enable-geoip' ;;
+ *) GEOIP='--disable-geoip' ;;
+esac
+
set -e
rm -rf $PKG
@@ -80,6 +87,8 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-dynamic-linking \
+ --with-embedded-crypto \
+ $GEOIP \
--build=$ARCH-slackware-linux
make
@@ -104,14 +113,11 @@ install -D -m0755 -oroot -groot $CWD/rc.syslog-ng $PKG/etc/rc.d/rc.syslog-ng.new
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
-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 VERSION $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING 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