libraries/zeromq: Added (lightweight messaging kernel library)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Patrick Pippen 2011-03-05 07:42:41 -03:00 committed by Niels Horn
parent 1ecf929173
commit 5e6912959c
4 changed files with 119 additions and 0 deletions

6
libraries/zeromq/README Normal file
View File

@ -0,0 +1,6 @@
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialised messaging middleware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging patterns,
message filtering (subscriptions), seamless access to multiple transport
protocols and more.

View File

@ -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------------------------------------------------------|
zeromq: zeromq (lightweight messaging kernel library)
zeromq:
zeromq: Zeromq lightweight messaging kernel is a library which extends the
zeromq: standard socket interfaces with features traditionally provided by
zeromq: specialised messaging middleware products. 0MQ sockets provide an
zeromq: abstraction of asynchronous message queues, multiple messaging
zeromq: patterns message filtering (subscriptions), seamless access to
zeromq: multiple transport protocols and more.
zeromq:
zeromq:
zeromq:

View File

@ -0,0 +1,84 @@
#!/bin/sh -e
# Slackware build script for Zeromq
# Written by Patrick Pippen (dabittweiler@gmail.com)
PRGNAM=zeromq
VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-1_plp}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -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 . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -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} \
--mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var
make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/ $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
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}

View File

@ -0,0 +1,10 @@
PRGNAM="zeromq"
VERSION="2.1.0"
HOMEPAGE="http://www.zeromq.org/"
DOWNLOAD="http://download.zeromq.org/zeromq-2.1.0.tar.gz"
MD5SUM="8b05003a5c65ca934d9d909834a04bee"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Patrick Pippen"
EMAIL="dabittweiler@gmail.com"
APPROVED="Niels Horn"