diff options
Diffstat (limited to 'patches')
-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 |