aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 17:44:06 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 17:44:06 +0000
commit17804c7e0e89e6b68b0f6c0cd4c207f3052da5c7 (patch)
tree6e64e899d5097e9aba3f5d116c76eff643cd8930 /patches
parentdf14d11a2373eecbeb46bba143cf352f89ad8814 (diff)
downloadslackbuilds-17804c7e0e89e6b68b0f6c0cd4c207f3052da5c7.tar.gz
slackbuilds-17804c7e0e89e6b68b0f6c0cd4c207f3052da5c7.tar.bz2
updated apache and bin
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@87 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'patches')
-rwxr-xr-xpatches/apache/apache.SlackBuild8
-rwxr-xr-xpatches/bin/bin.SlackBuild39
2 files changed, 11 insertions, 36 deletions
diff --git a/patches/apache/apache.SlackBuild b/patches/apache/apache.SlackBuild
index 07c8e84b..bbe19b65 100755
--- a/patches/apache/apache.SlackBuild
+++ b/patches/apache/apache.SlackBuild
@@ -207,9 +207,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
makepkg -l y -c n $REPOS/apache-$APACHE_VER-$ARCH-$BUILD.tgz
-# clean up
-if [ "$1" = "--cleanup" ]; then
- cd $CWD
- rm -rf $TMP
- rm -rf $PKG
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
fi
+
diff --git a/patches/bin/bin.SlackBuild b/patches/bin/bin.SlackBuild
index 12c7c8c2..0290d936 100755
--- a/patches/bin/bin.SlackBuild
+++ b/patches/bin/bin.SlackBuild
@@ -12,6 +12,8 @@ VERSION=10.2
ARCH=${ARCH:=x86_64}
BUILD="1rha"
SRC_DIR=${SRC:=$CWD}
+TMP=${TMP:=/tmp}
+REPOS=${REPOS:=$TMP}
DUTILS=2.7
DOSFS=2.10
@@ -19,8 +21,9 @@ WHICH=2.16
EJECT=2.1.4
FILE=4.15
-TMP=${TMP:=/tmp}
+TMP="$TMP/$PACKAGE"
PKG=$TMP/package-bin
+mkdir -p $PKG
rm -rf $PKG
mkdir -p $SRC_DIR
@@ -28,13 +31,6 @@ mkdir -p $SRC_DIR
REPO="ftp://mirror.pacific.net.au/linux/slackware/slackware-10.2/patches/source/bin"
if [ "$GET" != "no" ]; then ( cd $SRC_DIR && ncftpget $REPO/*gz ) ; fi
-if [ ! -d $TMP ]; then
- mkdir -p $TMP # location to build the source
-fi
-if [ ! -d $PKG ]; then
- mkdir -p $PKG # place for the package to be built
-fi
-
if [ "$ARCH" == "x86_64" ]; then
LIB="lib64"
else
@@ -416,29 +412,10 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
# Build the package:
cd $PKG
-makepkg -l y -c n $TMP/bin-$VERSION-$ARCH-$BUILD.tgz
+makepkg -l y -c n $REPOS/bin-$VERSION-$ARCH-$BUILD.tgz
# Clean up the extra stuff:
-if [ "$1" = "--cleanup" ]; then
- rm -rf $TMP/pwd
- rm -rf $TMP/ed-0.2
- rm -rf $TMP/banners
- rm -rf $TMP/debianutils-$DUTILS
- rm -rf $TMP/eject-$EJECT
- rm -rf $TMP/fbset-2.1
- rm -rf $TMP/file-$FILE
- rm -rf $TMP/gencat
- rm -rf $TMP/lha-1.00
- rm -rf $TMP/dosfstools-$DOSFS
- rm -rf $TMP/patch-2.5.4
- rm -rf $TMP/sharutils-4.2.1
- rm -rf $TMP/time-1.7
- rm -rf $TMP/todos
- rm -rf $TMP/unarj230
- rm -rf $TMP/which-$WHICH
- rm -rf $TMP/zoo-2.10
- rm -rf $TMP/compress
- rm -rf $TMP/splitvt-1.6.5
- rm -rf $TMP/tree-1.4
- rm -rf $PKG
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
fi
+