diff options
author | David Woodfall <dave@unrealize.co.uk> | 2010-05-13 00:58:54 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:58:54 +0200 |
commit | bf7241176dd9557cccf094f943d12ff5e2404d72 (patch) | |
tree | 7b60df450453c4d4a3c804b98d24e230c59ae0ce | |
parent | 1d0176fafa6cd6c65e126f5dd4f0348db50f564f (diff) |
libraries/libnice: Added to 13.0 repository
-rw-r--r-- | libraries/libnice/README | 12 | ||||
-rw-r--r-- | libraries/libnice/libnice.SlackBuild | 107 | ||||
-rw-r--r-- | libraries/libnice/libnice.info | 10 | ||||
-rw-r--r-- | libraries/libnice/slack-desc | 19 |
4 files changed, 148 insertions, 0 deletions
diff --git a/libraries/libnice/README b/libraries/libnice/README new file mode 100644 index 0000000000000..d15d1af728573 --- /dev/null +++ b/libraries/libnice/README @@ -0,0 +1,12 @@ +The GLib ICE implementation + +Libnice is an implementation of the IETF's draft Interactice +Connectivity Establishment standard (ICE). It provides GLib-based library, +libnice and GStreamer elements. + +ICE is useful for applications that want to establish peer-to-peer UDP +data streams. It automates the process of traversing NATs and provides +security against some attacks. + +Existing standards that use ICE include Session Initiation Protocol +(SIP) and XMPP Jingle. diff --git a/libraries/libnice/libnice.SlackBuild b/libraries/libnice/libnice.SlackBuild new file mode 100644 index 0000000000000..c48445de4b61f --- /dev/null +++ b/libraries/libnice/libnice.SlackBuild @@ -0,0 +1,107 @@ +#!/bin/sh + +# Slackware build script for libnice + +# Copyright 2009 David Woodfall <dave@unrealize.co.uk> +# All rights reserved. +# +# aka dive in #slackware on freenode.net +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 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 +# 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. FURTHERMORE I AM NOT LIABLE IF +# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF. + + +PRGNAM=libnice +VERSION=${VERSION:-0.0.10} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +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" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +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} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +( cd $PKG + # Remove 'special' files + find . -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp AUTHORS ChangeLog NEWS COPYING INSTALL README COPYING.LGPL TODO COPYING.MPL \ +$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.${PKGTYPE:-tgz} + + diff --git a/libraries/libnice/libnice.info b/libraries/libnice/libnice.info new file mode 100644 index 0000000000000..b22e5076c5977 --- /dev/null +++ b/libraries/libnice/libnice.info @@ -0,0 +1,10 @@ +PRGNAM="libnice" +VERSION="0.0.10" +HOMEPAGE="http://nice.freedesktop.org" +DOWNLOAD="http://nice.freedesktop.org/releases/libnice-0.0.10.tar.gz" +MD5SUM="3853541318835951fffae3cbeea570fb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="David Woodfall" +EMAIL="dave@unrealize.co.uk" +APPROVED="dsomero" diff --git a/libraries/libnice/slack-desc b/libraries/libnice/slack-desc new file mode 100644 index 0000000000000..17bee22255313 --- /dev/null +++ b/libraries/libnice/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 ':'. + + |-----handy-ruler------------------------------------------------------| +libnice: libnice (The GLib ICE implementation) +libnice: +libnice: Libnice is an implementation of the IETF's draft Interactice +libnice: Connectivity Establishment standard (ICE). It provides GLib-based +libnice: library, libnice and GStreamer elements. +libnice: ICE is useful for applications that want to establish peer-to-peer +libnice: UDP data streams. It automates the process of traversing NATs and +libnice: provides security against some attacks. +libnice: Existing standards that use ICE include Session Initiation Protocol +libnice: (SIP) and XMPP Jingle. +libnice: Homepage: http://nice.freedesktop.org |