summaryrefslogtreecommitdiff
path: root/network/airoscript/airoscript.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja [at] gmail [dot] com>2010-05-12 23:31:55 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:31:55 +0200
commit68535f1807fe898ae73501f449dc11af05fa029c (patch)
tree1542b8cdb683c4e351153bf7f9e946fa832b5938 /network/airoscript/airoscript.SlackBuild
parent17de40e589dee444cb54dbba87aa06dc03e6d5c7 (diff)
downloadslackbuilds-68535f1807fe898ae73501f449dc11af05fa029c.tar.gz
network/airoscript: Added to 12.2 repository
Diffstat (limited to 'network/airoscript/airoscript.SlackBuild')
-rw-r--r--network/airoscript/airoscript.SlackBuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/network/airoscript/airoscript.SlackBuild b/network/airoscript/airoscript.SlackBuild
new file mode 100644
index 0000000000..d848546fef
--- /dev/null
+++ b/network/airoscript/airoscript.SlackBuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# Slackware build script for airoscript
+# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
+
+PRGNAM=airoscript
+VERSION=${VERSION:-2.1.1}
+ARCH=${ARCH:-noarch}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM
+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 {} \;
+
+# Sed statement replaces /usr/local with /usr
+sed -i "s:\=\"\/usr\/local:\=\"\/usr:g" src/airoscript.conf
+# Cleans up the Makefile for easier compiling
+patch -p1 < $CWD/Makefile.patch
+
+make install DESTDIR=$PKG
+make slackware DESTDIR=$PKG
+
+# Let's not overwrite the config file if it already exists
+mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
+rm $PKG/etc/$PRGNAM.conf~
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz