diff options
Diffstat (limited to 'libraries/lksctp-tools')
-rw-r--r-- | libraries/lksctp-tools/README | 9 | ||||
-rw-r--r-- | libraries/lksctp-tools/lksctp-tools.SlackBuild | 91 | ||||
-rw-r--r-- | libraries/lksctp-tools/lksctp-tools.info | 10 | ||||
-rw-r--r-- | libraries/lksctp-tools/slack-desc | 20 |
4 files changed, 130 insertions, 0 deletions
diff --git a/libraries/lksctp-tools/README b/libraries/lksctp-tools/README new file mode 100644 index 0000000000000..bbf3d8ab58134 --- /dev/null +++ b/libraries/lksctp-tools/README @@ -0,0 +1,9 @@ +lksctp-tools (Linux Kernel SCTP Tools) + +This is the lksctp-tools package for Linux Kernel SCTP Reference +Implementation. This package is intended for two audiences. For +SCTP application developers, this package provides the user-level +C language header files and a library for accessing SCTP specific +application programming interfaces not provided by the standard +sockets. For LKSCTP project developers, this package provides the +functional and API regression tests. diff --git a/libraries/lksctp-tools/lksctp-tools.SlackBuild b/libraries/lksctp-tools/lksctp-tools.SlackBuild new file mode 100644 index 0000000000000..c8d204419b8b7 --- /dev/null +++ b/libraries/lksctp-tools/lksctp-tools.SlackBuild @@ -0,0 +1,91 @@ +#!/bin/sh + +# Slackware build script for lksctp-tools +# 2012-11-14 Bernski Comadizo <bcomadizo@gmail.com> Cebu + +PRGNAM=lksctp-tools +VERSION=${VERSION:-1.0.11} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) 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 # Exit on most errors + +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 \ + --disable-static \ + --build=$ARCH-slackware-linux + +# Compile the application and install it into the $PKG directory +make +make install DESTDIR=$PKG + +# Strip binaries and libraries +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 + +# Compress man pages +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 + +# Remove 'special' files +find $PKG -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f + +# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Make the package; be sure to leave it in $OUTPUT +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/lksctp-tools/lksctp-tools.info b/libraries/lksctp-tools/lksctp-tools.info new file mode 100644 index 0000000000000..33a594a944f49 --- /dev/null +++ b/libraries/lksctp-tools/lksctp-tools.info @@ -0,0 +1,10 @@ +PRGNAM="lksctp-tools" +VERSION="1.0.11" +HOMEPAGE="http://lksctp.sourceforge.net" +DOWNLOAD="http://downloads.sourceforge.net/lksctp/lksctp-tools-1.0.11.tar.gz" +MD5SUM="e9cf6c57402c9d4f1173a9529466e16d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Bernski Comadizo" +EMAIL="bcomadizo@gmail.com" diff --git a/libraries/lksctp-tools/slack-desc b/libraries/lksctp-tools/slack-desc new file mode 100644 index 0000000000000..03d68072826b1 --- /dev/null +++ b/libraries/lksctp-tools/slack-desc @@ -0,0 +1,20 @@ +# 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------------------------------------------------------| +lksctp-tools: lksctp-tools (Linux Kernel SCTP Tools) +lksctp-tools: +lksctp-tools: This is the lksctp-tools package for Linux Kernel SCTP Reference +lksctp-tools: Implementation. This package is intended for two audiences. For +lksctp-tools: SCTP application developers, this package provides the user-level +lksctp-tools: C language header files and a library for accessing SCTP specific +lksctp-tools: application programming interfaces not provided by the standard +lksctp-tools: sockets. For LKSCTP project developers, this package provides the +lksctp-tools: functional and API regression tests. +lksctp-tools: +lksctp-tools: Homepage: http://lksctp.sourceforge.net + |