diff options
-rwxr-xr-x | kernel-aletta/kernel-aletta.SlackBuild | 7 | ||||
-rwxr-xr-x | kernel-ratten/kernel-ratten.SlackBuild | 7 | ||||
-rwxr-xr-x | kernel-satan/kernel-satan.SlackBuild | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/kernel-aletta/kernel-aletta.SlackBuild b/kernel-aletta/kernel-aletta.SlackBuild index 7924d2ba..7c328483 100755 --- a/kernel-aletta/kernel-aletta.SlackBuild +++ b/kernel-aletta/kernel-aletta.SlackBuild @@ -22,6 +22,7 @@ PATCHSET="vs2.0.2-rc22" PATCH_VERSION="2.6.16.20-$PATCHSET" TMP=${TMP:=/tmp} SRC_DIR=${SRC:=$CWD} +REPOS=${REPOS:=$TMP} if [ ! -z "$EXTRAVERSION" ]; then KERNEL_VERSION=$KERNEL_VERSION.$EXTRAVERSION @@ -115,5 +116,9 @@ cd $PKG ( cd boot && ln -s config-$KERNEL_VERSION config ) ( cd boot && ln -s System.map-$KERNEL_VERSION System.map) -makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi diff --git a/kernel-ratten/kernel-ratten.SlackBuild b/kernel-ratten/kernel-ratten.SlackBuild index f77ff452..4ad33aa5 100755 --- a/kernel-ratten/kernel-ratten.SlackBuild +++ b/kernel-ratten/kernel-ratten.SlackBuild @@ -15,6 +15,7 @@ PATCH_VERSION="3.1.6-2.6.12" TMP=${TMP:=/tmp} SRC_DIR=${SRC:=$CWD} SPLASH="/etc/bootsplash/themes/Slack-Black-Tux/config/bootsplash-1024x768.cfg" +REPOS=${REPOS:=$TMP} cat << EOCAT Just remembering, you need the following stuff installed: @@ -140,7 +141,7 @@ mkinitrd -c -k 2.6.15.7 -o $PKG/boot/initrd.gz splash -s -f $SPLASH > $PKG/boot/initrd.gz cd $PKG -makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz cat << EOCAT Please check if you need to build or install the following modules: @@ -151,3 +152,7 @@ Please check if you need to build or install the following modules: Have a nice day. EOCAT +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/kernel-satan/kernel-satan.SlackBuild b/kernel-satan/kernel-satan.SlackBuild index 5f5d0744..8006673e 100755 --- a/kernel-satan/kernel-satan.SlackBuild +++ b/kernel-satan/kernel-satan.SlackBuild @@ -22,6 +22,7 @@ PATCHSET="vs2.0.2-rc22" PATCH_VERSION="2.6.16.20-$PATCHSET" TMP=${TMP:=/tmp} SRC_DIR=${SRC:=$CWD} +REPOS=${REPOS:=$TMP} if [ ! -z "$EXTRAVERSION" ]; then KERNEL_VERSION=$KERNEL_VERSION.$EXTRAVERSION @@ -115,5 +116,9 @@ cd $PKG ( cd boot && ln -s config-$KERNEL_VERSION config ) ( cd boot && ln -s System.map-$KERNEL_VERSION System.map) -makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi |