diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-31 18:23:13 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-31 18:23:13 +0000 |
commit | 9b11f9e6c1a3712da1b6e7842a44823588fc9bb9 (patch) | |
tree | cdfc436deb05deb57eb51a93126e136e747a9cde /patches/openssl/openssl.SlackBuild | |
parent | a7090f086875e0926c2f6a710209c1d9c59889dd (diff) | |
download | slackbuilds-9b11f9e6c1a3712da1b6e7842a44823588fc9bb9.tar.gz slackbuilds-9b11f9e6c1a3712da1b6e7842a44823588fc9bb9.tar.bz2 |
openssl update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@98 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'patches/openssl/openssl.SlackBuild')
-rwxr-xr-x | patches/openssl/openssl.SlackBuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/patches/openssl/openssl.SlackBuild b/patches/openssl/openssl.SlackBuild index e3995ce4..76fb3b27 100755 --- a/patches/openssl/openssl.SlackBuild +++ b/patches/openssl/openssl.SlackBuild @@ -39,6 +39,7 @@ ARCH=${ARCH:=x86_64} BUILD=${BUILD:=1rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} RTOOL="wget" PACKAGE_EXT="gz" @@ -51,6 +52,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" @@ -201,8 +205,11 @@ else LIBDIR=/usr/lib fi -PKG1=/tmp/package-openssl -PKG2=/tmp/package-ossllibs +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +PKG1=$TMP/package-openssl +PKG2=$TMP/package-ossllibs NAME1=openssl-$VERSION-$ARCH-$BUILD NAME2=openssl-solibs-$VERSION-$ARCH-$BUILD @@ -220,7 +227,7 @@ relink() { fi } -cd /tmp +cd $TMP rm -rf $PKG1 $PKG2 openssl-$VERSION tar xvf$tarflag $SRC_DIR/$SRC cd openssl-$VERSION @@ -276,7 +283,7 @@ chmod 755 usr/lib/pkgconfig mkdir -p install zcat $CWD/doinst.sh.gz > install/doinst.sh cat $CWD/slack-desc.openssl > install/slack-desc -makepkg -l y -c n ../${NAME1}.tgz +makepkg -l y -c n $REPOS/${NAME1}.tgz # Make runtime package: @@ -293,7 +300,7 @@ fi mkdir -p $PKG2/etc ( cd $PKG2/etc ; cp -a $PKG1/etc/ssl . ) mkdir -p $PKG2/usr/doc/openssl-$VERSION -( cd /tmp/openssl-$VERSION +( cd $TMP/openssl-$VERSION cp -a CHANGES CHANGES.SSLeay FAQ INSTALL INSTALL.MacOS INSTALL.VMS INSTALL.W32 \ LICENSE NEWS README README.ENGINE $PKG2/usr/doc/openssl-$VERSION ) @@ -303,5 +310,9 @@ cd $PKG2 mkdir -p install zcat $CWD/doinst.sh.gz > install/doinst.sh cat $CWD/slack-desc.openssl-solibs > install/slack-desc -makepkg -l y -c n ../${NAME2}.tgz +makepkg -l y -c n $REPOS/${NAME2}.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi |