diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 14:56:18 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 14:56:18 +0200 |
commit | 756b4079cf4f00d1dc59cd2c03e1cd381cc7ba1c (patch) | |
tree | 4eaabe9114995534cb890faffd59faed64960042 /libraries/libevent | |
parent | e4c442f594bd99621303d635df6fb640338e6226 (diff) | |
download | slackbuilds-756b4079cf4f00d1dc59cd2c03e1cd381cc7ba1c.tar.gz |
libraries/libevent: Initial import
Diffstat (limited to 'libraries/libevent')
-rw-r--r-- | libraries/libevent/README | 5 | ||||
-rw-r--r-- | libraries/libevent/libevent.SlackBuild | 58 | ||||
-rw-r--r-- | libraries/libevent/libevent.info | 8 | ||||
-rw-r--r-- | libraries/libevent/slack-desc | 11 |
4 files changed, 82 insertions, 0 deletions
diff --git a/libraries/libevent/README b/libraries/libevent/README new file mode 100644 index 0000000000..d982e33ce2 --- /dev/null +++ b/libraries/libevent/README @@ -0,0 +1,5 @@ +The libevent API provides a mechanism to execute a callback function +when a specific event occurs on a file descriptor or after a timeout +has been reached. Furthermore, libevent also support callbacks due +to signals or regular timeouts. + diff --git a/libraries/libevent/libevent.SlackBuild b/libraries/libevent/libevent.SlackBuild new file mode 100644 index 0000000000..376d9f8efa --- /dev/null +++ b/libraries/libevent/libevent.SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh + +# Slackware build script for libevent +# Written by Erik Hanson erik@slackbuilds.org +# Modified by the SlackBuilds.org project + +PRGNAM=libevent +VERSION=1.2a +ARCH=${ARCH:-i486} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-static=no \ + || exit 1 + +make || exit 1 +make install-strip DESTDIR=$PKG || exit 1 + +if [ -d $PKG/usr/man ]; then + ( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done + ) +fi + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README sample $PKG/usr/doc/$PRGNAM-$VERSION +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.tgz diff --git a/libraries/libevent/libevent.info b/libraries/libevent/libevent.info new file mode 100644 index 0000000000..152ebb9f04 --- /dev/null +++ b/libraries/libevent/libevent.info @@ -0,0 +1,8 @@ +PRGNAM="libevent" +VERSION="1.2a" +HOMEPAGE="http://www.monkey.org/~provos/libevent/" +DOWNLOAD="http://www.monkey.org/~provos/libevent-1.2a.tar.gz" +MD5SUM="bb0b731b0c1bfa7267b8cd6192982d68" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="rworkman" diff --git a/libraries/libevent/slack-desc b/libraries/libevent/slack-desc new file mode 100644 index 0000000000..5aecac611f --- /dev/null +++ b/libraries/libevent/slack-desc @@ -0,0 +1,11 @@ +libevent: libevent - an event notification library +libevent: +libevent: The libevent API provides a mechanism to execute a callback function +libevent: when a specific event occurs on a file descriptor or after a timeout +libevent: has been reached. Furthermore, libevent also support callbacks due +libevent: to signals or regular timeouts. +libevent: +libevent: http://www.monkey.org/~provos/libevent/ +libevent: +libevent: +libevent: |