aboutsummaryrefslogtreecommitdiff
path: root/patches/openssh/openssh.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 18:17:09 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 18:17:09 +0000
commita7090f086875e0926c2f6a710209c1d9c59889dd (patch)
tree3271b24b4077d112fb76ad69d5d0ddcdfaa12397 /patches/openssh/openssh.SlackBuild
parentc9a8a3515b4bc824f3f1f66cf4c182886bf03a7b (diff)
downloadslackbuilds-a7090f086875e0926c2f6a710209c1d9c59889dd.tar.gz
slackbuilds-a7090f086875e0926c2f6a710209c1d9c59889dd.tar.bz2
openssh update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@97 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'patches/openssh/openssh.SlackBuild')
-rwxr-xr-xpatches/openssh/openssh.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/patches/openssh/openssh.SlackBuild b/patches/openssh/openssh.SlackBuild
index 5a096c6e..bfae45f1 100755
--- a/patches/openssh/openssh.SlackBuild
+++ b/patches/openssh/openssh.SlackBuild
@@ -40,6 +40,7 @@ ARCH=${ARCH:=x86_64}
BUILD=${BUILD:=1rha}
SRC_DIR=${SRC:=$CWD}
TMP=${TMP:=/tmp}
+REPOS=${REPOS:=$TMP}
if [ "$ARCH" == "x86_64" ]; then
LIBDIR=/usr/lib64
@@ -58,6 +59,9 @@ else
tarflag="z"
fi
+SRC_DIR="$SRC_DIR/$PACKAGE"
+mkdir -p $SRC_DIR
+
if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
rm -f $SRC_DIR/$SRC.asc
wget "$URL" -O "$SRC_DIR/$SRC"
@@ -100,8 +104,6 @@ EOGPG
gpg --verify $SRC.asc $SRC || echo WARNING: Could not check signature or WRONG signature found.
-PKG=$TMP/package-openssh
-
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
@@ -113,7 +115,9 @@ elif [ "$ARCH" = "x86_64" ]; then
fi
# Clean target location:
-rm -rf $PKG
+TMP="$TMP/$PACKAGE"
+PKG=$TMP/package-$PACKAGE
+rm -rf $TMP
mkdir -p $PKG
# Prepare the framework and extract the package:
@@ -206,5 +210,9 @@ chown -R root.bin $PKG/usr/bin $PKG/usr/sbin
# Create the package itself:
cd $PKG
-makepkg -l y -c n $TMP/openssh-$VERSION-$ARCH-$BUILD.tgz
+makepkg -l y -c n $REPOS/openssh-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi