summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorChristophe Trussardi <chris@teria.org>2016-08-27 23:18:56 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2016-08-28 00:22:59 +0100
commitac345cb80eac278c94d83e2c96c9d0759e3f1877 (patch)
tree5a5abf3ea45a432c6518e7292c146da746de30c6 /libraries
parent6c55e2129bf37ab9a9e600988441b26d3f771009 (diff)
downloadslackbuilds-ac345cb80eac278c94d83e2c96c9d0759e3f1877.tar.gz
libraries/libfastjson: Added (a fork from json-c).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libfastjson/README7
-rw-r--r--libraries/libfastjson/libfastjson.SlackBuild95
-rw-r--r--libraries/libfastjson/libfastjson.info10
-rw-r--r--libraries/libfastjson/slack-desc19
4 files changed, 131 insertions, 0 deletions
diff --git a/libraries/libfastjson/README b/libraries/libfastjson/README
new file mode 100644
index 0000000000..dc51781216
--- /dev/null
+++ b/libraries/libfastjson/README
@@ -0,0 +1,7 @@
+libfastjson is a fork from json-c, which is optimized for
+liblognorm processing.
+
+The aim of this project is not to provide a slightly modified clone
+of json-c. Its aim is to provide a small library with essential
+json handling functions, sufficiently good json support (not 100%
+standards compliant), and be very fast in processing.
diff --git a/libraries/libfastjson/libfastjson.SlackBuild b/libraries/libfastjson/libfastjson.SlackBuild
new file mode 100644
index 0000000000..4300062231
--- /dev/null
+++ b/libraries/libfastjson/libfastjson.SlackBuild
@@ -0,0 +1,95 @@
+#!/bin/sh
+
+# Slackware build script for libfastjson
+
+# Copyright (c) 2016, Christophe Trussardi, Paris, France
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# 1.- Redistributions of source code 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 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, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=libfastjson
+VERSION=${VERSION:-0.99.4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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}
diff --git a/libraries/libfastjson/libfastjson.info b/libraries/libfastjson/libfastjson.info
new file mode 100644
index 0000000000..08c2ba91df
--- /dev/null
+++ b/libraries/libfastjson/libfastjson.info
@@ -0,0 +1,10 @@
+PRGNAM="libfastjson"
+VERSION="0.99.4"
+HOMEPAGE="http://www.rsyslog.com/"
+DOWNLOAD="http://download.rsyslog.com/libfastjson/libfastjson-0.99.4.tar.gz"
+MD5SUM="18ee28081e87673e20d5d4412a7ca5d4"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Christophe Trussardi"
+EMAIL="chris@teria.org"
diff --git a/libraries/libfastjson/slack-desc b/libraries/libfastjson/slack-desc
new file mode 100644
index 0000000000..6cc35093a4
--- /dev/null
+++ b/libraries/libfastjson/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+libfastjson: libfastjson (a fork from json-c)
+libfastjson:
+libfastjson: libfastjson is a fork from json-c, which is optimized for
+libfastjson: liblognorm processing.
+libfastjson:
+libfastjson: The aim of this project is not to provide a slightly modified clone
+libfastjson: of json-c. Its aim is to provide a small library with essential
+libfastjson: json handling functions, sufficiently good json support (not 100%
+libfastjson: standards compliant), and be very fast in processing.
+libfastjson:
+libfastjson: Homepage: http://www.rsyslog.com/