aboutsummaryrefslogtreecommitdiff
path: root/libsafe/libsafe.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libsafe/libsafe.SlackBuild')
-rwxr-xr-xlibsafe/libsafe.SlackBuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/libsafe/libsafe.SlackBuild b/libsafe/libsafe.SlackBuild
new file mode 100755
index 00000000..033ac5be
--- /dev/null
+++ b/libsafe/libsafe.SlackBuild
@@ -0,0 +1,65 @@
+#!/bin/bash
+#
+# got it from ftp://ftp.slackware.com/pub/slackware/slackware-10.2/extra/source/libsafe-2.0-16/libsafe.SlackBuild
+# small changes by rhatto
+#
+
+CWD="`pwd`"
+
+if [ -f "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+PACKAGE="libsafe"
+ARCH=${ARCH:=x86_64}
+BUILD=${BUILD:=1rha}
+TMP=${TMP:=/tmp}
+VERSION=2.0.16
+SRCPKG=2.0-16
+SRC_DIR=${SRC:=$CWD}
+
+if [ "$ARCH" == "x86_64" ]; then
+ LIBDIR=lib64
+ DOINST="doinst64.sh"
+else
+ LIBDIR=lib
+ DOINST="doinst.sh"
+fi
+
+RTOOL="wget"
+SRC="$PACKAGE-$SRCPKG.tar.gz"
+URL="ftp://ftp.slackware.com/pub/slackware/slackware-10.2/extra/source/libsafe-$SRCPKG/$SRC"
+PKG=$TMP/package-libsafe
+
+if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
+ wget "$URL" -O "$SRC_DIR/$SRC"
+fi
+
+cd $TMP
+rm -rf $PKG
+mkdir -p $PKG
+tar xzvf $SRC_DIR/$SRC
+cd libsafe-$SRCPKG
+chown -R root.root .
+find . -perm 775 -exec chmod 755 {} \;
+find . -perm 664 -exec chmod 644 {} \;
+make
+mkdir -p $PKG/$LIBDIR/incoming
+cat src/libsafe.so.$VERSION > $PKG/$LIBDIR/incoming/libsafe.so.$VERSION
+chmod 755 $PKG/$LIBDIR/incoming/libsafe.so.$VERSION
+mkdir $PKG/install
+cat $CWD/$DOINST > $PKG/install/doinst.sh
+cat $CWD/slack-desc > $PKG/install/slack-desc
+mkdir -p $PKG/usr/doc/libsafe-$VERSION
+cp -a \
+ COPYING ChangeLog EMAIL_NOTIFICATION INSTALL README doc \
+ $PKG/usr/doc/libsafe-$VERSION
+mkdir -p $PKG/usr/man/man8
+cat doc/libsafe.8 | gzip -9c > $PKG/usr/man/man8/libsafe.8.gz
+cd $PKG
+makepkg -l y -c n $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+