summaryrefslogtreecommitdiffstats
path: root/system/eventlog
diff options
context:
space:
mode:
Diffstat (limited to 'system/eventlog')
-rw-r--r--system/eventlog/README12
-rw-r--r--system/eventlog/eventlog.SlackBuild26
2 files changed, 25 insertions, 13 deletions
diff --git a/system/eventlog/README b/system/eventlog/README
index 2a25c655ea..e328beb884 100644
--- a/system/eventlog/README
+++ b/system/eventlog/README
@@ -1,10 +1,10 @@
-The EventLog library aims to be a replacement of the simple syslog() API
-provided on UNIX systems. The major difference between EventLog and syslog
-is that EventLog tries to add structure to messages.
+The EventLog library aims to be a replacement of the simple syslog()
+API provided on UNIX systems. The major difference between EventLog
+and syslog is that EventLog tries to add structure to messages.
Where you had a simple non-structrured string in syslog() you have a
combination of description and tag/value pairs.
-EventLog provides an interface to build, format and output an event record.
-The exact format and output method can be customized by the administrator
-via a configuration file.
+EventLog provides an interface to build, format and output an event
+record. The exact format and output method can be customized by the
+administrator via a configuration file.
diff --git a/system/eventlog/eventlog.SlackBuild b/system/eventlog/eventlog.SlackBuild
index 5c1edc1b50..c8a5db023f 100644
--- a/system/eventlog/eventlog.SlackBuild
+++ b/system/eventlog/eventlog.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for EventLog
@@ -22,26 +22,36 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=eventlog
VERSION=${VERSION:-20151122_a5c1916}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -91,8 +101,10 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE