summaryrefslogtreecommitdiff
path: root/network/proxymini/proxymini.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/proxymini/proxymini.SlackBuild')
-rw-r--r--network/proxymini/proxymini.SlackBuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/network/proxymini/proxymini.SlackBuild b/network/proxymini/proxymini.SlackBuild
new file mode 100644
index 0000000000..ac9e4369f2
--- /dev/null
+++ b/network/proxymini/proxymini.SlackBuild
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# Slackware build script for proxymini
+# Written by Thomas Morper <thomas@beingboiled.info>
+
+PRGNAM=proxymini
+VERSION=${VERSION:-0.2.1}
+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
+unzip -d $PRGNAM-$VERSION $CWD/$PRGNAM.zip
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . -type f -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" make
+
+mkdir -p $PKG/usr/bin
+cp -a proxymini $PKG/usr/bin
+
+mkdir -p $PKG/usr/man/man1
+cat $CWD/proxymini.1 > $PKG/usr/man/man1/proxymini.1
+gzip -9 $PKG/usr/man/man1/proxymini.1
+
+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}