summaryrefslogtreecommitdiff
path: root/network/inadyn/inadyn.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-05-13 01:00:02 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 01:00:02 +0200
commit7b2d26ea252c774c11f82af71c4eb30165e9f2c1 (patch)
tree08fa808b1cb3ac50b0f2577582f093be3375b42f /network/inadyn/inadyn.SlackBuild
parent9c6caa069b2765fef7288ce622dbb6548b9288a6 (diff)
downloadslackbuilds-7b2d26ea252c774c11f82af71c4eb30165e9f2c1.tar.gz
network/inadyn: Added to 13.0 repository
Diffstat (limited to 'network/inadyn/inadyn.SlackBuild')
-rw-r--r--network/inadyn/inadyn.SlackBuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/network/inadyn/inadyn.SlackBuild b/network/inadyn/inadyn.SlackBuild
new file mode 100644
index 0000000000..14b1facf84
--- /dev/null
+++ b/network/inadyn/inadyn.SlackBuild
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+# Slackware build script for inadyn
+# Maintained Niels Horn <niels.horn@gmail.com>
+# revision date: 2010/02/11
+
+PRGNAM=inadyn
+VERSION=1.96.2
+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 # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+unzip $CWD/$PRGNAM.v$VERSION.zip
+cd $PRGNAM
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS=$SLKCFLAGS make
+
+# "Install" manually
+mkdir -p $PKG/usr/bin
+cp bin/linux/$PRGNAM $PKG/usr/bin/
+
+( 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 || true
+)
+
+mkdir -p $PKG/usr/man/man{5,8}
+cp man/inadyn.8 $PKG/usr/man/man8/
+cp man/inadyn.conf.5 $PKG/usr/man/man5/
+
+( 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a readme.html doc/Doxyfile $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
+
+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}