Commits

Uelsk8s  committed d0a4f0c

build Beta 1 VL-ISO-STD

  • Participants
  • Parent commits d705cf7

Comments (0)

Files changed (1)

File var/vabs/VL-ISO-STD/src/VL-ISO-STD.SlackBuild

 #----------------------------------------------------------------------------
 BUILDNUM=${BUILDNUM:-"B1"}
 VL_VERSION="STD"
+KERN="3.4.24"
+KERNBUILD="1vl71"
 PREV32ISO=${PREV32ISO:-"VL-7.1-STD-A13.iso"} #enter last iso, only if you want a delta generated.
 PREV64ISO=${PREV64ISO:-"VL64-7.1-STD-A13.iso"} #enter last iso, if you want a delta generated.
 CD32NAME="VL-${VERSION}-STD-$BUILDNUM.iso"
 #CFLAGS SETUP
 #--------------------------------------------
 if [[ "$ARCH" = "x86" ]]; then
+  KERNEL="kernel-$KERN-$ARCH-$KERNBUILD"
+  MODULES="kernel-modules-$KERN-$ARCH-$KERNBUILD"
   ARCH=i586
   SLKCFLAGS="-O2 -march=i586 -mtune=i686"
   CONFIGURE_TRIPLET="i586-vector-linux"
   LIBDIRSUFFIX=""
   THEME=std-7-Boot
 elif [ "$ARCH" = "x86_64" ]; then
+  KERNEL="kernel-$KERN-$ARCH-$KERNBUILD"
+  MODULES="kernel-modules-$KERN-$ARCH-$KERNBUILD"
   SLKCFLAGS="-O2 -fpic"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
   LIBDIRSUFFIX="64"
 for i in $(cat $CWD/pkgs);do
   dir=$(echo $i|cut -d'/' -f1)
   pkg=$(echo $i|cut -d'/' -f2)
-  slapt-get --install --reinstall --download-only --no-dep $pkg
+  if [ "$pkg" == "kernel" ];then
+	  slapt-get --install --reinstall --download-only --no-dep $KERNEL
+  elif [ "$pkg" == "kernel-modules" ];then
+	  slapt-get --install --reinstall --download-only --no-dep $MODULES
+  else
+      slapt-get --install --reinstall --download-only --no-dep $pkg
+  fi
   #mv the pkgs.
   mv /home/ftp/pub/veclinux/packages/$pkg*t?z ISO/packages/$dir/ || exit 1
 done